pub struct MetadataConfig {
pub flags: u8,
pub max_custom_size: u16,
pub max_causality_entries: u8,
}Available on crate feature
extensions only.Expand description
Metadata configuration
Fields§
§flags: u8Feature flags
max_custom_size: u16Maximum custom metadata size
max_causality_entries: u8Maximum causality entries (vector clock size)
Implementations§
Source§impl MetadataConfig
impl MetadataConfig
Sourcepub fn supports_timestamps(&self) -> bool
pub fn supports_timestamps(&self) -> bool
Check if timestamps are supported
Sourcepub fn supports_user_ids(&self) -> bool
pub fn supports_user_ids(&self) -> bool
Check if user IDs are supported
Sourcepub fn supports_causality(&self) -> bool
pub fn supports_causality(&self) -> bool
Check if causality tracking is supported
Sourcepub fn supports_custom(&self) -> bool
pub fn supports_custom(&self) -> bool
Check if custom metadata is supported
Sourcepub fn to_extension(&self) -> Extension
pub fn to_extension(&self) -> Extension
Encode to extension
Sourcepub fn from_extension(ext: &Extension) -> Option<Self>
pub fn from_extension(ext: &Extension) -> Option<Self>
Decode from extension
Trait Implementations§
Source§impl Clone for MetadataConfig
impl Clone for MetadataConfig
Source§fn clone(&self) -> MetadataConfig
fn clone(&self) -> MetadataConfig
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 MetadataConfig
impl Debug for MetadataConfig
Source§impl Default for MetadataConfig
impl Default for MetadataConfig
Source§impl PartialEq for MetadataConfig
impl PartialEq for MetadataConfig
impl Eq for MetadataConfig
impl StructuralPartialEq for MetadataConfig
Auto Trait Implementations§
impl Freeze for MetadataConfig
impl RefUnwindSafe for MetadataConfig
impl Send for MetadataConfig
impl Sync for MetadataConfig
impl Unpin for MetadataConfig
impl UnwindSafe for MetadataConfig
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