pub struct SessionFailure { /* private fields */ }Expand description
Bounded diagnostics retained for a failed public session operation.
Implementations§
Source§impl SessionFailure
impl SessionFailure
Sourcepub const fn operation(self) -> SessionOperation
pub const fn operation(self) -> SessionOperation
Public operation that failed.
Sourcepub const fn transaction_state(self) -> SessionTransactionState
pub const fn transaction_state(self) -> SessionTransactionState
Reducer/transaction state observed for the failure.
Sourcepub const fn reason(self) -> SessionError
pub const fn reason(self) -> SessionError
Portable bounded failure reason.
Sourcepub const fn native_code(self) -> Option<i32>
pub const fn native_code(self) -> Option<i32>
Native error code when the backend can preserve one safely.
Sourcepub const fn is_poisoned(self) -> bool
pub const fn is_poisoned(self) -> bool
Whether the operation left the session terminally poisoned.
Sourcepub const fn peer(self) -> Option<PeerStatus>
pub const fn peer(self) -> Option<PeerStatus>
Bounded peer observation associated with the failure.
Sourcepub const fn cleanup(self) -> Option<ChildCleanupFacts>
pub const fn cleanup(self) -> Option<ChildCleanupFacts>
Coordinator-owned cleanup facts, when this operation consumed child authority.
Trait Implementations§
Source§impl Clone for SessionFailure
impl Clone for SessionFailure
Source§fn clone(&self) -> SessionFailure
fn clone(&self) -> SessionFailure
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for SessionFailure
Source§impl Debug for SessionFailure
impl Debug for SessionFailure
Source§impl Display for SessionFailure
impl Display for SessionFailure
impl Eq for SessionFailure
Source§impl Error for SessionFailure
impl Error for SessionFailure
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 PartialEq for SessionFailure
impl PartialEq for SessionFailure
impl StructuralPartialEq for SessionFailure
Auto Trait Implementations§
impl Freeze for SessionFailure
impl RefUnwindSafe for SessionFailure
impl Send for SessionFailure
impl Sync for SessionFailure
impl Unpin for SessionFailure
impl UnsafeUnpin for SessionFailure
impl UnwindSafe for SessionFailure
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