pub enum WebexError {
Auth(String),
DeviceRegistration {
message: String,
status_code: Option<u16>,
},
MercuryConnection {
message: String,
close_code: Option<u16>,
},
Kms(String),
Decryption(String),
Internal(String),
}Expand description
Base error type for all webex-message-handler errors.
Variants§
Auth(String)
Token is invalid, expired, or unauthorized.
DeviceRegistration
WDM device registration/refresh/unregister failed.
MercuryConnection
WebSocket connection to Mercury failed.
Kms(String)
KMS key exchange or key retrieval failed.
Decryption(String)
Message decryption failed.
Internal(String)
Generic internal error.
Implementations§
Source§impl WebexError
impl WebexError
pub fn auth(msg: impl Into<String>) -> Self
pub fn device_registration( msg: impl Into<String>, status_code: Option<u16>, ) -> Self
pub fn mercury_connection( msg: impl Into<String>, close_code: Option<u16>, ) -> Self
pub fn kms(msg: impl Into<String>) -> Self
pub fn decryption(msg: impl Into<String>) -> Self
Trait Implementations§
Source§impl Debug for WebexError
impl Debug for WebexError
Source§impl Display for WebexError
impl Display for WebexError
Source§impl Error for WebexError
impl Error for WebexError
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()
Auto Trait Implementations§
impl Freeze for WebexError
impl RefUnwindSafe for WebexError
impl Send for WebexError
impl Sync for WebexError
impl Unpin for WebexError
impl UnwindSafe for WebexError
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> 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.