pub enum ConcurrencyError {
ConflictRisk,
NotMostRecent,
CasFailed,
}Expand description
Errors that requires resolving most recent SignedPacket before publishing.
Variants§
ConflictRisk
A different SignedPacket is being concurrently published for the same PublicKey.
This risks a lost update, you should resolve most recent SignedPacket before publishing again.
NotMostRecent
Found a more recent SignedPacket in the client’s cache
This risks a lost update, you should resolve most recent SignedPacket before publishing again.
CasFailed
Compare and swap failed; there is a more recent SignedPacket than the one seen before publishing
This risks a lost update, you should resolve most recent SignedPacket before publishing again.
Trait Implementations§
Source§impl Clone for ConcurrencyError
impl Clone for ConcurrencyError
Source§fn clone(&self) -> ConcurrencyError
fn clone(&self) -> ConcurrencyError
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ConcurrencyError
impl Debug for ConcurrencyError
Source§impl Display for ConcurrencyError
impl Display for ConcurrencyError
Source§impl Error for ConcurrencyError
impl Error for ConcurrencyError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl From<ConcurrencyError> for PublishError
impl From<ConcurrencyError> for PublishError
Source§fn from(source: ConcurrencyError) -> Self
fn from(source: ConcurrencyError) -> Self
Converts to this type from the input type.
Source§impl Hash for ConcurrencyError
impl Hash for ConcurrencyError
Source§impl PartialEq for ConcurrencyError
impl PartialEq for ConcurrencyError
impl Eq for ConcurrencyError
impl StructuralPartialEq for ConcurrencyError
Auto Trait Implementations§
impl Freeze for ConcurrencyError
impl RefUnwindSafe for ConcurrencyError
impl Send for ConcurrencyError
impl Sync for ConcurrencyError
impl Unpin for ConcurrencyError
impl UnsafeUnpin for ConcurrencyError
impl UnwindSafe for ConcurrencyError
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.