pub struct AdaptiveLinkSender { /* private fields */ }Implementations§
Source§impl AdaptiveLinkSender
impl AdaptiveLinkSender
pub fn new( link_id: u32, keypair: WfbTxKeypair, epoch: u64, fec_k: usize, fec_n: usize, ) -> Result<Self, WfbError>
pub fn link(&self) -> &AdaptiveLink
pub fn link_mut(&mut self) -> &mut AdaptiveLink
pub fn set_tx_params(&mut self, params: TxRadioParams)
pub fn record_rx_paths(&mut self, now_ms: u64, rssi: [u8; 4], snr: [i8; 4])
pub fn record_fec(&mut self, now_ms: u64, total: u32, recovered: u32, lost: u32)
pub fn tick(&mut self, now_ms: u64) -> Result<Vec<Vec<u8>>, WfbError>
Trait Implementations§
Source§impl Clone for AdaptiveLinkSender
impl Clone for AdaptiveLinkSender
Source§fn clone(&self) -> AdaptiveLinkSender
fn clone(&self) -> AdaptiveLinkSender
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 moreAuto Trait Implementations§
impl Freeze for AdaptiveLinkSender
impl RefUnwindSafe for AdaptiveLinkSender
impl Send for AdaptiveLinkSender
impl Sync for AdaptiveLinkSender
impl Unpin for AdaptiveLinkSender
impl UnsafeUnpin for AdaptiveLinkSender
impl UnwindSafe for AdaptiveLinkSender
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