pub struct RuntimeReadContextV1Adapter { /* private fields */ }Implementations§
Source§impl RuntimeReadContextV1Adapter
impl RuntimeReadContextV1Adapter
pub const fn new(raw: RuntimeReadContextV1) -> Self
Trait Implementations§
Source§impl BizInvariantReadContext for RuntimeReadContextV1Adapter
impl BizInvariantReadContext for RuntimeReadContextV1Adapter
Source§fn with_read_typed_raw(
&self,
record_kind: RecordKind,
sys_id: SysId,
f: &mut dyn FnMut(&[u8]),
) -> Result<bool, RuntimeHostError>
fn with_read_typed_raw( &self, record_kind: RecordKind, sys_id: SysId, f: &mut dyn FnMut(&[u8]), ) -> Result<bool, RuntimeHostError>
Reads a record by system id and passes its bytes to
f when found.Source§fn with_read_typed_by_pk_raw(
&self,
record_kind: RecordKind,
pk: &[u8],
f: &mut dyn FnMut(&[u8]),
) -> Result<bool, RuntimeHostError>
fn with_read_typed_by_pk_raw( &self, record_kind: RecordKind, pk: &[u8], f: &mut dyn FnMut(&[u8]), ) -> Result<bool, RuntimeHostError>
Reads a record by primary-key bytes and passes its bytes to
f when found.Source§fn for_each_record_key_raw(
&self,
kind: RecordKind,
f: &mut dyn FnMut(RecordKey),
) -> Result<(), RuntimeHostError>
fn for_each_record_key_raw( &self, kind: RecordKind, f: &mut dyn FnMut(RecordKey), ) -> Result<(), RuntimeHostError>
Iterates visible record keys for one record kind.
Source§impl Clone for RuntimeReadContextV1Adapter
impl Clone for RuntimeReadContextV1Adapter
Source§fn clone(&self) -> RuntimeReadContextV1Adapter
fn clone(&self) -> RuntimeReadContextV1Adapter
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RuntimeReadContextV1Adapter
impl Debug for RuntimeReadContextV1Adapter
impl Copy for RuntimeReadContextV1Adapter
Auto Trait Implementations§
impl Freeze for RuntimeReadContextV1Adapter
impl RefUnwindSafe for RuntimeReadContextV1Adapter
impl !Send for RuntimeReadContextV1Adapter
impl !Sync for RuntimeReadContextV1Adapter
impl Unpin for RuntimeReadContextV1Adapter
impl UnsafeUnpin for RuntimeReadContextV1Adapter
impl UnwindSafe for RuntimeReadContextV1Adapter
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,
Source§impl<T> InvariantReadContextExt for Twhere
T: BizInvariantReadContext + ?Sized,
impl<T> InvariantReadContextExt for Twhere
T: BizInvariantReadContext + ?Sized,
Source§fn with_read_typed<R, T, F>(
&self,
sys_id: SysId,
f: F,
) -> Result<Option<T>, RuntimeHostError>
fn with_read_typed<R, T, F>( &self, sys_id: SysId, f: F, ) -> Result<Option<T>, RuntimeHostError>
Reads a generated record by system id.
Source§fn with_read_typed_by_pk<R, P, T, F>(
&self,
pk: P,
f: F,
) -> Result<Option<T>, RuntimeHostError>
fn with_read_typed_by_pk<R, P, T, F>( &self, pk: P, f: F, ) -> Result<Option<T>, RuntimeHostError>
Reads a generated record by primary key.