pub struct StreamRetention {
pub max_events: Option<u64>,
pub max_age: Option<Dur>,
}Expand description
Retention: whichever bound trims first. Neither set = the 10k default — an unbounded stream on a disk the pressure system guards would be a self-inflicted shed.
Fields§
§max_events: Option<u64>§max_age: Option<Dur>Trait Implementations§
Source§impl Clone for StreamRetention
impl Clone for StreamRetention
Source§fn clone(&self) -> StreamRetention
fn clone(&self) -> StreamRetention
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 moreSource§impl Debug for StreamRetention
impl Debug for StreamRetention
Source§impl Default for StreamRetention
impl Default for StreamRetention
Source§fn default() -> StreamRetention
fn default() -> StreamRetention
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for StreamRetentionwhere
StreamRetention: Default,
impl<'de> Deserialize<'de> for StreamRetentionwhere
StreamRetention: Default,
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 StreamRetention
impl PartialEq for StreamRetention
impl StructuralPartialEq for StreamRetention
Auto Trait Implementations§
impl Freeze for StreamRetention
impl RefUnwindSafe for StreamRetention
impl Send for StreamRetention
impl Sync for StreamRetention
impl Unpin for StreamRetention
impl UnsafeUnpin for StreamRetention
impl UnwindSafe for StreamRetention
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