pub struct MaskDescriptor {
pub method: String,
pub offset: u64,
pub length: u64,
pub params: BTreeMap<String, Value>,
}Expand description
On-wire descriptor for one of the three NaN / Inf companion-frame
masks (see plans/WIRE_FORMAT.md §6.5.1).
offset and length locate the mask blob inside the frame’s
payload region; method names the compression scheme (rle,
roaring, blosc2, zstd, lz4, or none); params carries
any method-specific parameters (e.g. zstd level, blosc2 sub-codec).
Fields§
§method: StringCanonical method name — rle | roaring | blosc2 | zstd |
lz4 | none.
offset: u64Byte offset of the mask blob, measured from the start of the frame’s payload region (= the first byte after the 16-byte frame header).
length: u64Byte length of the (compressed) mask blob on disk.
params: BTreeMap<String, Value>Method-specific parameters (e.g. { "level": 3 } for zstd).
Empty map is serialised as absent to match the canonical
zero-cost form.
Trait Implementations§
Source§impl Clone for MaskDescriptor
impl Clone for MaskDescriptor
Source§fn clone(&self) -> MaskDescriptor
fn clone(&self) -> MaskDescriptor
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for MaskDescriptor
impl Debug for MaskDescriptor
Source§impl<'de> Deserialize<'de> for MaskDescriptor
impl<'de> Deserialize<'de> for MaskDescriptor
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for MaskDescriptor
impl PartialEq for MaskDescriptor
Source§impl Serialize for MaskDescriptor
impl Serialize for MaskDescriptor
impl StructuralPartialEq for MaskDescriptor
Auto Trait Implementations§
impl Freeze for MaskDescriptor
impl RefUnwindSafe for MaskDescriptor
impl Send for MaskDescriptor
impl Sync for MaskDescriptor
impl Unpin for MaskDescriptor
impl UnsafeUnpin for MaskDescriptor
impl UnwindSafe for MaskDescriptor
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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