pub enum Fail {
Permanent(String),
Transient(String),
}Expand description
Why preparation stopped, and whether trying again could help.
Variants§
Permanent(String)
Retrying cannot help: no usable GPU, a spec that does not parse,
a directory that cannot be created. Report and stop, even under
--persist.
Transient(String)
The next attempt may well work: the far side of a mount is down, the controller has not opened its window yet. Back off, re-dial.
Implementations§
Source§impl Fail
impl Fail
Sourcepub fn is_permanent(&self) -> bool
pub fn is_permanent(&self) -> bool
True for Fail::Permanent — the caller must not re-dial.
Trait Implementations§
impl Eq for Fail
impl StructuralPartialEq for Fail
Auto Trait Implementations§
impl Freeze for Fail
impl RefUnwindSafe for Fail
impl Send for Fail
impl Sync for Fail
impl Unpin for Fail
impl UnsafeUnpin for Fail
impl UnwindSafe for Fail
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
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.