pub enum JmapEventSourceError {
HttpStatus(u16),
NotChunked,
InvalidUrl(String),
ReadHeaders(Http11HeadersReadError),
ReadChunks(Http11ChunksReadStreamError),
DecodeFrame(JmapStateChangeParseError),
}Expand description
Failure causes during the JMAP event-source flow.
Variants§
HttpStatus(u16)
The server answered the subscription with a non-2xx status.
NotChunked
The streaming response did not use chunked transfer coding.
InvalidUrl(String)
The subscription URL built from the session could not be parsed.
ReadHeaders(Http11HeadersReadError)
The response head could not be read.
ReadChunks(Http11ChunksReadStreamError)
The chunked-body decoder failed.
DecodeFrame(JmapStateChangeParseError)
An SSE frame could not be decoded as a StateChange.
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<Http11ChunksReadStreamError> for JmapEventSourceError
impl From<Http11ChunksReadStreamError> for JmapEventSourceError
Source§fn from(source: Http11ChunksReadStreamError) -> Self
fn from(source: Http11ChunksReadStreamError) -> Self
Converts to this type from the input type.
Source§impl From<Http11HeadersReadError> for JmapEventSourceError
impl From<Http11HeadersReadError> for JmapEventSourceError
Source§fn from(source: Http11HeadersReadError) -> Self
fn from(source: Http11HeadersReadError) -> 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