[−][src]Struct fd_queue::mio::UnixListener
A non-blocking Unix domain socket server with support for passing RawFd
.
Implementations
impl UnixListener
[src]
pub fn bind(path: impl AsRef<Path>) -> Result<UnixListener>
[src]
Creates a new UnixListener
bound to the specific path.
The listener will be set to non-blocking mode.
pub fn accept(&self) -> Result<(UnixStream, SocketAddr)>
[src]
Accepts a new incoming conneciton to this listener.
The returned stream will be set to non-blocking mode.
pub fn local_addr(&self) -> Result<SocketAddr>
[src]
Returns the local socket address for this listener.
pub fn take_error(&self) -> Result<Option<Error>>
[src]
Returns the value of the SO_ERROR
option.
Trait Implementations
impl AsRawFd for UnixListener
[src]
impl Debug for UnixListener
[src]
impl Evented for UnixListener
[src]
fn register(
&self,
registry: &Poll,
token: Token,
interests: Ready,
opts: PollOpt
) -> Result<()>
[src]
&self,
registry: &Poll,
token: Token,
interests: Ready,
opts: PollOpt
) -> Result<()>
fn reregister(
&self,
registry: &Poll,
token: Token,
interests: Ready,
opts: PollOpt
) -> Result<()>
[src]
&self,
registry: &Poll,
token: Token,
interests: Ready,
opts: PollOpt
) -> Result<()>
fn deregister(&self, registry: &Poll) -> Result<()>
[src]
impl FromRawFd for UnixListener
[src]
Create a UnixListener
from a RawFd
.
This does not change the RawFd
into non-blocking mode. It assumes that any such
required change has already been done.
unsafe fn from_raw_fd(fd: RawFd) -> Self
[src]
impl IntoRawFd for UnixListener
[src]
fn into_raw_fd(self) -> RawFd
[src]
impl TryFrom<UnixListener> for UnixListener
[src]
type Error = Error
The type returned in the event of a conversion error.
fn try_from(inner: StdUnixListner) -> Result<Self, Self::Error>
[src]
impl TryFrom<UnixListener> for UnixListener
[src]
type Error = Error
The type returned in the event of a conversion error.
fn try_from(inner: UnixListener) -> Result<UnixListener>
[src]
Auto Trait Implementations
impl RefUnwindSafe for UnixListener
impl Send for UnixListener
impl Sync for UnixListener
impl Unpin for UnixListener
impl UnwindSafe for UnixListener
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,