pub enum ControllerError {
NonexistentControllerID,
ByteHandlerError(ByteHandlerError),
Infallible(Infallible),
}Expand description
Errors that can occur while constructing a Controller.
Variants§
NonexistentControllerID
The controller ID byte did not map to any known Controller variant.
ByteHandlerError(ByteHandlerError)
A ByteHandler operation failed.
Infallible(Infallible)
Infallible conversion error; cannot occur at runtime.
Trait Implementations§
Source§impl Debug for ControllerError
impl Debug for ControllerError
Source§impl Display for ControllerError
impl Display for ControllerError
Source§impl Error for ControllerError
impl Error for ControllerError
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<ByteHandlerError> for ControllerError
impl From<ByteHandlerError> for ControllerError
Source§fn from(source: ByteHandlerError) -> Self
fn from(source: ByteHandlerError) -> Self
Converts to this type from the input type.
Source§impl From<ControllerError> for HeaderError
impl From<ControllerError> for HeaderError
Source§fn from(source: ControllerError) -> Self
fn from(source: ControllerError) -> Self
Converts to this type from the input type.
Source§impl From<Infallible> for ControllerError
impl From<Infallible> for ControllerError
Source§fn from(source: Infallible) -> Self
fn from(source: Infallible) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ControllerError
impl RefUnwindSafe for ControllerError
impl Send for ControllerError
impl Sync for ControllerError
impl Unpin for ControllerError
impl UnsafeUnpin for ControllerError
impl UnwindSafe for ControllerError
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