Struct udp_socket::UdpSocket [−][src]
Implementations
impl UdpSocket[src]
pub fn capabilities() -> Result<UdpCapabilities>[src]
pub fn bind(addr: SocketAddr) -> Result<Self>[src]
pub fn socket_type(&self) -> SocketType[src]
pub fn local_addr(&self) -> Result<SocketAddr>[src]
pub fn ttl(&self) -> Result<u8>[src]
pub fn set_ttl(&self, ttl: u8) -> Result<()>[src]
pub fn poll_send(
&self,
cx: &mut Context<'_>,
transmits: &[Transmit]
) -> Poll<Result<usize>>[src]
&self,
cx: &mut Context<'_>,
transmits: &[Transmit]
) -> Poll<Result<usize>>
pub fn poll_recv(
&self,
cx: &mut Context<'_>,
buffers: &mut [IoSliceMut<'_>],
meta: &mut [RecvMeta]
) -> Poll<Result<usize>>[src]
&self,
cx: &mut Context<'_>,
buffers: &mut [IoSliceMut<'_>],
meta: &mut [RecvMeta]
) -> Poll<Result<usize>>
pub async fn send(&self, transmits: &[Transmit]) -> Result<usize>[src]
pub async fn recv(
&self,
buffers: &mut [IoSliceMut<'_>],
meta: &mut [RecvMeta]
) -> Result<usize>[src]
&self,
buffers: &mut [IoSliceMut<'_>],
meta: &mut [RecvMeta]
) -> Result<usize>
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for UdpSocket
impl Send for UdpSocket
impl Sync for UdpSocket
impl Unpin for UdpSocket
impl UnwindSafe for UdpSocket
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,