[][src]Enum libuv::requests::random::RandomCB

pub enum RandomCB<'a> {
    CB(Box<dyn FnMut(RandomReq, Result<u32>, Vec<u8>) + 'a>),
    Nil,
}

Variants

CB(Box<dyn FnMut(RandomReq, Result<u32>, Vec<u8>) + 'a>)
Nil

Implementations

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

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

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

Trait Implementations

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

impl<'a, T, F> From<(&'a T, F)> for RandomCB<'a> where
    F: Fn(&T, RandomReq, Result<u32>, Vec<u8>) + 'static, 
[src]

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

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

impl<'a, F> From<F> for RandomCB<'a> where
    F: FnMut(RandomReq, Result<u32>, Vec<u8>) + 'a, 
[src]

Auto Trait Implementations

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

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

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

impl<'a> Unpin for RandomCB<'a>

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