pub struct NimbleLayer { /* private fields */ }
Implementations§
source§impl NimbleLayer
impl NimbleLayer
pub fn new() -> Self
sourcepub fn send(&mut self, datagrams: &Vec<Vec<u8>>) -> Result<Vec<Vec<u8>>, Error>
pub fn send(&mut self, datagrams: &Vec<Vec<u8>>) -> Result<Vec<Vec<u8>>, Error>
§Errors
io::Error
// TODO:
sourcepub fn receive<'a>(
&mut self,
datagram: &'a [u8],
) -> Result<&'a [u8], NimbleLayerError>
pub fn receive<'a>( &mut self, datagram: &'a [u8], ) -> Result<&'a [u8], NimbleLayerError>
§Errors
io::Error
// TODO:
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