Trait neocortex::CortexSync
source · 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 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 read_lock(&self) -> CortexResult<()>
fn write_lock(&self) -> CortexResult<()>
fn release(&self) -> CortexResult<()>
Object Safety§
This trait is not object safe.