[][src]Struct leaves::LeafSegment

pub struct LeafSegment<D> {
    pub cache: Arc<Map<u32, Arc<RwLock<SegmentBuffer>>>>,
    // some fields omitted
}

Fields

cache: Arc<Map<u32, Arc<RwLock<SegmentBuffer>>>>

Methods

impl<D: 'static + LeafDao + Send + Sync> LeafSegment<D>[src]

pub fn new(dao: Arc<D>) -> Self[src]

pub async fn init<'_>(&'_ mut self) -> Result<()>[src]

pub async fn get<'_>(&'_ self, tag: u32) -> Result<u64>[src]

pub async fn get_id_from_segment_buffer<'_>(&'_ self, tag: u32) -> Result<u64>[src]

pub async fn update_segment_from_db(
    dao: Arc<D>,
    buffer: Arc<RwLock<SegmentBuffer>>,
    is_next: bool,
    is_init: bool
) -> Result<()>
[src]

Auto Trait Implementations

impl<D> Send for LeafSegment<D> where
    D: Send + Sync

impl<D> Sync for LeafSegment<D> where
    D: Send + Sync

impl<D> Unpin for LeafSegment<D>

impl<D> !UnwindSafe for LeafSegment<D>

impl<D> !RefUnwindSafe for LeafSegment<D>

Blanket Implementations

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

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

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

type Error = !

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> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]