Trait s2n_quic_transport::connection::Lock
source · pub trait Lock<T>: 'static + Send + Sync {
type Error;
// Required methods
fn new(value: T) -> Self;
fn read<F: FnOnce(&T) -> R, R>(&self, f: F) -> Result<R, Self::Error>;
fn write<F: FnOnce(&mut T) -> R, R>(&self, f: F) -> Result<R, Self::Error>;
}
Expand description
A lock that synchronizes connection state between the QUIC endpoint thread and application
Required Associated Types§
Required Methods§
Object Safety§
This trait is not object safe.