pub struct Cop1Writer<const WIN: usize, const BUF: usize> { /* private fields */ }Expand description
COP-1 sender-side reliability (FOP-1).
Wraps a FopMachine and implements ReliabilityWrite.
Each write call feeds the data
as a Type-AD (sequence-controlled) FDU. For Type-BD frames or
management directives, use fop_mut.
Implementations§
Source§impl<const WIN: usize, const BUF: usize> Cop1Writer<WIN, BUF>
impl<const WIN: usize, const BUF: usize> Cop1Writer<WIN, BUF>
Sourcepub fn fop(&self) -> &FopMachine<WIN, BUF>
pub fn fop(&self) -> &FopMachine<WIN, BUF>
Returns a reference to the inner FOP-1 state machine.
Sourcepub fn fop_mut(&mut self) -> &mut FopMachine<WIN, BUF>
pub fn fop_mut(&mut self) -> &mut FopMachine<WIN, BUF>
Returns a mutable reference for direct FOP-1 control.
Trait Implementations§
Source§impl<const WIN: usize, const BUF: usize> ReliabilityWrite for Cop1Writer<WIN, BUF>
impl<const WIN: usize, const BUF: usize> ReliabilityWrite for Cop1Writer<WIN, BUF>
Source§type Action = FopActions
type Action = FopActions
Action to take after processing a frame.
Source§fn write(&mut self, frame: &[u8]) -> FopActions
fn write(&mut self, frame: &[u8]) -> FopActions
Processes an outgoing frame through the reliability layer.
Auto Trait Implementations§
impl<const WIN: usize, const BUF: usize> Freeze for Cop1Writer<WIN, BUF>
impl<const WIN: usize, const BUF: usize> RefUnwindSafe for Cop1Writer<WIN, BUF>
impl<const WIN: usize, const BUF: usize> Send for Cop1Writer<WIN, BUF>
impl<const WIN: usize, const BUF: usize> Sync for Cop1Writer<WIN, BUF>
impl<const WIN: usize, const BUF: usize> Unpin for Cop1Writer<WIN, BUF>
impl<const WIN: usize, const BUF: usize> UnsafeUnpin for Cop1Writer<WIN, BUF>
impl<const WIN: usize, const BUF: usize> UnwindSafe for Cop1Writer<WIN, BUF>
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