#[repr(C)]pub struct AcceptAddrsBuf { /* private fields */ }
Expand description
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§
Source§impl AcceptAddrsBuf
impl AcceptAddrsBuf
Sourcepub fn new() -> AcceptAddrsBuf
pub fn new() -> AcceptAddrsBuf
Creates a new blank buffer ready to be passed to a call to
accept_overlapped
.
Sourcepub fn parse(&self, socket: &UnixListener) -> Result<AcceptAddrs<'_>>
pub fn parse(&self, socket: &UnixListener) -> Result<AcceptAddrs<'_>>
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§
Source§impl Debug for AcceptAddrsBuf
impl Debug for AcceptAddrsBuf
Auto Trait Implementations§
impl Freeze for AcceptAddrsBuf
impl RefUnwindSafe for AcceptAddrsBuf
impl Send for AcceptAddrsBuf
impl Sync for AcceptAddrsBuf
impl Unpin for AcceptAddrsBuf
impl UnwindSafe for AcceptAddrsBuf
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