Struct capnp_futures::Sender[][src]

pub struct Sender<M> where
    M: AsOutputSegments
{ /* fields omitted */ }

A handle that allows message to be sent to a WriteQueue.

Methods

impl<M> Sender<M> where
    M: AsOutputSegments + 'static, 
[src]

Enqueues a message to be written.

Returns the number of messages queued to be written, not including any in-progress write.

Commands the queue to stop writing messages once it is empty. After this method has been called, any new calls to send() will return a future that immediately resolves to an error. If the passed-in result is an error, then the WriteQueue will resolve to that error.

Trait Implementations

impl<M> Clone for Sender<M> where
    M: AsOutputSegments
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<M> Drop for Sender<M> where
    M: AsOutputSegments
[src]

Executes the destructor for this type. Read more

Auto Trait Implementations

impl<M> !Send for Sender<M>

impl<M> !Sync for Sender<M>