pub enum JmapEventSourceError {
HttpStatus(u16),
NotChunked,
InvalidUrl(String),
ReadHeaders(Http11ReadHeadersError),
ReadChunks(Http11ReadChunksStreamError),
DecodeFrame(JmapStateChangeParseError),
}Expand description
Failure causes during the JMAP event-source flow.
Variants§
HttpStatus(u16)
NotChunked
InvalidUrl(String)
ReadHeaders(Http11ReadHeadersError)
ReadChunks(Http11ReadChunksStreamError)
DecodeFrame(JmapStateChangeParseError)
Trait Implementations§
Source§impl Debug for JmapEventSourceError
impl Debug for JmapEventSourceError
Source§impl Display for JmapEventSourceError
impl Display for JmapEventSourceError
Source§impl Error for JmapEventSourceError
impl Error for JmapEventSourceError
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<Http11ReadChunksStreamError> for JmapEventSourceError
impl From<Http11ReadChunksStreamError> for JmapEventSourceError
Source§fn from(source: Http11ReadChunksStreamError) -> Self
fn from(source: Http11ReadChunksStreamError) -> Self
Converts to this type from the input type.
Source§impl From<Http11ReadHeadersError> for JmapEventSourceError
impl From<Http11ReadHeadersError> for JmapEventSourceError
Source§fn from(source: Http11ReadHeadersError) -> Self
fn from(source: Http11ReadHeadersError) -> Self
Converts to this type from the input type.
Source§impl From<JmapStateChangeParseError> for JmapEventSourceError
impl From<JmapStateChangeParseError> for JmapEventSourceError
Source§fn from(source: JmapStateChangeParseError) -> Self
fn from(source: JmapStateChangeParseError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for JmapEventSourceError
impl RefUnwindSafe for JmapEventSourceError
impl Send for JmapEventSourceError
impl Sync for JmapEventSourceError
impl Unpin for JmapEventSourceError
impl UnsafeUnpin for JmapEventSourceError
impl UnwindSafe for JmapEventSourceError
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