pub struct SocketReceive {
pub data: Bytes,
pub truncated: bool,
}
Fields§
§data: Bytes
Data that was received
truncated: bool
Indicates if the data was truncated (e.g. UDP packet)
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for SocketReceive
impl RefUnwindSafe for SocketReceive
impl Send for SocketReceive
impl Sync for SocketReceive
impl Unpin for SocketReceive
impl UnwindSafe for SocketReceive
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