Struct bitcoin_bdb::BerkeleyBatch
source · pub struct BerkeleyBatch { /* private fields */ }Expand description
| RAII class that provides access to a | Berkeley database |
Implementations§
source§impl BerkeleyBatch
impl BerkeleyBatch
pub fn close(&mut self)
pub fn start_cursor(&mut self) -> bool
pub fn read_at_cursor( &mut self, ss_key: &mut DataStream, ss_value: &mut DataStream, complete: &mut bool ) -> bool
pub fn close_cursor(&mut self)
pub fn txn_begin(&mut self) -> bool
pub fn txn_commit(&mut self) -> bool
pub fn txn_abort(&mut self) -> bool
pub fn read_key(&mut self, key: DataStream, value: &mut DataStream) -> bool
pub fn write_key( &mut self, key: DataStream, value: DataStream, overwrite: Option<bool> ) -> bool
pub fn erase_key(&mut self, key: DataStream) -> bool
pub fn has_key(&mut self, key: DataStream) -> bool
pub fn new( database: &mut BerkeleyDatabase, read_only: bool, flush_on_close_in: Option<bool> ) -> Self
pub fn flush(&mut self)
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for BerkeleyBatch
impl !Send for BerkeleyBatch
impl !Sync for BerkeleyBatch
impl Unpin for BerkeleyBatch
impl !UnwindSafe for BerkeleyBatch
Blanket Implementations§
§impl<T, U> CastInto<U> for Twhere
U: CastFrom<T>,
impl<T, U> CastInto<U> for Twhere U: CastFrom<T>,
§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T> StaticUpcast<T> for T
impl<T> StaticUpcast<T> for T
§unsafe fn static_upcast(ptr: Ptr<T>) -> Ptr<T>
unsafe fn static_upcast(ptr: Ptr<T>) -> Ptr<T>
Convert type of a const pointer. Read more