pub enum ReliableStationFrameRef<'a> {
Data {
sequence: u64,
payload: &'a [u8],
},
Ack {
sequence: u64,
},
}Expand description
Borrowed reliable Station 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 ReliableStationFrameRef<'_>
impl ReliableStationFrameRef<'_>
Sourcepub fn to_owned(self) -> ReliableStationFrame
pub fn to_owned(self) -> ReliableStationFrame
Materializes the compatible owned reliable Station frame.
Trait Implementations§
Source§impl<'a> Clone for ReliableStationFrameRef<'a>
impl<'a> Clone for ReliableStationFrameRef<'a>
Source§fn clone(&self) -> ReliableStationFrameRef<'a>
fn clone(&self) -> ReliableStationFrameRef<'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 ReliableStationFrameRef<'a>
Source§impl<'a> Debug for ReliableStationFrameRef<'a>
impl<'a> Debug for ReliableStationFrameRef<'a>
impl<'a> Eq for ReliableStationFrameRef<'a>
Source§impl<'a> PartialEq for ReliableStationFrameRef<'a>
impl<'a> PartialEq for ReliableStationFrameRef<'a>
impl<'a> StructuralPartialEq for ReliableStationFrameRef<'a>
Auto Trait Implementations§
impl<'a> Freeze for ReliableStationFrameRef<'a>
impl<'a> RefUnwindSafe for ReliableStationFrameRef<'a>
impl<'a> Send for ReliableStationFrameRef<'a>
impl<'a> Sync for ReliableStationFrameRef<'a>
impl<'a> Unpin for ReliableStationFrameRef<'a>
impl<'a> UnsafeUnpin for ReliableStationFrameRef<'a>
impl<'a> UnwindSafe for ReliableStationFrameRef<'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