pub struct CheckpointConfig {
pub flags: u8,
pub max_size: u32,
pub interval_secs: u16,
}Available on crate feature
extensions only.Expand description
Checkpoint configuration
Fields§
§flags: u8Feature flags
max_size: u32Maximum uncompressed checkpoint size
interval_secs: u16Suggested interval between checkpoints (seconds)
Implementations§
Source§impl CheckpointConfig
impl CheckpointConfig
Sourcepub fn supports_client_request(&self) -> bool
pub fn supports_client_request(&self) -> bool
Check if client can request checkpoints
Sourcepub fn supports_periodic(&self) -> bool
pub fn supports_periodic(&self) -> bool
Check if server sends periodic checkpoints
Sourcepub fn supports_incremental(&self) -> bool
pub fn supports_incremental(&self) -> bool
Check if incremental checkpoints are supported
Sourcepub fn supports_compressed(&self) -> bool
pub fn supports_compressed(&self) -> bool
Check if compressed checkpoints are 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 CheckpointConfig
impl Clone for CheckpointConfig
Source§fn clone(&self) -> CheckpointConfig
fn clone(&self) -> CheckpointConfig
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 CheckpointConfig
impl Debug for CheckpointConfig
Source§impl Default for CheckpointConfig
impl Default for CheckpointConfig
Source§impl PartialEq for CheckpointConfig
impl PartialEq for CheckpointConfig
impl Eq for CheckpointConfig
impl StructuralPartialEq for CheckpointConfig
Auto Trait Implementations§
impl Freeze for CheckpointConfig
impl RefUnwindSafe for CheckpointConfig
impl Send for CheckpointConfig
impl Sync for CheckpointConfig
impl Unpin for CheckpointConfig
impl UnwindSafe for CheckpointConfig
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