[−][src]Struct vsock::VsockListener
A virtio socket server, listening for connections.
Methods
impl VsockListener
[src]
pub fn bind(addr: &SockAddr) -> Result<VsockListener>
[src]
Create a new VsockListener which is bound and listening on the socket address.
pub fn local_addr(&self) -> Result<SockAddr>
[src]
The local socket address of the listener.
pub fn try_clone(&self) -> Result<Self>
[src]
Create a new independently owned handle to the underlying socket.
pub fn accept(&self) -> Result<(VsockStream, SockAddr)>
[src]
Accept a new incoming connection from this listener.
ⓘImportant traits for Incoming<'a>pub fn incoming(&self) -> Incoming
[src]
ⓘImportant traits for Incoming<'a>
An iterator over the connections being received on this listener.
pub fn take_error(&self) -> Result<Option<Error>>
[src]
Retrieve the latest error associated with the underlying socket.
pub fn set_nonblocking(&self, nonblocking: bool) -> Result<()>
[src]
Move this stream in and out of nonblocking mode.
Trait Implementations
impl Clone for VsockListener
[src]
fn clone(&self) -> VsockListener
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for VsockListener
[src]
impl AsRawFd for VsockListener
[src]
impl FromRawFd for VsockListener
[src]
unsafe fn from_raw_fd(socket: RawFd) -> Self
[src]
impl IntoRawFd for VsockListener
[src]
fn into_raw_fd(self) -> RawFd
[src]
Auto Trait Implementations
impl Send for VsockListener
impl Sync for VsockListener
impl Unpin for VsockListener
impl UnwindSafe for VsockListener
impl RefUnwindSafe for VsockListener
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
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> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,