Struct context::context::Transfer [] [src]

pub struct Transfer {
    pub context: Context,
    pub data: usize,
}

Contains the previously active Context and the data passed to resume the current one and is used as the return value by Context::resume() and Context::resume_ontop()

Fields

context: Context

The previously executed Context which yielded to resume the current one.

data: usize

The data which was passed to Context::resume() or Context::resume_ontop() to resume the current Context.

Methods

impl Transfer
[src]

fn new(context: Context, data: usize) -> Transfer

Returns a new Transfer struct with the members set to their respective arguments.

Trait Implementations

impl Debug for Transfer
[src]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.