Struct sockjs::SockJSContext [] [src]

pub struct SockJSContext<A> where
    A: Session,
    A::Context: AsyncContext<A>, 
{ /* fields omitted */ }

Sockjs session context

Methods

impl<A> SockJSContext<A> where
    A: Session<Context = Self>, 
[src]

[src]

Session id

[src]

Send message to peer

[src]

Send message to all sessions

[src]

Close session

[src]

Check if transport is connected

Trait Implementations

impl<A> ActorContext for SockJSContext<A> where
    A: Session<Context = Self>, 
[src]

[src]

Stop actor execution

[src]

Terminate actor execution

[src]

Actor execution state

impl<A> AsyncContext<A> for SockJSContext<A> where
    A: Session<Context = Self>, 
[src]

[src]

Spawn async future into context. Returns handle of the item, could be used for cancelling execution. Read more

[src]

Spawn future into the context. Stop processing any of incoming events until this future resolves. Read more

[src]

Cancel future. idx is a value returned by spawn method.

[src]

[src]

[src]

Get actor address

[src]

Check if context is paused (waiting for future completion or stopping)

[src]

This method register stream to an actor context and allows to handle Stream in similar way as normal actor messages. Read more

[src]

This method is similar to add_stream but it skips stream errors. Read more

[src]

Send message msg to self.

[src]

Send message msg to self after specified period of time. Returns spawn handle which could be used for cancellation. Notification get cancelled if context's stop method get called. Read more

[src]

Execute closure after specified period of time within same Actor and Context. Execution get cancelled if context's stop method get called. Read more

impl<A, M> ToEnvelope<Syn, A, M> for SockJSContext<A> where
    A: Session<Context = SockJSContext<A>> + Handler<M>,
    M: ActixMessage + Send + 'static,
    M::Result: Send
[src]

[src]

Pack message into suitable envelope

Auto Trait Implementations

impl<A> !Send for SockJSContext<A>

impl<A> !Sync for SockJSContext<A>