pub struct FxtBuilder<H> { /* private fields */ }Implementations§
Source§impl<H: TraceHeader> FxtBuilder<H>
impl<H: TraceHeader> FxtBuilder<H>
Sourcepub fn new(header: H) -> Self
pub fn new(header: H) -> Self
Start a new fxt record with a typed header. The header should be completely configured for the corresponding record except for its size in words which will be updated by the builder.
pub fn atom(self, atom: impl AsRef<[u8]>) -> Self
Sourcepub fn atom_words(self, words: impl AsRef<[u64]>) -> Self
pub fn atom_words(self, words: impl AsRef<[u64]>) -> Self
Append an already serialized record without copying it to a byte vector.
Trait Implementations§
Source§impl<H: Clone> Clone for FxtBuilder<H>
impl<H: Clone> Clone for FxtBuilder<H>
Auto Trait Implementations§
impl<H> Freeze for FxtBuilder<H>where
H: Freeze,
impl<H> RefUnwindSafe for FxtBuilder<H>where
H: RefUnwindSafe,
impl<H> Send for FxtBuilder<H>where
H: Send,
impl<H> Sync for FxtBuilder<H>where
H: Sync,
impl<H> Unpin for FxtBuilder<H>where
H: Unpin,
impl<H> UnsafeUnpin for FxtBuilder<H>where
H: UnsafeUnpin,
impl<H> UnwindSafe for FxtBuilder<H>where
H: UnwindSafe,
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