pub struct NimbleLayerClient { /* private fields */ }
Implementations§
source§impl NimbleLayerClient
impl NimbleLayerClient
pub fn new(now: Millis) -> Self
pub fn receive<'a>( &mut self, now: Millis, datagram: &'a [u8], ) -> Result<&'a [u8], NimbleLayerError>
pub fn send( &mut self, now: Millis, datagrams: Vec<Vec<u8>>, ) -> Result<Vec<Vec<u8>>, Error>
pub fn update(&mut self, now: Millis)
pub fn latency(&self) -> Option<MinMaxAvg<u16>>
pub fn datagram_drops(&self) -> Option<MinMaxAvg<u16>>
Auto Trait Implementations§
impl Freeze for NimbleLayerClient
impl RefUnwindSafe for NimbleLayerClient
impl Send for NimbleLayerClient
impl Sync for NimbleLayerClient
impl Unpin for NimbleLayerClient
impl UnwindSafe for NimbleLayerClient
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