pub struct LkSystem(/* private fields */);
Expand description
A linkspace system. The struct is not !Send. use lks_open in each thread. The first opened in each thread is set as the thread ‘default’.
It stores callbacks, a transaction to a storage engine, and receives/sends (inter-process) events of new writes. open/create with lks_open or lks_open_inmem. Save packets with lks_save*. Get packets with lks_scan, lks_watch, and lks_tap. Use lks_process_ to trigger watch and tap callbacks and to update the transaction. NOTE: Saving a packet will not show up in a scan before calling one of the lks_process* functions.
To use multiple instances in a thread see lks_chsys *
Trait Implementations§
impl StructuralPartialEq for LkSystem
Auto Trait Implementations§
impl Freeze for LkSystem
impl !RefUnwindSafe for LkSystem
impl !Send for LkSystem
impl !Sync for LkSystem
impl Unpin for LkSystem
impl !UnwindSafe for LkSystem
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more