[][src]Struct uds_windows::AcceptAddrsBuf

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

A buffer in which an accepted socket's address will be stored

This type is used with the accept_overlapped method on the UnixListenerExt 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: &UnixListener) -> 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.

Trait Implementations

impl Debug for AcceptAddrsBuf[src]

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.