Struct solana_ledger::blockstore_db::LedgerColumn [−][src]
Implementations
impl<C> LedgerColumn<C> where
C: Column + ColumnName,
[src][−]
C: Column + ColumnName,
pub fn get_bytes(&self, key: C::Index) -> Result<Option<Vec<u8>>>
[src]
pub fn iter(
&self,
iterator_mode: IteratorMode<C::Index>
) -> Result<impl Iterator<Item = (C::Index, Box<[u8]>)> + '_>
[src]
&self,
iterator_mode: IteratorMode<C::Index>
) -> Result<impl Iterator<Item = (C::Index, Box<[u8]>)> + '_>
pub fn delete_slot(
&self,
batch: &mut WriteBatch<'_>,
from: Option<Slot>,
to: Option<Slot>
) -> Result<bool> where
C::Index: PartialOrd + Copy + ColumnName,
[src]
&self,
batch: &mut WriteBatch<'_>,
from: Option<Slot>,
to: Option<Slot>
) -> Result<bool> where
C::Index: PartialOrd + Copy + ColumnName,
pub fn compact_range(&self, from: Slot, to: Slot) -> Result<bool> where
C::Index: PartialOrd + Copy,
[src]
C::Index: PartialOrd + Copy,
pub fn handle(&self) -> &ColumnFamily
[src]
pub fn put_bytes(&self, key: C::Index, value: &[u8]) -> Result<()>
[src]
impl<C> LedgerColumn<C> where
C: TypedColumn + ColumnName,
[src][−]
C: TypedColumn + ColumnName,
pub fn get(&self, key: C::Index) -> Result<Option<C::Type>>
[src]
pub fn put(&self, key: C::Index, value: &C::Type) -> Result<()>
[src]
impl<C> LedgerColumn<C> where
C: ProtobufColumn + ColumnName,
[src][−]
C: ProtobufColumn + ColumnName,
pub fn get_protobuf_or_bincode<T: DeserializeOwned + Into<C::Type>>(
&self,
key: C::Index
) -> Result<Option<C::Type>>
[src]
&self,
key: C::Index
) -> Result<Option<C::Type>>
pub fn get_protobuf(&self, key: C::Index) -> Result<Option<C::Type>>
[src]
pub fn put_protobuf(&self, key: C::Index, value: &C::Type) -> Result<()>
[src]
pub fn deserialize_protobuf_or_bincode<T>(
&self,
serialized_value: &[u8]
) -> Result<C::Type> where
T: Into<C::Type> + DeserializeOwned,
[src]
&self,
serialized_value: &[u8]
) -> Result<C::Type> where
T: Into<C::Type> + DeserializeOwned,
Trait Implementations
impl<C: Clone> Clone for LedgerColumn<C> where
C: Column,
[src][+]
C: Column,
impl<C: Debug> Debug for LedgerColumn<C> where
C: Column,
[src][+]
C: Column,
Auto Trait Implementations
impl<C> RefUnwindSafe for LedgerColumn<C> where
C: RefUnwindSafe,
C: RefUnwindSafe,
impl<C> Send for LedgerColumn<C> where
C: Send,
C: Send,
impl<C> Sync for LedgerColumn<C> where
C: Sync,
C: Sync,
impl<C> Unpin for LedgerColumn<C> where
C: Unpin,
C: Unpin,
impl<C> UnwindSafe for LedgerColumn<C> where
C: UnwindSafe,
C: UnwindSafe,
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,
impl<T> From<T> for T
[src][+]
impl<T> Instrument for T
[src][+]
impl<T> Instrument for T
[src][+]
impl<T, U> Into<U> for T where
U: From<T>,
[src][+]
U: From<T>,
impl<T> IntoRequest<T> for T
[src][+]
impl<T> MaybeDebug for T where
T: Debug,
[src]
T: Debug,
impl<T> Pointable for T
[src][+]
impl<T> Same<T> for T
[src]
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src][+]
T: Clone,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src][+]
U: Into<T>,
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src][+]
U: TryFrom<T>,
impl<T> Typeable for T where
T: Any,
[+]
T: Any,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
[src][+]
V: MultiLane<T>,