pub struct FastUdpSocket { /* private fields */ }Implementations§
Source§impl FastUdpSocket
impl FastUdpSocket
pub fn build(addr: SocketAddr) -> FastUdpSocketBuilder
Source§impl FastUdpSocket
impl FastUdpSocket
pub async fn send(&self, item: SendItem<'_>) -> Result<()>
pub async fn send_many(&self, items: &[SendItem<'_>]) -> Result<usize>
pub async fn receive(&self, item: &mut ReceiveItem<'_>) -> Result<()>
pub async fn receive_many(&self, items: &mut [ReceiveItem<'_>]) -> Result<usize>
pub fn capabilities(&self) -> &Capabilities
pub fn local_addr(&self) -> Result<SocketAddr>
Auto Trait Implementations§
impl !RefUnwindSafe for FastUdpSocket
impl !UnwindSafe for FastUdpSocket
impl Freeze for FastUdpSocket
impl Send for FastUdpSocket
impl Sync for FastUdpSocket
impl Unpin for FastUdpSocket
impl UnsafeUnpin for FastUdpSocket
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