[][src]Struct pearl::Entry

pub struct Entry { /* fields omitted */ }

Entry is a [Future], which contains header and metadata of the record, but does not contain all of the data in memory.

If you searching for the records with particular meta, you don't need to load full record. When you've found entry with required meta, call load to get body.

Implementations

impl Entry[src]

pub async fn load(self) -> Result<Record>[src]

Consumes Entry and returns whole loaded record.

Errors

Returns the error type for I/O operations, see std::io::Error

pub async fn load_data<'_>(&'_ self) -> Result<Vec<u8>>[src]

Returns only data.

Errors

Fails after any disk IO errors.

pub async fn load_meta<'_, '_>(&'_ mut self) -> Result<Option<&'_ Meta>>[src]

Loads meta data from fisk, and returns reference to it.

Errors

Fails after any disk IO errors.

Trait Implementations

impl Debug for Entry[src]

Auto Trait Implementations

impl !RefUnwindSafe for Entry

impl Send for Entry

impl Sync for Entry

impl Unpin for Entry

impl !UnwindSafe for Entry

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> Conv for T

impl<T> FmtForward for T

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

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

impl<T> Pipe for T

impl<T> PipeAsRef for T

impl<T> PipeBorrow for T

impl<T> PipeDeref for T

impl<T> PipeRef for T

impl<T> Tap for T

impl<T, U> TapAsRef<U> for T where
    U: ?Sized

impl<T, U> TapBorrow<U> for T where
    U: ?Sized

impl<T> TapDeref for T

impl<T> TryConv for T

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>,