[][src]Enum libuv::requests::write::WriteCB

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

Variants

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

Implementations

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

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

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

Trait Implementations

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

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

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

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

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

Auto Trait Implementations

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

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

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

impl<'a> Unpin for WriteCB<'a>

impl<'a> !UnwindSafe for WriteCB<'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.