Enum tor_config::sources::MustRead
source · pub enum MustRead {
TolerateAbsence,
MustRead,
}
Expand description
Rules for whether we should proceed if a configuration file is unreadable.
Some files (like the default configuration file) are okay to skip if they aren’t present. Others (like those specified on the command line) really need to be there.
Variants§
TolerateAbsence
This file is okay to skip if it isn’t present,
MustRead
This file must be present and readable.
Trait Implementations§
source§impl PartialEq for MustRead
impl PartialEq for MustRead
impl Copy for MustRead
impl Eq for MustRead
impl StructuralEq for MustRead
impl StructuralPartialEq for MustRead
Auto Trait Implementations§
impl RefUnwindSafe for MustRead
impl Send for MustRead
impl Sync for MustRead
impl Unpin for MustRead
impl UnwindSafe for MustRead
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.