pub struct BlobMessage {
pub id: Hash,
pub offset: u64,
}Expand description
A 40-byte profile entry identifying a blob by its 32-byte Merkle root [Hash] and a logical
byte offset.
Fields§
§id: Hash§offset: u64Readahead-aligned logical byte offset within the blob. Only the start offset (without
length) is stored because replay prefetches a single page at offset and relies on the
pager’s readahead to fault in the full window.
Trait Implementations§
Source§impl Clone for BlobMessage
impl Clone for BlobMessage
impl Copy for BlobMessage
Source§impl Debug for BlobMessage
impl Debug for BlobMessage
impl Eq for BlobMessage
Source§impl Hash for BlobMessage
impl Hash for BlobMessage
Source§impl Message for BlobMessage
impl Message for BlobMessage
type IdType = GenericDigest<FuchsiaMerkleMarker>
fn id(&self) -> Self::IdType
fn offset(&self) -> u64
fn encode_to(&self, dest: MutPtrByteSlice<'_>)
fn decode_from(src: PtrByteSlice<'_>) -> Self
fn is_zeroes(&self) -> bool
fn is_open_marker(&self) -> bool
Source§fn encode_to_vmo(
messages: impl IntoIterator<Item = impl Borrow<Self>>,
block_size: usize,
) -> Result<Vmo, Status>
fn encode_to_vmo( messages: impl IntoIterator<Item = impl Borrow<Self>>, block_size: usize, ) -> Result<Vmo, Status>
Encodes
messages into a new zx::Vmo packed into block_size-aligned blocks (typically
4 KiB) without crossing block_size boundaries. Any trailing bytes in a block that cannot
fit a full message are zero-padded.Source§fn decode_from_vmo(
vmo: Vmo,
block_size: usize,
) -> Result<DecodedMessageIter<Self>, Status>
fn decode_from_vmo( vmo: Vmo, block_size: usize, ) -> Result<DecodedMessageIter<Self>, Status>
Returns an iterator that lazily decodes messages from
vmo one block_size-aligned block
at a time. An all-zero message (Self::is_zeroes()) marks the end of the recorded stream.Source§impl PartialEq for BlobMessage
impl PartialEq for BlobMessage
impl StructuralPartialEq for BlobMessage
Auto Trait Implementations§
impl Freeze for BlobMessage
impl RefUnwindSafe for BlobMessage
impl Send for BlobMessage
impl Sync for BlobMessage
impl Unpin for BlobMessage
impl UnsafeUnpin for BlobMessage
impl UnwindSafe for BlobMessage
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