Struct dvm_net::transport::Listener[][src]

pub struct Listener { /* fields omitted */ }

Implementations

impl Listener[src]

pub fn bind<P: AsRef<Path>>(path: P) -> Result<Self, Error>[src]

pub fn incoming(&mut self) -> impl Stream<Item = Result<Stream, Error>> + '_[src]

pub fn guarded(self, enabled: bool) -> Self[src]

Builder-pattern-like enable or disable inner fd-guard. If disable prevent unlink (kill, close) the socket on drop.

pub fn set_guard(&mut self, enabled: bool)[src]

Enable or disable inner fd-guard. If disable prevent unlink (kill, close) the socket on drop.

pub fn guard(&mut self) -> Option<FdGuard>[src]

Take and return the guard. Return None if already taken.

Trait Implementations

impl Debug for Listener[src]

Auto Trait Implementations

impl !RefUnwindSafe for Listener

impl Send for Listener

impl Sync for Listener

impl Unpin for Listener

impl !UnwindSafe for Listener

Blanket Implementations

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

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

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

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

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

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

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

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<V, T> VZip<V> for T where
    V: MultiLane<T>, 

impl<T> WithSubscriber for T[src]