pub enum SessionMessengerError {
InvalidEnvelope(String),
SourceNotFound(String),
TargetNotFound(String),
Unauthorized {
source_session_id: String,
target: String,
},
Inbox(SessionInboxError),
Activation {
receipt_id: String,
receipt: SessionInboxReceipt,
source: SessionActivationError,
},
Storage(String),
}Variants§
InvalidEnvelope(String)
SourceNotFound(String)
TargetNotFound(String)
Fields
Inbox(SessionInboxError)
Activation
The enqueue is already durable when this error is returned. The receipt lets the caller distinguish it from a delivery failure and retry activation without inventing a second message id.
Storage(String)
Trait Implementations§
Source§impl Debug for SessionMessengerError
impl Debug for SessionMessengerError
Source§impl Display for SessionMessengerError
impl Display for SessionMessengerError
Source§impl Error for SessionMessengerError
impl Error for SessionMessengerError
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<SessionInboxError> for SessionMessengerError
impl From<SessionInboxError> for SessionMessengerError
Source§fn from(source: SessionInboxError) -> Self
fn from(source: SessionInboxError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for SessionMessengerError
impl RefUnwindSafe for SessionMessengerError
impl Send for SessionMessengerError
impl Sync for SessionMessengerError
impl Unpin for SessionMessengerError
impl UnsafeUnpin for SessionMessengerError
impl UnwindSafe for SessionMessengerError
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