pub enum PublishError {
Query(QueryError),
Concurrency(ConcurrencyError),
UnexpectedResponses,
}Expand description
Errors occurring during publishing a SignedPacket
Variants§
Query(QueryError)
Errors that requires either a retry or debugging the network condition.
Concurrency(ConcurrencyError)
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.
UnexpectedResponses
All relays responded with unexpected responses, check debug logs.
Trait Implementations§
Source§impl Clone for PublishError
impl Clone for PublishError
Source§fn clone(&self) -> PublishError
fn clone(&self) -> PublishError
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 PublishError
impl Debug for PublishError
Source§impl Display for PublishError
impl Display for PublishError
Source§impl Error for PublishError
impl Error for PublishError
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 From<PutMutableError> for PublishError
Available on dht only.
impl From<PutMutableError> for PublishError
Available on
dht only.Source§fn from(value: PutMutableError) -> Self
fn from(value: PutMutableError) -> Self
Converts to this type from the input type.
Source§impl From<QueryError> for PublishError
impl From<QueryError> for PublishError
Source§fn from(source: QueryError) -> Self
fn from(source: QueryError) -> Self
Converts to this type from the input type.
Source§impl Hash for PublishError
impl Hash for PublishError
Source§impl PartialEq for PublishError
impl PartialEq for PublishError
impl Eq for PublishError
impl StructuralPartialEq for PublishError
Auto Trait Implementations§
impl Freeze for PublishError
impl RefUnwindSafe for PublishError
impl Send for PublishError
impl Sync for PublishError
impl Unpin for PublishError
impl UnsafeUnpin for PublishError
impl UnwindSafe for PublishError
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.