#[non_exhaustive]pub enum Error {
InvalidInterfaceName(String),
InterfaceNotFound(String),
NoInterfaceAddress(String),
Bind {
addr: SocketAddr,
source: Error,
},
JoinMulticast {
group: IpAddr,
source: Error,
},
Task(JoinError),
AllServicesFailed,
Io(Error),
}Expand description
Errors produced by maestro-rs.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
InvalidInterfaceName(String)
The interface name is empty or contains a NUL byte.
InterfaceNotFound(String)
No interface with this name exists on the system.
NoInterfaceAddress(String)
BindMode::Interface was requested but
the interface has no IP address.
Bind
A socket could not be bound to addr.
JoinMulticast
A UDP socket could not join a multicast group.
Task(JoinError)
An internal worker task panicked or was cancelled.
AllServicesFailed
Every registered service stopped after exhausting its
RestartPolicy before shutdown was requested.
Io(Error)
Any other I/O error.
Trait Implementations§
Source§impl Error for Error
impl Error for Error
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()
Auto Trait Implementations§
impl !RefUnwindSafe for Error
impl !UnwindSafe for Error
impl Forget for Error
impl Freeze for Error
impl Move for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnsafeUnpin for Error
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