Struct near_store::Store[][src]

pub struct Store { /* fields omitted */ }

Implementations

impl Store[src]

pub fn new(storage: Pin<Arc<dyn Database>>) -> Store[src]

pub fn get(&self, column: DBCol, key: &[u8]) -> Result<Option<Vec<u8>>, Error>[src]

pub fn get_ser<T: BorshDeserialize>(
    &self,
    column: DBCol,
    key: &[u8]
) -> Result<Option<T>, Error>
[src]

pub fn exists(&self, column: DBCol, key: &[u8]) -> Result<bool, Error>[src]

pub fn store_update(&self) -> StoreUpdate[src]

pub fn iter<'a>(
    &'a self,
    column: DBCol
) -> Box<dyn Iterator<Item = (Box<[u8]>, Box<[u8]>)> + 'a>
[src]

pub fn iter_without_rc_logic<'a>(
    &'a self,
    column: DBCol
) -> Box<dyn Iterator<Item = (Box<[u8]>, Box<[u8]>)> + 'a>
[src]

pub fn iter_prefix<'a>(
    &'a self,
    column: DBCol,
    key_prefix: &'a [u8]
) -> Box<dyn Iterator<Item = (Box<[u8]>, Box<[u8]>)> + 'a>
[src]

pub fn iter_prefix_ser<'a, T: BorshDeserialize>(
    &'a self,
    column: DBCol,
    key_prefix: &'a [u8]
) -> Box<dyn Iterator<Item = Result<(Vec<u8>, T), Error>> + 'a>
[src]

pub fn save_to_file(&self, column: DBCol, filename: &Path) -> Result<(), Error>[src]

pub fn load_from_file(
    &self,
    column: DBCol,
    filename: &Path
) -> Result<(), Error>
[src]

pub fn get_rocksdb(&self) -> Option<&RocksDB>[src]

Trait Implementations

impl Clone for Store[src]

Auto Trait Implementations

impl !RefUnwindSafe for Store

impl Send for Store

impl Sync for Store

impl Unpin for Store

impl !UnwindSafe for Store

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,