[][src]Struct udp_server::UdpSend

pub struct UdpSend(pub Arc<Mutex<SendHalf>>, pub SocketAddr);

用来存储SendHalf 并实现Write

Implementations

impl UdpSend[src]

pub async fn send<'_, '_>(&'_ self, buf: &'_ [u8]) -> Result<usize>[src]

Trait Implementations

impl Debug for UdpSend[src]

Auto Trait Implementations

impl !RefUnwindSafe for UdpSend

impl Send for UdpSend

impl Sync for UdpSend

impl Unpin for UdpSend

impl !UnwindSafe for UdpSend

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.