pub enum BindError {
PortAlreadyBound(u16),
PortNotBound,
Io(Error),
}Expand description
An error from a port bind or unbind operation.
Variants§
PortAlreadyBound(u16)
The specified port is already bound.
PortNotBound
The specified port is not bound.
Io(Error)
An IO error occurred during binding.
Trait Implementations§
Source§impl Error for BindError
impl Error for BindError
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 Freeze for BindError
impl !RefUnwindSafe for BindError
impl Send for BindError
impl Sync for BindError
impl Unpin for BindError
impl UnsafeUnpin for BindError
impl !UnwindSafe for BindError
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