Struct cocaine::service::app::App
[−]
[src]
pub struct App { /* fields omitted */ }
Application service wrapper.
Methods
impl App
[src]
fn new(service: Service) -> Self
[src]
Constructs an application service wrapper using the specified service.
fn enqueue(
&self,
event: &str
) -> impl Future<Item = (Sender, UnboundedReceiver<Result<String, Error>>), Error = Error>
[src]
&self,
event: &str
) -> impl Future<Item = (Sender, UnboundedReceiver<Result<String, Error>>), Error = Error>
Enqueues an event, opening a bidirectional stream on success.