pub struct ExternalTxn { /* private fields */ }Implementations§
Source§impl ExternalTxn
impl ExternalTxn
pub fn new(state: Vec<u8>) -> Self
pub fn read_state_from_bytes( state: &[u8], key: &[u8], ) -> Result<Option<Vec<u8>>>
pub fn read_state(&self, key: &[u8]) -> Result<Option<Vec<u8>>>
pub fn put_state(&mut self, key: &[u8], value: &[u8]) -> Result<()>
pub fn delete_state(&mut self, key: &[u8]) -> Result<()>
pub fn replace_state(&mut self, state: Vec<u8>)
pub fn read_rows(&self) -> Result<Vec<HashMap<u16, Value>>>
pub fn replace_rows( &mut self, schema: &CoreSchema, rows: Vec<HashMap<u16, Value>>, ) -> Result<()>
pub fn emit_base_write(&mut self, op: ExternalBaseWrite) -> Result<()>
Auto Trait Implementations§
impl Freeze for ExternalTxn
impl RefUnwindSafe for ExternalTxn
impl Send for ExternalTxn
impl Sync for ExternalTxn
impl Unpin for ExternalTxn
impl UnsafeUnpin for ExternalTxn
impl UnwindSafe for ExternalTxn
Blanket Implementations§
impl<T> Allocation for T
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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