pub struct UdpSocketState { /* private fields */ }
Expand description
Fallback UDP socket interface that stubs out all special functionality
Used when a better implementation is not available for a particular target, at the cost of reduced performance compared to that enabled by some target-specific interfaces.
Implementations§
Source§impl UdpSocketState
impl UdpSocketState
pub fn new() -> Self
pub fn configure(socket: UdpSockRef<'_>) -> Result<()>
pub fn send( &mut self, socket: UdpSockRef<'_>, _state: &UdpState, transmits: &[Transmit], ) -> Result<usize, Error>
pub fn recv( &self, socket: UdpSockRef<'_>, bufs: &mut [IoSliceMut<'_>], meta: &mut [RecvMeta], ) -> Result<usize>
Trait Implementations§
Source§impl Debug for UdpSocketState
impl Debug for UdpSocketState
Auto Trait Implementations§
impl Freeze for UdpSocketState
impl RefUnwindSafe for UdpSocketState
impl Send for UdpSocketState
impl Sync for UdpSocketState
impl Unpin for UdpSocketState
impl UnwindSafe for UdpSocketState
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