Skip to main content

WebSocketConnectionPermit

Trait WebSocketConnectionPermit 

Source
pub trait WebSocketConnectionPermit:
    Debug
    + Send
    + Sync {
    // Required method
    fn id(&self) -> Uuid;
}
Expand description

An opaque connection reservation owned by an admission provider.

The server retains this value for the lifetime of the connection. Dropping it must release any reservation held by the provider.

Required Methods§

Source

fn id(&self) -> Uuid

Stable identifier used for later lifecycle callbacks.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§