[−][src]Struct leaves::LeafSegment
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]
dao: Arc<D>,
buffer: Arc<RwLock<SegmentBuffer>>,
is_next: bool,
is_init: bool
) -> Result<()>
Auto Trait Implementations
impl<D> Send for LeafSegment<D> where
D: Send + Sync,
D: Send + Sync,
impl<D> Sync for LeafSegment<D> where
D: Send + Sync,
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]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = !
The type returned in the event of a conversion error.
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.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,