[go: up one dir, main page]

Struct miow::net::AcceptAddrsBuf[][src]

#[repr(C)]pub struct AcceptAddrsBuf { /* fields omitted */ }

A type to represent a buffer in which an accepted socket’s address will be stored.

This type is used with the accept_overlapped method on the TcpListenerExt trait to provide space for the overlapped I/O operation to fill in the socket addresses upon completion.

Implementations

impl AcceptAddrsBuf[src]

pub fn new() -> AcceptAddrsBuf[src]

Creates a new blank buffer ready to be passed to a call to accept_overlapped.

pub fn parse(&self, socket: &TcpListener) -> Result<AcceptAddrs<'_>>[src]

Parses the data contained in this address buffer, returning the parsed result if successful.

This function can be called after a call to accept_overlapped has succeeded to parse out the data that was written in.

Auto Trait Implementations

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.