pub enum MooError {
Show 15 variants
Empty,
InvalidProtocol(String),
MissingVerb,
UnknownVerb(String),
MissingName,
MissingRequestId,
InvalidRequestId(String),
ContentLengthWithoutContentType,
InvalidContentLength(String),
BodyLengthMismatch {
expected: usize,
actual: usize,
},
InvalidHeaderUtf8,
MalformedHeader(String),
InvalidJson(Error),
WebSocket(String),
ConnectionClosed,
}Variants§
Empty
InvalidProtocol(String)
MissingVerb
UnknownVerb(String)
MissingName
MissingRequestId
InvalidRequestId(String)
ContentLengthWithoutContentType
InvalidContentLength(String)
BodyLengthMismatch
InvalidHeaderUtf8
MalformedHeader(String)
InvalidJson(Error)
WebSocket(String)
ConnectionClosed
Trait Implementations§
Source§impl Error for MooError
impl Error for MooError
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 MooError
impl !RefUnwindSafe for MooError
impl Send for MooError
impl Sync for MooError
impl Unpin for MooError
impl UnsafeUnpin for MooError
impl !UnwindSafe for MooError
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