pub struct InboundReply<F> { /* private fields */ }Expand description
A complete opaque frame classified by an adapter as a reply.
Implementations§
Source§impl<F> InboundReply<F>
impl<F> InboundReply<F>
Sourcepub const fn new(epoch: ConnectionEpoch, key: MatchKey, frame: F) -> Self
pub const fn new(epoch: ConnectionEpoch, key: MatchKey, frame: F) -> Self
Creates a reply input after protocol-specific classification.
Sourcepub const fn epoch(&self) -> ConnectionEpoch
pub const fn epoch(&self) -> ConnectionEpoch
Returns the epoch that produced the frame.
Sourcepub const fn key(&self) -> MatchKey
pub const fn key(&self) -> MatchKey
Returns the protocol-visible match key extracted by the adapter.
Sourcepub fn into_frame(self) -> F
pub fn into_frame(self) -> F
Recovers the opaque frame before it is applied to a machine.
Trait Implementations§
Source§impl<F: Clone> Clone for InboundReply<F>
impl<F: Clone> Clone for InboundReply<F>
Source§impl<F: Debug> Debug for InboundReply<F>
impl<F: Debug> Debug for InboundReply<F>
impl<F: Eq> Eq for InboundReply<F>
Source§impl<F: PartialEq> PartialEq for InboundReply<F>
impl<F: PartialEq> PartialEq for InboundReply<F>
impl<F: PartialEq> StructuralPartialEq for InboundReply<F>
Auto Trait Implementations§
impl<F> Freeze for InboundReply<F>where
F: Freeze,
impl<F> RefUnwindSafe for InboundReply<F>where
F: RefUnwindSafe,
impl<F> Send for InboundReply<F>where
F: Send,
impl<F> Sync for InboundReply<F>where
F: Sync,
impl<F> Unpin for InboundReply<F>where
F: Unpin,
impl<F> UnsafeUnpin for InboundReply<F>where
F: UnsafeUnpin,
impl<F> UnwindSafe for InboundReply<F>where
F: UnwindSafe,
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