Struct solana_ledger::blockstore_db::LedgerColumn[][src]

pub struct LedgerColumn<C> where
    C: Column
{ /* fields omitted */ }

Implementations

impl<C> LedgerColumn<C> where
    C: Column + ColumnName
[src]

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]

pub fn delete_slot(
    &self,
    batch: &mut WriteBatch<'_>,
    from: Option<Slot>,
    to: Option<Slot>
) -> Result<bool> where
    C::Index: PartialOrd + Copy + ColumnName
[src]

pub fn compact_range(&self, from: Slot, to: Slot) -> Result<bool> where
    C::Index: PartialOrd + Copy
[src]

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]

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]

pub fn get_protobuf_or_bincode<T: DeserializeOwned + Into<C::Type>>(
    &self,
    key: C::Index
) -> Result<Option<C::Type>>
[src]

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]

Trait Implementations

impl<C: Clone> Clone for LedgerColumn<C> where
    C: Column
[src]

impl<C: Debug> Debug for LedgerColumn<C> where
    C: Column
[src]

Auto Trait Implementations

impl<C> RefUnwindSafe for LedgerColumn<C> where
    C: RefUnwindSafe

impl<C> Send for LedgerColumn<C> where
    C: Send

impl<C> Sync for LedgerColumn<C> where
    C: Sync

impl<C> Unpin for LedgerColumn<C> where
    C: Unpin

impl<C> UnwindSafe for LedgerColumn<C> where
    C: UnwindSafe

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> Instrument for T[src]

impl<T> Instrument for T[src]

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

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

impl<T> MaybeDebug for T where
    T: Debug
[src]

impl<T> Pointable for T[src]

type Init = T

The type for initializers.

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

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<T> Typeable for T where
    T: Any

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 
[src]

impl<T> WithSubscriber for T[src]