pub enum NetworkEvent<'a, const N: usize> {
Connected {
link_id: u16,
},
Closed {
link_id: u16,
},
DataAvailable {
link_id: u16,
data: ReadData<'a, N>,
},
}
Expand description
Incoming network event.
Variants§
Connected
A new peer connected.
Closed
The connection with the peer is closed.
DataAvailable
Bytes received from the peer.
Trait Implementations§
Auto Trait Implementations§
impl<'a, const N: usize> Freeze for NetworkEvent<'a, N>
impl<'a, const N: usize> RefUnwindSafe for NetworkEvent<'a, N>
impl<'a, const N: usize> Send for NetworkEvent<'a, N>
impl<'a, const N: usize> Sync for NetworkEvent<'a, N>
impl<'a, const N: usize> Unpin for NetworkEvent<'a, N>
impl<'a, const N: usize> !UnwindSafe for NetworkEvent<'a, N>
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