pub trait ConnectionStateWriteExt: StateWrite {
// Provided methods
fn put_connection_counter(&mut self, counter: ConnectionCounter) { ... }
fn put_client_connection(
&mut self,
client_id: &ClientId,
paths: ClientPaths,
) { ... }
fn put_new_connection<'life0, 'life1, 'async_trait>(
&'life0 mut self,
connection_id: &'life1 ConnectionId,
connection: ConnectionEnd,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: Send + 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait { ... }
fn update_connection(
&mut self,
connection_id: &ConnectionId,
connection: ConnectionEnd,
) { ... }
}
Available on crate feature
component
only.Provided Methods§
fn put_connection_counter(&mut self, counter: ConnectionCounter)
fn put_client_connection(&mut self, client_id: &ClientId, paths: ClientPaths)
fn put_new_connection<'life0, 'life1, 'async_trait>(
&'life0 mut self,
connection_id: &'life1 ConnectionId,
connection: ConnectionEnd,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: Send + 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn update_connection( &mut self, connection_id: &ConnectionId, connection: ConnectionEnd, )
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.