Union drone_core::proc_loop::In[][src]

pub union In<Cmd, ReqRes> {
    // some fields omitted
}

Sess::Fiber input.

See also Out.

Implementations

impl<Cmd, ReqRes> In<Cmd, ReqRes>[src]

pub fn from_cmd(cmd: Cmd) -> Self[src]

Creates a new command input.

pub fn from_req_res(req_res: ReqRes) -> Self[src]

Creates a new request result input.

pub unsafe fn into_cmd(self) -> Cmd[src]

Interprets the input as a command.

Safety

Whether the input is really a command object is unchecked.

pub unsafe fn into_req_res(self) -> ReqRes[src]

Interprets the input as a request result.

Safety

Whether the input is really a request result object is unchecked.

Auto Trait Implementations

impl<Cmd, ReqRes> Send for In<Cmd, ReqRes> where
    Cmd: Send,
    ReqRes: Send

impl<Cmd, ReqRes> Sync for In<Cmd, ReqRes> where
    Cmd: Sync,
    ReqRes: Sync

impl<Cmd, ReqRes> Unpin for In<Cmd, ReqRes> where
    Cmd: Unpin,
    ReqRes: Unpin

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> Same<T> for T[src]

type Output = T

Should always be Self

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.