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