Struct jamsocket_wasm::prelude::WrappedJamsocketService[][src]

pub struct WrappedJamsocketService<S, C> where
    S: SimpleJamsocketService,
    C: JamsocketContext
{ /* fields omitted */ }
Expand description

Re-exports useful items from jamsocket and jamsocket_wasm_macro. Combines a SimpleJamsocketService with an owned JamsocketContext in order to implement JamsocketService.

Implementations

Re-exports useful items from jamsocket and jamsocket_wasm_macro.

Trait Implementations

Called each time a client connects to the service.

Called each time a client disconnects from the service, unless that disconnection will cause the service to be destroyed. Read more

Called each time a client sends a text message to the service.

Called when JamsocketContext::set_timer has been called on this service’s context, after the provided duration. Read more

Called each time a client sends a binary message to the service.

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.

Performs the conversion.

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.