pub enum JetstreamProtocolError {
    MissingProtocolHeader,
    MissingUpgradeHeader,
    InvalidUpgradeHeader,
    InvalidProtocol(String),
    MissingIPAddress,
}Variants§
MissingProtocolHeader
MissingUpgradeHeader
InvalidUpgradeHeader
InvalidProtocol(String)
MissingIPAddress
Implementations§
Source§impl JetstreamProtocolError
 
impl JetstreamProtocolError
Sourcepub fn status_code(&self) -> u16
 
pub fn status_code(&self) -> u16
Returns the HTTP status code for this error
Sourcepub fn error_type(&self) -> &'static str
 
pub fn error_type(&self) -> &'static str
Returns a user-friendly error type string
Sourcepub fn user_message(&self) -> String
 
pub fn user_message(&self) -> String
Returns a user-friendly message
Trait Implementations§
Source§impl Debug for JetstreamProtocolError
 
impl Debug for JetstreamProtocolError
Source§impl Display for JetstreamProtocolError
 
impl Display for JetstreamProtocolError
Source§impl Error for JetstreamProtocolError
 
impl Error for JetstreamProtocolError
1.30.0 · 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<JetstreamProtocolError> for Result<Response, Error>
 
impl From<JetstreamProtocolError> for Result<Response, Error>
Source§fn from(val: JetstreamProtocolError) -> Self
 
fn from(val: JetstreamProtocolError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for JetstreamProtocolError
impl RefUnwindSafe for JetstreamProtocolError
impl Send for JetstreamProtocolError
impl Sync for JetstreamProtocolError
impl Unpin for JetstreamProtocolError
impl UnwindSafe for JetstreamProtocolError
Blanket Implementations§
§impl<T> AsErrorSource for Twhere
    T: Error + 'static,
 
impl<T> AsErrorSource for Twhere
    T: Error + 'static,
§fn as_error_source(&self) -> &(dyn Error + 'static)
 
fn as_error_source(&self) -> &(dyn Error + 'static)
For maximum effectiveness, this needs to be called as a method
to benefit from Rust’s automatic dereferencing of method
receivers.
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
§impl<T> CompatExt for T
 
impl<T> CompatExt for T
§impl<T> Instrument for T
 
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
 
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
 
fn in_current_span(self) -> Instrumented<Self>
§impl<E> InstrumentError for Ewhere
    TracedError<E>: From<E>,
 
impl<E> InstrumentError for Ewhere
    TracedError<E>: From<E>,
§type Instrumented = TracedError<E>
 
type Instrumented = TracedError<E>
The type of the wrapped error after instrumentation
§fn in_current_span(self) -> <E as InstrumentError>::Instrumented
 
fn in_current_span(self) -> <E as InstrumentError>::Instrumented
Instrument an Error by bundling it with a SpanTrace Read more
§impl<T> Pointable for T
 
impl<T> Pointable for T
§impl<T> PolicyExt for Twhere
    T: ?Sized,
 
impl<T> PolicyExt for Twhere
    T: ?Sized,
§impl<T> ToStringFallible for Twhere
    T: Display,
 
impl<T> ToStringFallible for Twhere
    T: Display,
§fn try_to_string(&self) -> Result<String, TryReserveError>
 
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.