pub struct WitnessLogConfig {
pub max_entries: u64,
pub max_size_bytes: u64,
pub hash_chain: bool,
pub retention_seconds: u64,
}Expand description
Witness log configuration.
Fields§
§max_entries: u64Maximum entries before rotation.
max_size_bytes: u64Maximum size in bytes.
hash_chain: boolWhether to hash-chain entries.
retention_seconds: u64Retention period in seconds (0 = forever).
Implementations§
Source§impl WitnessLogConfig
impl WitnessLogConfig
Sourcepub fn from_policy(policy: &WitnessLogPolicy) -> Self
pub fn from_policy(policy: &WitnessLogPolicy) -> Self
Creates a configuration from a witness log policy.
Trait Implementations§
Source§impl Clone for WitnessLogConfig
impl Clone for WitnessLogConfig
Source§fn clone(&self) -> WitnessLogConfig
fn clone(&self) -> WitnessLogConfig
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 WitnessLogConfig
impl Debug for WitnessLogConfig
Source§impl Default for WitnessLogConfig
impl Default for WitnessLogConfig
impl Copy for WitnessLogConfig
Auto Trait Implementations§
impl Freeze for WitnessLogConfig
impl RefUnwindSafe for WitnessLogConfig
impl Send for WitnessLogConfig
impl Sync for WitnessLogConfig
impl Unpin for WitnessLogConfig
impl UnsafeUnpin for WitnessLogConfig
impl UnwindSafe for WitnessLogConfig
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