Struct cocaine::Sender
[−]
[src]
pub struct Sender { /* fields omitted */ }
An upstream for sending additional chunks into a channel.
Methods
impl Sender
[src]
fn send(&self, request: Request) -> impl Future<Item = (), Error = Error>
[src]
Sends a new data chunk into the channel associated with this upstream.
Returns a future that is completed when a chunk is completely written into the underlying socket or some error occurred.
This is the lowest-level API for working with services. You'd probably like to use one of the provided wrappers, like App or Unicorn.