pub enum Error {
Error(u8),
Unimplemented,
}
Expand description
An error as returned by a Handler
method.
Variants§
Error(u8)
A plain error. The meaning of the value is not defined by the protocol. Different values can therefore be used by a handler for debugging purposes.
Unimplemented
The request is not implemented. Note that, in some cases, the
protocol implementation tells the client that a feature is implemented;
if the handler method then returns Unimplemented
, the client will
be confused. So, normally it is best either to not implement
a Handler
method, or to return Error
from implementations.
Auto Trait Implementations§
impl Freeze for Error
impl RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnwindSafe 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