Struct near_store::Store [−][src]
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]
&self,
column: DBCol,
key: &[u8]
) -> Result<Option<T>, Error>
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]
&'a self,
column: DBCol
) -> Box<dyn Iterator<Item = (Box<[u8]>, Box<[u8]>)> + 'a>
pub fn iter_without_rc_logic<'a>(
&'a self,
column: DBCol
) -> Box<dyn Iterator<Item = (Box<[u8]>, Box<[u8]>)> + 'a>
[src]
&'a self,
column: DBCol
) -> Box<dyn Iterator<Item = (Box<[u8]>, Box<[u8]>)> + 'a>
pub fn iter_prefix<'a>(
&'a self,
column: DBCol,
key_prefix: &'a [u8]
) -> Box<dyn Iterator<Item = (Box<[u8]>, Box<[u8]>)> + 'a>
[src]
&'a self,
column: DBCol,
key_prefix: &'a [u8]
) -> Box<dyn Iterator<Item = (Box<[u8]>, Box<[u8]>)> + 'a>
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]
&'a self,
column: DBCol,
key_prefix: &'a [u8]
) -> Box<dyn Iterator<Item = Result<(Vec<u8>, T), Error>> + 'a>
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]
&self,
column: DBCol,
filename: &Path
) -> Result<(), Error>
pub fn get_rocksdb(&self) -> Option<&RocksDB>
[src]
Trait Implementations
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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,