pub struct NackFrame<'a> { /* private fields */ }
Expand description
Indicates that the client did not, or could not, process a message.
This frame has required headers id
,transaction
and optional headers receipt
.
Implementations§
Source§impl<'a> NackFrame<'a>
impl<'a> NackFrame<'a>
Sourcepub fn transaction(&'a self) -> &'a TransactionValue<'a>
pub fn transaction(&'a self) -> &'a TransactionValue<'a>
The value of the transaction
header.
Sourcepub fn receipt(&'a self) -> Option<&'a ReceiptValue<'a>>
pub fn receipt(&'a self) -> Option<&'a ReceiptValue<'a>>
The value of the receipt
header.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for NackFrame<'a>
impl<'a> RefUnwindSafe for NackFrame<'a>
impl<'a> Send for NackFrame<'a>
impl<'a> Sync for NackFrame<'a>
impl<'a> Unpin for NackFrame<'a>
impl<'a> UnwindSafe for NackFrame<'a>
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more