pub enum HyperStackError {
MissingUrl,
ConnectionFailed(String),
WebSocket {
message: String,
code: Option<AuthErrorCode>,
},
HandshakeRejected {
status: u16,
message: String,
code: Option<AuthErrorCode>,
},
AuthRequestFailed {
status: u16,
message: String,
code: Option<AuthErrorCode>,
},
ServerClosed {
message: String,
code: Option<AuthErrorCode>,
},
SocketIssue(SocketIssue),
Serialization(String),
MaxReconnectAttempts(u32),
ConnectionClosed,
SubscriptionFailed(String),
ChannelError(String),
}Variants§
MissingUrl
ConnectionFailed(String)
WebSocket
HandshakeRejected
AuthRequestFailed
ServerClosed
SocketIssue(SocketIssue)
Serialization(String)
MaxReconnectAttempts(u32)
ConnectionClosed
SubscriptionFailed(String)
ChannelError(String)
Implementations§
Source§impl HyperStackError
impl HyperStackError
pub fn auth_code(&self) -> Option<AuthErrorCode>
pub fn socket_issue(&self) -> Option<&SocketIssue>
pub fn should_retry(&self) -> bool
pub fn should_refresh_token(&self) -> bool
Trait Implementations§
Source§impl Clone for HyperStackError
impl Clone for HyperStackError
Source§fn clone(&self) -> HyperStackError
fn clone(&self) -> HyperStackError
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for HyperStackError
impl Debug for HyperStackError
Source§impl Display for HyperStackError
impl Display for HyperStackError
Source§impl Error for HyperStackError
impl Error for HyperStackError
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<Error> for HyperStackError
impl From<Error> for HyperStackError
Auto Trait Implementations§
impl Freeze for HyperStackError
impl RefUnwindSafe for HyperStackError
impl Send for HyperStackError
impl Sync for HyperStackError
impl Unpin for HyperStackError
impl UnsafeUnpin for HyperStackError
impl UnwindSafe for HyperStackError
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.