Struct sse::EventService
[−]
[src]
pub struct EventService { /* fields omitted */ }
Methods
impl EventService
[src]
pub fn pair(
headers: Headers
) -> (Self, Receiver<(Request, Sender<Result<Chunk, Error>>)>)
[src]
headers: Headers
) -> (Self, Receiver<(Request, Sender<Result<Chunk, Error>>)>)
(service, connection receiver) pair
pub fn pair_raw(handle: &Handle) -> (Self, Sender<BroadcastRawEvent>)
[src]
pub fn pair_sse(
handle: &Handle,
opt: BroadcastFlags
) -> (Self, Sender<BroadcastEvent>)
[src]
handle: &Handle,
opt: BroadcastFlags
) -> (Self, Sender<BroadcastEvent>)
(service, msg sender) pair
Trait Implementations
impl Clone for EventService
[src]
fn clone(&self) -> EventService
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Service for EventService
[src]
type Request = Request
Requests handled by the service.
type Response = Response
Responses given by the service.
type Error = Error
Errors produced by the service.
type Future = Box<Future<Item = Response, Error = Self::Error>>
The future response value.
fn call(&self, req: Request) -> Self::Future
[src]
Process the request and return the response asynchronously.