Struct cap_std::os::unix::net::UnixListener [−][src]
pub struct UnixListener { /* fields omitted */ }Expand description
A structure representing a Unix domain socket server.
This corresponds to std::os::unix::net::UnixListener.
Note that this UnixListener has no bind method. To bind it to a socket
address, you must first obtain a Dir containing the path, and
then call Dir::bind_unix_listener.
Implementations
Constructs a new instance of Self from the given
std::os::unix::net::UnixListener.
Ambient Authority
std::os::unix::net::UnixListener is not sandboxed and may access any
address that the host process has access to.
Accepts a new incoming connection to this listener.
This corresponds to std::os::unix::net::UnixListener::accept.
Creates a new independently owned handle to the underlying socket.
This corresponds to std::os::unix::net::UnixListener::try_clone.
Returns the local socket address of this listener.
This corresponds to std::os::unix::net::UnixListener::local_addr.
Moves the socket into or out of nonblocking mode.
This corresponds to
std::os::unix::net::UnixListener::set_nonblocking.
Returns the value of the SO_ERROR option.
This corresponds to std::os::unix::net::UnixListener::take_error.
Returns an iterator over incoming connections.
This corresponds to std::os::unix::net::UnixListener::incoming.
Trait Implementations
Borrows the file descriptor. Read more
Constructs a new instance of Self from the given raw file
descriptor. Read more
type Item = Result<UnixStream>
type Item = Result<UnixStream>
The type of the elements being iterated over.
Consumes this object, returning the raw underlying file descriptor. Read more
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
Borrows the reference. Read more
pub fn as_filelike_view<Target>(&self) -> FilelikeView<'_, Target> where
Target: FromFilelike + IntoFilelike,
pub fn as_filelike_view<Target>(&self) -> FilelikeView<'_, Target> where
Target: FromFilelike + IntoFilelike,
Return a borrowing view of a resource which dereferences to a &Target
or &mut Target. Read more
Extracts the grip.
Returns the raw value.
Extracts the raw grip.
Returns the raw value.
Borrows the reference.
pub fn as_socketlike_view<Target>(&self) -> FilelikeView<'_, Target> where
Target: FromSocketlike + IntoSocketlike,
pub fn as_socketlike_view<Target>(&self) -> FilelikeView<'_, Target> where
Target: FromSocketlike + IntoSocketlike,
Return a borrowing view of a resource which dereferences to a &Target
or &mut Target. Read more
Mutably borrows from an owned value. Read more
Constructs Self from the raw value.
Consume an RawGrip and convert into a Self. Read more
Constructs Self from the raw value.
Constructs a new instance of Self from the given socketlike object.
Constructs a new instance of Self from the given socketlike object
converted from into_owned. Read more
Consumes this object, returning the underlying filelike object. Read more
Returns the raw value.
Consume self and convert into an RawGrip.
Consumes this object, returning the underlying socketlike object.