pub enum GatewayError {
Transport(TransportError),
Bind(Error),
NoRoute(u8),
DeviceTimeout(u8),
}Expand description
Errors that can occur during gateway operations.
Variants§
Transport(TransportError)
Transport-level error.
Bind(Error)
Failed to bind the listen address.
NoRoute(u8)
No route configured for this unit ID.
DeviceTimeout(u8)
Serial device timed out.
Trait Implementations§
Source§impl Debug for GatewayError
impl Debug for GatewayError
Source§impl Display for GatewayError
impl Display for GatewayError
Source§impl Error for GatewayError
impl Error for GatewayError
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()
Source§impl From<TransportError> for GatewayError
impl From<TransportError> for GatewayError
Source§fn from(source: TransportError) -> Self
fn from(source: TransportError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for GatewayError
impl !UnwindSafe for GatewayError
impl Freeze for GatewayError
impl Send for GatewayError
impl Sync for GatewayError
impl Unpin for GatewayError
impl UnsafeUnpin for GatewayError
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