pub struct Listener { /* private fields */ }Implementations§
Source§impl Listener
impl Listener
Sourcepub fn bind(endpoint: &str, _max_instances: u32) -> Result<Listener>
pub fn bind(endpoint: &str, _max_instances: u32) -> Result<Listener>
max_instances is a Windows pipe-instance cap; a Unix socket has no such notion.
Sourcepub fn accept(&self) -> Result<Accepted>
pub fn accept(&self) -> Result<Accepted>
A peer that is not the current user is Rejected; the caller keeps accepting.
pub fn wake(&self)
pub fn cleanup(&self)
Auto Trait Implementations§
impl Freeze for Listener
impl RefUnwindSafe for Listener
impl Send for Listener
impl Sync for Listener
impl Unpin for Listener
impl UnsafeUnpin for Listener
impl UnwindSafe for Listener
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