Struct skyline_web::WebSession

source ·
pub struct WebSession(_);

Implementations

Sends a message, blocking until it succeeds

Attempts to send a message, returning true if it succeeds

Blocks until a message is recieved

Up to 4 KiB in size, for larger or more efficient sizes use recv_max

Blocks until a message is recieved, up to max_size bytes

Attempts to recieve a message without blocking

Up to 4 KiB in size, for larger or more efficient sizes use try_recv_max

Attempts to recieve a message without blocking, up to max_size bytes

Show a previously hidden web session

Wait until the page has been exited

Send a type as a JSON value, blocking until it sends

Attempt to send a type as a JSON value, returning false if it doesn’t succeed

Receive a given type as a JSON message, blocking until one is ready

Receive a given type as a JSON message, returning None if a message is not ready

Receive a given type as a JSON message, blocking until one is ready, setting a custom max payload size.

Receive a given type as a JSON message, returning None if a message is not ready, with a max message size of max_size

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

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

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.