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,
fn clone(&self) -> LedgerColumn<C>
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
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,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> IntoRequest<T> for T
[src]
pub fn into_request(self) -> Request<T>
[src]
impl<T> MaybeDebug for T where
T: Debug,
[src]
T: Debug,
impl<T> Pointable for T
[src]
pub const ALIGN: usize
[src]
type Init = T
The type for initializers.
pub unsafe fn init(init: <T as Pointable>::Init) -> usize
[src]
pub unsafe fn deref<'a>(ptr: usize) -> &'a T
[src]
pub unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T
[src]
pub unsafe fn drop(ptr: usize)
[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,
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<T> Typeable for T where
T: Any,
T: Any,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
[src]
V: MultiLane<T>,
impl<T> WithSubscriber for T
[src]
pub fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
[src]
S: Into<Dispatch>,