pub struct Action { /* private fields */ }
Implementations§
Source§impl Action
impl Action
pub fn open(path: &Path) -> Result<Self>
pub fn load(&mut self) -> Result<()>
pub fn process_records<R: Read>(f: &mut R) -> Result<KeyValuePair>
pub fn seek_to_end(&mut self) -> Result<u64>
pub fn get(&mut self, key: &[u8]) -> Result<Option<Vec<u8>>>
pub fn get_at(&mut self, position: u64) -> Result<KeyValuePair>
pub fn delete(&mut self, key: &[u8]) -> Result<()>
pub fn insert(&mut self, key: &[u8], value: &[u8]) -> Result<()>
pub fn insert_ignore_index(&mut self, key: &[u8], value: &[u8]) -> Result<u64>
pub fn update(&mut self, key: &[u8], value: &[u8]) -> Result<()>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Action
impl RefUnwindSafe for Action
impl Send for Action
impl Sync for Action
impl Unpin for Action
impl UnwindSafe for Action
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