pub enum DiscoverVerdict<RunningStateSeed> {
Alright,
ConstellationOutdated {
new_constellation: Box<Constellation>,
seed: RunningStateSeed,
},
RunningStateOutdated {
seed: RunningStateSeed,
},
BinaryOutdated,
}Expand description
Result of App::discover, generic over the server’s
RunningStateSeed.
Variants§
Alright
My and PHC’s constellation seem up-to-date
ConstellationOutdated
My constellation is out-of-date and must be replaced with this constellation. seed
carries the data create_running_state needs but cannot
recompute.
RunningStateOutdated
My constellation is unchanged, but my running state must be rebuilt from seed. Used by
PHC once it has unsealed the transcryptor’s master key part and can derive the master
encryption key (which lives in the running state, not the constellation): no new
constellation is published, so T and AS are not restarted.
Fields
§
seed: RunningStateSeedBinaryOutdated
My binary is out-of-date. Exit this binary, and hope the binary is updated.
Auto Trait Implementations§
impl<RunningStateSeed> Freeze for DiscoverVerdict<RunningStateSeed>where
RunningStateSeed: Freeze,
impl<RunningStateSeed> RefUnwindSafe for DiscoverVerdict<RunningStateSeed>where
RunningStateSeed: RefUnwindSafe,
impl<RunningStateSeed> Send for DiscoverVerdict<RunningStateSeed>where
RunningStateSeed: Send,
impl<RunningStateSeed> Sync for DiscoverVerdict<RunningStateSeed>where
RunningStateSeed: Sync,
impl<RunningStateSeed> Unpin for DiscoverVerdict<RunningStateSeed>where
RunningStateSeed: Unpin,
impl<RunningStateSeed> UnsafeUnpin for DiscoverVerdict<RunningStateSeed>where
RunningStateSeed: UnsafeUnpin,
impl<RunningStateSeed> UnwindSafe for DiscoverVerdict<RunningStateSeed>where
RunningStateSeed: UnwindSafe,
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