pub struct AbortPdu {
pub sent_by_server: bool,
pub invoke_id: u8,
pub abort_reason: AbortReason,
}Expand description
Abort PDU (Clause 20.1.9).
Fields§
§sent_by_server: boolSet when the abort comes from the server side of the transaction, clear when sent by the requester.
invoke_id: u8Invoke ID of the transaction this PDU ends.
abort_reason: AbortReasonWhy the transaction was aborted.
Implementations§
Source§impl AbortPdu
impl AbortPdu
Sourcepub const fn remote_error(&self) -> RemoteError
pub const fn remote_error(&self) -> RemoteError
The refusal as a RemoteError::Abort carrying the reason.
It doesn’t look at sent_by_server: whether an Abort may end a
transaction is the caller’s decision.
Trait Implementations§
impl Eq for AbortPdu
impl StructuralPartialEq for AbortPdu
Auto Trait Implementations§
impl Freeze for AbortPdu
impl RefUnwindSafe for AbortPdu
impl Send for AbortPdu
impl Sync for AbortPdu
impl Unpin for AbortPdu
impl UnsafeUnpin for AbortPdu
impl UnwindSafe for AbortPdu
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