pub enum ReliableClientFrameRef<'a> {
Data {
sequence: u64,
payload: &'a [u8],
},
Ack {
sequence: u64,
},
}Expand description
Borrowed reliable client frame decoded from caller-owned bytes.
Variants§
Data
Reliable data packet with borrowed payload bytes.
Fields
Ack
Acknowledgement for a reliable data packet.
Implementations§
Source§impl ReliableClientFrameRef<'_>
impl ReliableClientFrameRef<'_>
Sourcepub fn to_owned(self) -> ReliableClientFrame
pub fn to_owned(self) -> ReliableClientFrame
Materializes the compatible owned reliable client frame.
Trait Implementations§
Source§impl<'a> Clone for ReliableClientFrameRef<'a>
impl<'a> Clone for ReliableClientFrameRef<'a>
Source§fn clone(&self) -> ReliableClientFrameRef<'a>
fn clone(&self) -> ReliableClientFrameRef<'a>
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<'a> Copy for ReliableClientFrameRef<'a>
Source§impl<'a> Debug for ReliableClientFrameRef<'a>
impl<'a> Debug for ReliableClientFrameRef<'a>
impl<'a> Eq for ReliableClientFrameRef<'a>
Source§impl<'a> PartialEq for ReliableClientFrameRef<'a>
impl<'a> PartialEq for ReliableClientFrameRef<'a>
impl<'a> StructuralPartialEq for ReliableClientFrameRef<'a>
Auto Trait Implementations§
impl<'a> Freeze for ReliableClientFrameRef<'a>
impl<'a> RefUnwindSafe for ReliableClientFrameRef<'a>
impl<'a> Send for ReliableClientFrameRef<'a>
impl<'a> Sync for ReliableClientFrameRef<'a>
impl<'a> Unpin for ReliableClientFrameRef<'a>
impl<'a> UnsafeUnpin for ReliableClientFrameRef<'a>
impl<'a> UnwindSafe for ReliableClientFrameRef<'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