Struct jamsocket_server::ClientSocketConnection[][src]

pub struct ClientSocketConnection {
    pub room: Recipient<MessageFromClient>,
    pub client_id: ClientId,
    pub last_seen: Instant,
    pub heartbeat_interval: Duration,
    pub heartbeat_timeout: Duration,
    pub interval_handle: Option<SpawnHandle>,
}
Expand description

Represents a connection from a service to a client, which consists of a message receiver and a user ID.

Fields

room: Recipient<MessageFromClient>client_id: ClientIdlast_seen: Instantheartbeat_interval: Durationheartbeat_timeout: Durationinterval_handle: Option<SpawnHandle>

Trait Implementations

Actor execution context type

Called when an actor gets polled the first time.

Called after an actor is in Actor::Stopping state. Read more

Called after an actor is stopped. Read more

Start a new asynchronous actor, returning its address. Read more

Construct and start a new asynchronous actor, returning its address. Read more

Start new actor in arbiter’s thread.

Start a new asynchronous actor given a Context. Read more

The type of value that this handler will return. Read more

This method is called for every message received by this actor.

Called for every message emitted by the stream.

Called when stream emits first item. Read more

Called when stream finishes. Read more

Register a Stream to the actor context.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Performs the conversion.

Should always be Self

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more