pub struct TelemetryPublisher<T, S> { /* private fields */ }Expand description
The sole producer of archived frames and current receiver status.
Implementations§
Source§impl<T, S: Copy + PartialEq> TelemetryPublisher<T, S>
impl<T, S: Copy + PartialEq> TelemetryPublisher<T, S>
Sourcepub fn publish(&mut self, frame: T)
pub fn publish(&mut self, frame: T)
Moves an already archived frame into the ring. A full ring replaces its oldest unread frame. A disconnected reader causes immediate discard.
Sourcepub fn set_status(&mut self, status: S)
pub fn set_status(&mut self, status: S)
Replaces current status and notifies even when no frame is arriving.
pub fn status(&self) -> S
pub fn is_connected(&self) -> bool
Sourcepub fn overwritten(&self) -> u64
pub fn overwritten(&self) -> u64
Cumulative presentation loss; independent of source/archive gaps.
Trait Implementations§
Source§impl<T, S> Drop for TelemetryPublisher<T, S>
impl<T, S> Drop for TelemetryPublisher<T, S>
Auto Trait Implementations§
impl<T, S> !RefUnwindSafe for TelemetryPublisher<T, S>
impl<T, S> !UnwindSafe for TelemetryPublisher<T, S>
impl<T, S> Freeze for TelemetryPublisher<T, S>
impl<T, S> Send for TelemetryPublisher<T, S>
impl<T, S> Sync for TelemetryPublisher<T, S>
impl<T, S> Unpin for TelemetryPublisher<T, S>
impl<T, S> UnsafeUnpin for TelemetryPublisher<T, S>
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
impl<T> GetTypeRegistration for T
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