[][src]Struct libuv::requests::random::RandomReq

pub struct RandomReq { /* fields omitted */ }

Random data request type.

Implementations

impl RandomReq[src]

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

Create a new random request

pub fn destroy(&mut self)[src]

Free memory - this will be called automatically after the callback (if using the async function), or before returning the random data (if using the sync version)

Trait Implementations

impl Clone for RandomReq[src]

impl Copy for RandomReq[src]

impl From<RandomReq> for Req[src]

impl ReqTrait for RandomReq[src]

impl ToReq for RandomReq[src]

Auto Trait Implementations

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> 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.