pub struct Retention<'a> { /* private fields */ }Implementations§
Source§impl<'a> Retention<'a>
impl<'a> Retention<'a>
Sourcepub async fn set_retention(
&self,
policy: Option<RetentionPolicy>,
) -> Result<Option<u64>, ClientError>
pub async fn set_retention( &self, policy: Option<RetentionPolicy>, ) -> Result<Option<u64>, ClientError>
log.retention.v1.Service.SetRetention — install (Some) or clear
(None) the sequence-log retention rule. The rule is persistent and
continuously enforced as the log grows; eviction surfaces to
log.stream.v1 subscribers as BATCH_EVICTED. Returns the lowest
retained sequence after one synchronous enforcement (None when the log
is empty / no floor exists yet).
Trait Implementations§
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for Retention<'a>
impl<'a> !UnwindSafe for Retention<'a>
impl<'a> Freeze for Retention<'a>
impl<'a> Send for Retention<'a>
impl<'a> Sync for Retention<'a>
impl<'a> Unpin for Retention<'a>
impl<'a> UnsafeUnpin for Retention<'a>
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