Skip to main content

ChannelIds

Trait ChannelIds 

Source
pub trait ChannelIds: Send + Sync {
    // Provided methods
    fn same_channel(&self, stored: &str, current: &str) -> bool { ... }
    fn channel_of_session(&self, _session_id: &str) -> Option<String> { ... }
}
Expand description

How the host’s channel identifiers relate. The defaults suit a host whose ids are stable and carry no channel in the session id.

Provided Methods§

Source

fn same_channel(&self, stored: &str, current: &str) -> bool

Whether a row stored under stored belongs to the channel current.

Source

fn channel_of_session(&self, _session_id: &str) -> Option<String>

The channel a session belongs to, when its id says.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§