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§
Sourcefn same_channel(&self, stored: &str, current: &str) -> bool
fn same_channel(&self, stored: &str, current: &str) -> bool
Whether a row stored under stored belongs to the channel current.
Sourcefn channel_of_session(&self, _session_id: &str) -> Option<String>
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".