pub struct PublishedSnapshot { /* private fields */ }Expand description
One atomically published generation and its immutable segment readers.
Implementations§
Source§impl PublishedSnapshot
impl PublishedSnapshot
Sourcepub const fn generation(&self) -> u64
pub const fn generation(&self) -> u64
Returns the monotonic manifest generation published with these segments.
Sourcepub fn segments(&self) -> &[SegmentReader]
pub fn segments(&self) -> &[SegmentReader]
Returns immutable segments belonging to the published epoch alias.
Auto Trait Implementations§
impl !Freeze for PublishedSnapshot
impl RefUnwindSafe for PublishedSnapshot
impl Send for PublishedSnapshot
impl Sync for PublishedSnapshot
impl Unpin for PublishedSnapshot
impl UnsafeUnpin for PublishedSnapshot
impl UnwindSafe for PublishedSnapshot
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more