#[non_exhaustive]pub enum ActivityRecordError {
NotSupported,
Refused {
reason: ActivityRefusal,
body: Box<ErrorBody>,
},
Timeout,
ConnectionClosed,
Protocol(String),
}Expand description
Recording never retries: a lost reply does not imply that the append failed.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
NotSupported
The HELLO_ACK lacked activity-ledger/v1; nothing was sent.
Refused
Timeout
The daemon may have appended the event before this deadline or connection loss.
ConnectionClosed
Protocol(String)
Implementations§
Trait Implementations§
Source§impl Debug for ActivityRecordError
impl Debug for ActivityRecordError
Source§impl Display for ActivityRecordError
impl Display for ActivityRecordError
Source§impl Error for ActivityRecordError
impl Error for ActivityRecordError
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()
Auto Trait Implementations§
impl Forget for ActivityRecordError
impl Freeze for ActivityRecordError
impl Move for ActivityRecordError
impl RefUnwindSafe for ActivityRecordError
impl Send for ActivityRecordError
impl Sync for ActivityRecordError
impl Unpin for ActivityRecordError
impl UnsafeUnpin for ActivityRecordError
impl UnwindSafe for ActivityRecordError
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