pub enum WriteOutcome {
Applied,
RefusedRevoked,
}Expand description
Whether a write happened, or was refused because a revocation covers it.
#[must_use]: a caller that ignores this has written exactly the bug this type exists to make
impossible, and it is the kind of bug that is invisible until somebody’s revocation quietly
stops working. The server treats WriteOutcome::RefusedRevoked as a signal to UNDO the
issuance it was in the middle of, not as an error to report.
Exhaustive, for the same reason RevocationBarrier is: it does not vary with a feature, and
a host matching it wants a third variant to be a compile error rather than a wildcard arm.
Variants§
Applied
The record is in the store.
RefusedRevoked
A RevocationBarrier covers this record, so it was NOT written. Whatever the caller was
in the middle of issuing has been revoked underneath it.
Implementations§
Source§impl WriteOutcome
impl WriteOutcome
Sourcepub fn is_applied(self) -> bool
pub fn is_applied(self) -> bool
True when the record was actually stored.
Sourcepub fn is_refused(self) -> bool
pub fn is_refused(self) -> bool
True when a revocation refused the write.
Trait Implementations§
Source§impl Clone for WriteOutcome
impl Clone for WriteOutcome
Source§fn clone(&self) -> WriteOutcome
fn clone(&self) -> WriteOutcome
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more