pub struct ReplayEnabled {
pub replay_retention: ReplayRetention,
}Expand description
Marker for streams with replay support.
Fields§
§replay_retention: ReplayRetentionReplay history retained for subscribers created after output has already arrived.
Implementations§
Source§impl ReplayEnabled
impl ReplayEnabled
Sourcepub fn new(replay_retention: ReplayRetention) -> Self
pub fn new(replay_retention: ReplayRetention) -> Self
Creates a replay-enabled marker with the given retention.
Trait Implementations§
Source§impl Clone for ReplayEnabled
impl Clone for ReplayEnabled
Source§fn clone(&self) -> ReplayEnabled
fn clone(&self) -> ReplayEnabled
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 ReplayEnabled
impl Debug for ReplayEnabled
Source§impl PartialEq for ReplayEnabled
impl PartialEq for ReplayEnabled
Source§impl Replay for ReplayEnabled
impl Replay for ReplayEnabled
Source§fn replay_retention(self) -> Option<ReplayRetention>
fn replay_retention(self) -> Option<ReplayRetention>
Returns the replay retention represented by this marker.
Source§fn replay_enabled(self) -> bool
fn replay_enabled(self) -> bool
Returns whether replay-specific APIs are enabled for this marker.
impl Copy for ReplayEnabled
impl Eq for ReplayEnabled
impl StructuralPartialEq for ReplayEnabled
Auto Trait Implementations§
impl Freeze for ReplayEnabled
impl RefUnwindSafe for ReplayEnabled
impl Send for ReplayEnabled
impl Sync for ReplayEnabled
impl Unpin for ReplayEnabled
impl UnsafeUnpin for ReplayEnabled
impl UnwindSafe for ReplayEnabled
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