[][src]Enum libuv::handles::streams::stream::ConnectionCB

pub enum ConnectionCB<'a> {
    CB(Box<dyn FnMut(StreamHandle, Result<u32>) + 'a>),
    Nil,
}

Variants

CB(Box<dyn FnMut(StreamHandle, Result<u32>) + 'a>)
Nil

Implementations

impl<'a> ConnectionCB<'a>[src]

pub fn new<CB: Into<ConnectionCB<'a>>>(cb: CB) -> ConnectionCB<'a>[src]

pub fn is_nil(&self) -> bool[src]

Trait Implementations

impl<'a> Default for ConnectionCB<'a>[src]

impl<'a, T, F> From<(&'a T, F)> for ConnectionCB<'a> where
    F: Fn(&T, StreamHandle, Result<u32>) + 'static, 
[src]

impl<'a, T, F> From<(&'a mut T, F)> for ConnectionCB<'a> where
    F: Fn(&mut T, StreamHandle, Result<u32>) + 'static, 
[src]

impl<'a> From<()> for ConnectionCB<'a>[src]

impl<'a, F> From<F> for ConnectionCB<'a> where
    F: FnMut(StreamHandle, Result<u32>) + 'a, 
[src]

Auto Trait Implementations

impl<'a> !RefUnwindSafe for ConnectionCB<'a>

impl<'a> !Send for ConnectionCB<'a>

impl<'a> !Sync for ConnectionCB<'a>

impl<'a> Unpin for ConnectionCB<'a>

impl<'a> !UnwindSafe for ConnectionCB<'a>

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, U> Into<U> for T where
    U: From<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.