[][src]Struct vsock::VsockListener

pub struct VsockListener { /* fields omitted */ }

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]

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]

impl Debug for VsockListener[src]

impl AsRawFd for VsockListener[src]

impl FromRawFd for VsockListener[src]

impl IntoRawFd for VsockListener[src]

Auto Trait Implementations

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]