[][src]Trait capnp_rpc::OutgoingMessage

pub trait OutgoingMessage {
    pub fn get_body<'a>(&'a mut self) -> Result<Builder<'a>>;
pub fn get_body_as_reader<'a>(&'a self) -> Result<Reader<'a>>;
pub fn send(
        self: Box<Self>
    ) -> (Promise<Rc<Builder<HeapAllocator>>, Error>, Rc<Builder<HeapAllocator>>);
pub fn take(self: Box<Self>) -> Builder<HeapAllocator>; }

Required methods

pub fn get_body<'a>(&'a mut self) -> Result<Builder<'a>>[src]

pub fn get_body_as_reader<'a>(&'a self) -> Result<Reader<'a>>[src]

pub fn send(
    self: Box<Self>
) -> (Promise<Rc<Builder<HeapAllocator>>, Error>, Rc<Builder<HeapAllocator>>)
[src]

Sends the message. Returns a promise for the message that resolves once the send has completed. Dropping the returned promise does not cancel the send.

pub fn take(self: Box<Self>) -> Builder<HeapAllocator>[src]

Loading content...

Implementors

Loading content...