pub trait CortexSync: Sized {
type Settings;
// Required methods
fn new(
cortex_key: i32,
settings: Option<&Self::Settings>,
) -> CortexResult<Self>;
fn attach(cortex_key: i32) -> CortexResult<Self>;
fn force_ownership(&mut self);
fn read_lock(&self) -> CortexResult<()>;
fn write_lock(&self) -> CortexResult<()>;
fn release(&self) -> CortexResult<()>;
}Required Associated Types§
Required Methods§
fn new(cortex_key: i32, settings: Option<&Self::Settings>) -> CortexResult<Self>
fn attach(cortex_key: i32) -> CortexResult<Self>
fn force_ownership(&mut self)
fn read_lock(&self) -> CortexResult<()>
fn write_lock(&self) -> CortexResult<()>
fn release(&self) -> CortexResult<()>
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.