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