pub struct SnapshotBuilder<'a: 'b, 'b, A: Allocator + 'a> { /* private fields */ }Implementations§
Source§impl<'a: 'b, 'b, A: Allocator + 'a> SnapshotBuilder<'a, 'b, A>
impl<'a: 'b, 'b, A: Allocator + 'a> SnapshotBuilder<'a, 'b, A>
pub fn add_id(&mut self, id: &ObjectId12)
pub fn add_parent_id(&mut self, parent_id: &ObjectId12)
pub fn add_nodes( &mut self, nodes: WIPOffset<Vector<'b, ForwardsUOffset<NodeSnapshot<'b>>>>, )
pub fn add_flushed_at(&mut self, flushed_at: u64)
pub fn add_message(&mut self, message: WIPOffset<&'b str>)
pub fn add_metadata( &mut self, metadata: WIPOffset<Vector<'b, ForwardsUOffset<MetadataItem<'b>>>>, )
pub fn add_manifest_files( &mut self, manifest_files: WIPOffset<Vector<'b, ManifestFileInfo>>, )
pub fn add_manifest_files_v2( &mut self, manifest_files_v2: WIPOffset<Vector<'b, ForwardsUOffset<ManifestFileInfoV2<'b>>>>, )
pub fn add_extra(&mut self, extra: WIPOffset<Vector<'b, u8>>)
pub fn new(_fbb: &'b mut FlatBufferBuilder<'a, A>) -> SnapshotBuilder<'a, 'b, A>
pub fn finish(self) -> WIPOffset<Snapshot<'a>>
Auto Trait Implementations§
impl<'a, 'b, A> !UnwindSafe for SnapshotBuilder<'a, 'b, A>
impl<'a, 'b, A> Freeze for SnapshotBuilder<'a, 'b, A>
impl<'a, 'b, A> RefUnwindSafe for SnapshotBuilder<'a, 'b, A>where
A: RefUnwindSafe,
impl<'a, 'b, A> Send for SnapshotBuilder<'a, 'b, A>where
A: Send,
impl<'a, 'b, A> Sync for SnapshotBuilder<'a, 'b, A>where
A: Sync,
impl<'a, 'b, A> Unpin for SnapshotBuilder<'a, 'b, A>
impl<'a, 'b, A> UnsafeUnpin for SnapshotBuilder<'a, 'b, A>
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more