pub struct RecoveryConfig<const CONFIGURED: bool = true> { /* private fields */ }
Expand description
Configure retransmission.
This API has been marked as unstable: it works as advertised, but it may be changed in a future release.
Implementations§
Source§impl RecoveryConfig<false>
impl RecoveryConfig<false>
Sourcepub fn periodic_queries(self, period: Duration) -> RecoveryConfig<true>
pub fn periodic_queries(self, period: Duration) -> RecoveryConfig<true>
Enable periodic queries for not yet received Samples and specify their period.
This API has been marked as unstable: it works as advertised, but it may be changed in a future release.
This allows to retrieve the last Sample(s) if the last Sample(s) is/are lost.
So it is useful for sporadic publications but useless for periodic publications
with a period smaller or equal to this period.
Retransmission can only be achieved by AdvancedPublishers
that enable cache
and
sample_miss_detection
.
Sourcepub fn heartbeat(self) -> RecoveryConfig<true>
pub fn heartbeat(self) -> RecoveryConfig<true>
Subscribe to heartbeats of AdvancedPublishers
.
This API has been marked as unstable: it works as advertised, but it may be changed in a future release.
This allows to receive the last published Sample’s sequence number and check for misses.
Heartbeat subscriber must be paired with AdvancedPublishers
that enable cache
and
sample_miss_detection
with
heartbeat
or
sporadic_heartbeat
.
Trait Implementations§
Source§impl<const CONFIGURED: bool> Clone for RecoveryConfig<CONFIGURED>
impl<const CONFIGURED: bool> Clone for RecoveryConfig<CONFIGURED>
Source§fn clone(&self) -> RecoveryConfig<CONFIGURED>
fn clone(&self) -> RecoveryConfig<CONFIGURED>
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<const CONFIGURED: bool> Debug for RecoveryConfig<CONFIGURED>
impl<const CONFIGURED: bool> Debug for RecoveryConfig<CONFIGURED>
Source§impl<const CONFIGURED: bool> Default for RecoveryConfig<CONFIGURED>
impl<const CONFIGURED: bool> Default for RecoveryConfig<CONFIGURED>
Source§fn default() -> RecoveryConfig<CONFIGURED>
fn default() -> RecoveryConfig<CONFIGURED>
Returns the “default value” for a type. Read more
impl<const CONFIGURED: bool> Copy for RecoveryConfig<CONFIGURED>
Auto Trait Implementations§
impl<const CONFIGURED: bool> Freeze for RecoveryConfig<CONFIGURED>
impl<const CONFIGURED: bool> RefUnwindSafe for RecoveryConfig<CONFIGURED>
impl<const CONFIGURED: bool> Send for RecoveryConfig<CONFIGURED>
impl<const CONFIGURED: bool> Sync for RecoveryConfig<CONFIGURED>
impl<const CONFIGURED: bool> Unpin for RecoveryConfig<CONFIGURED>
impl<const CONFIGURED: bool> UnwindSafe for RecoveryConfig<CONFIGURED>
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more