pub enum AnnouncerResult {
Success(Success),
TimedOut(TimedOut),
NoNodes(NoNodes),
}Expand description
Result of running an Announcer process.
Variants§
Success(Success)
The target of the Announcer was successfully met.
TimedOut(TimedOut)
The Announcer process was timed out, and all un-synchronized nodes
are marked as timed out.
Note that some nodes still may have synchronized.
NoNodes(NoNodes)
The Announcer ran out of nodes to synchronize with.
Note that some nodes still may have synchronized.
Implementations§
Trait Implementations§
Source§impl Debug for AnnouncerResult
impl Debug for AnnouncerResult
Source§impl From<NoNodes> for AnnouncerResult
impl From<NoNodes> for AnnouncerResult
Source§fn from(no: NoNodes) -> AnnouncerResult
fn from(no: NoNodes) -> AnnouncerResult
Converts to this type from the input type.
Source§impl From<Success> for AnnouncerResult
impl From<Success> for AnnouncerResult
Source§fn from(s: Success) -> AnnouncerResult
fn from(s: Success) -> AnnouncerResult
Converts to this type from the input type.
Source§impl From<TimedOut> for AnnouncerResult
impl From<TimedOut> for AnnouncerResult
Source§fn from(to: TimedOut) -> AnnouncerResult
fn from(to: TimedOut) -> AnnouncerResult
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for AnnouncerResult
impl RefUnwindSafe for AnnouncerResult
impl Send for AnnouncerResult
impl Sync for AnnouncerResult
impl Unpin for AnnouncerResult
impl UnwindSafe for AnnouncerResult
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> 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