pub enum MeshError {
Identity(String),
Protocol(String),
Provider(String),
Config(String),
}Expand description
Why a mesh operation did not happen. Each variant names the layer that refused, so a log line places the failure without a backtrace.
use majordomus_cli::mesh::MeshError;
let e = MeshError::Config("an interval of 0 would be a busy loop".into());
assert_eq!(e.to_string(), "config: an interval of 0 would be a busy loop");Variants§
Identity(String)
The identity file: unreadable, malformed, or nowhere to keep one.
Protocol(String)
The protocol: an envelope that cannot be built or does not fit.
Provider(String)
A provider: a socket, a group, an endpoint.
Config(String)
The declaration: missing, malformed, or a version this executable does not read.
Trait Implementations§
impl Eq for MeshError
Source§impl Error for MeshError
impl Error for MeshError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
impl StructuralPartialEq for MeshError
Auto Trait Implementations§
impl Freeze for MeshError
impl RefUnwindSafe for MeshError
impl Send for MeshError
impl Sync for MeshError
impl Unpin for MeshError
impl UnsafeUnpin for MeshError
impl UnwindSafe for MeshError
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<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.