pub struct Reader { /* private fields */ }
Expand description
Implementation detail: reader thread that takes replies and notifications and distributes them accordingly.
Implementations§
Source§impl Reader
impl Reader
Sourcepub fn get_restart_event_receiver(&self) -> Receiver<RestartEvent>
pub fn get_restart_event_receiver(&self) -> Receiver<RestartEvent>
Gets a channel receiver for restart events. The events can be processed later manually, e.g. to restore notifications or handles.
The restart beacon has got a delivery policy Single
so the event is always delivered in a
single copy, no matter how many restarts happened.
NOTE: it is physically impossible to be 100% was there a network issue or the server has been restarted. In production networks, consider the network issue is the less likely case.
Auto Trait Implementations§
impl Freeze for Reader
impl !RefUnwindSafe for Reader
impl Send for Reader
impl Sync for Reader
impl Unpin for Reader
impl !UnwindSafe for Reader
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
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