Struct neocortex::CortexBuilder
source · pub struct CortexBuilder<T, S> { /* private fields */ }Implementations§
source§impl<T> CortexBuilder<T, Uninitialized>
impl<T> CortexBuilder<T, Uninitialized>
pub fn new(data: T) -> CortexBuilder<T, Initialized>
source§impl<T> CortexBuilder<T, Initialized>
impl<T> CortexBuilder<T, Initialized>
pub fn key(self, key: i32) -> CortexBuilder<T, WithKey>
source§impl<T> CortexBuilder<T, WithKey>
impl<T> CortexBuilder<T, WithKey>
sourcepub fn with_lock<L: CortexSync>(
self,
lock_settings: &L::Settings
) -> CortexResult<Cortex<T, L>>
pub fn with_lock<L: CortexSync>( self, lock_settings: &L::Settings ) -> CortexResult<Cortex<T, L>>
Attempts to construct a Cortex with custom lock settings that will differ depending on
your lock implementation
sourcepub fn with_default_lock<L: CortexSync>(self) -> CortexResult<Cortex<T, L>>
pub fn with_default_lock<L: CortexSync>(self) -> CortexResult<Cortex<T, L>>
Attempts to construct a Cortex without passing any lock settings
Auto Trait Implementations§
impl<T, S> Freeze for CortexBuilder<T, S>where
T: Freeze,
impl<T, S> RefUnwindSafe for CortexBuilder<T, S>where
T: RefUnwindSafe,
S: RefUnwindSafe,
impl<T, S> Send for CortexBuilder<T, S>
impl<T, S> Sync for CortexBuilder<T, S>
impl<T, S> Unpin for CortexBuilder<T, S>
impl<T, S> UnwindSafe for CortexBuilder<T, S>where
T: UnwindSafe,
S: UnwindSafe,
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more