pub struct RolloverPolicy {
pub max_bytes: Option<u64>,
pub epoch_ms: Option<u64>,
}Expand description
When a segmented ledger rolls its active segment over to a new file. Both
may be set (roll over on whichever fires first); both None is legal but
pointless (a segmented ledger with exactly one ever-growing segment).
Fields§
§max_bytes: Option<u64>§epoch_ms: Option<u64>Implementations§
Trait Implementations§
Source§impl Clone for RolloverPolicy
impl Clone for RolloverPolicy
Source§fn clone(&self) -> RolloverPolicy
fn clone(&self) -> RolloverPolicy
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for RolloverPolicy
Source§impl Debug for RolloverPolicy
impl Debug for RolloverPolicy
Source§impl Default for RolloverPolicy
impl Default for RolloverPolicy
Source§fn default() -> RolloverPolicy
fn default() -> RolloverPolicy
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for RolloverPolicy
impl RefUnwindSafe for RolloverPolicy
impl Send for RolloverPolicy
impl Sync for RolloverPolicy
impl Unpin for RolloverPolicy
impl UnsafeUnpin for RolloverPolicy
impl UnwindSafe for RolloverPolicy
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