pub enum DeviceSyncError {
Show 22 variants
IO(Error),
Serde(Error),
ProtoConversion(ConversionError),
AesGcm(Error),
Storage(StorageError),
Conversion,
UTF8(Utf8Error),
Client(ClientError),
Group(GroupError),
InvalidPayload,
UnspecifiedDeviceSyncKind,
Subscribe(SubscribeError),
Bincode(Error),
Archive(ArchiveError),
Decode(DecodeError),
Deserialization(DeserializationError),
MissingSyncGroup,
Db(ConnectionError),
Sync(Box<SyncSummary>),
MlsStore(MlsStoreError),
Recv(RecvError),
MissingField(MissingField, String),
}Variants§
IO(Error)
I/O error.
File system or network I/O failed. May be retryable.
Serde(Error)
Serialization error.
JSON serialization/deserialization failed. Retryable.
ProtoConversion(ConversionError)
AesGcm(Error)
AES-GCM encryption error.
Encryption/decryption of sync payload failed. Retryable.
Storage(StorageError)
Conversion
Type conversion error.
Internal type conversion failed. Retryable.
UTF8(Utf8Error)
UTF-8 error.
String is not valid UTF-8. Retryable.
Client(ClientError)
Group(GroupError)
InvalidPayload
Invalid payload.
Sync message payload is malformed. Retryable.
UnspecifiedDeviceSyncKind
Unspecified sync kind.
Device sync kind not specified. Not retryable.
Subscribe(SubscribeError)
Bincode(Error)
Bincode error.
Binary serialization failed. Retryable.
Archive(ArchiveError)
Archive error.
Sync archive operation failed. Retryable.
Decode(DecodeError)
Decode error.
Protobuf decoding failed. Retryable.
Deserialization(DeserializationError)
MissingSyncGroup
Missing sync group.
Sync group not found. Not retryable.
Db(ConnectionError)
Sync(Box<SyncSummary>)
Sync summary.
Sync completed with errors. May be retryable.
MlsStore(MlsStoreError)
MLS store error.
OpenMLS key store operation failed. Retryable.
Recv(RecvError)
Receive error.
Channel receive failed. Retryable.
MissingField(MissingField, String)
Missing field.
Required field not present. Retryable.
Trait Implementations§
Source§impl Debug for DeviceSyncError
impl Debug for DeviceSyncError
Source§impl Display for DeviceSyncError
impl Display for DeviceSyncError
Source§impl Error for DeviceSyncError
impl Error for DeviceSyncError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
Source§impl ErrorCode for DeviceSyncError
impl ErrorCode for DeviceSyncError
Source§fn error_code(&self) -> &'static str
fn error_code(&self) -> &'static str
Source§impl From<ArchiveError> for DeviceSyncError
impl From<ArchiveError> for DeviceSyncError
Source§fn from(source: ArchiveError) -> Self
fn from(source: ArchiveError) -> Self
Source§impl From<ClientError> for DeviceSyncError
impl From<ClientError> for DeviceSyncError
Source§fn from(source: ClientError) -> Self
fn from(source: ClientError) -> Self
Source§impl From<ConnectionError> for DeviceSyncError
impl From<ConnectionError> for DeviceSyncError
Source§fn from(source: ConnectionError) -> Self
fn from(source: ConnectionError) -> Self
Source§impl From<ConversionError> for DeviceSyncError
impl From<ConversionError> for DeviceSyncError
Source§fn from(source: ConversionError) -> Self
fn from(source: ConversionError) -> Self
Source§impl From<DecodeError> for DeviceSyncError
impl From<DecodeError> for DeviceSyncError
Source§fn from(source: DecodeError) -> Self
fn from(source: DecodeError) -> Self
Source§impl From<DeserializationError> for DeviceSyncError
impl From<DeserializationError> for DeviceSyncError
Source§fn from(source: DeserializationError) -> Self
fn from(source: DeserializationError) -> Self
Source§impl From<DeviceSyncError> for ClientBuilderError
impl From<DeviceSyncError> for ClientBuilderError
Source§fn from(value: DeviceSyncError) -> Self
fn from(value: DeviceSyncError) -> Self
Source§impl From<DeviceSyncError> for TaskWorkerError
impl From<DeviceSyncError> for TaskWorkerError
Source§fn from(source: DeviceSyncError) -> Self
fn from(source: DeviceSyncError) -> Self
Source§impl From<Error> for DeviceSyncError
impl From<Error> for DeviceSyncError
Source§impl From<Error> for DeviceSyncError
impl From<Error> for DeviceSyncError
Source§impl From<Error> for DeviceSyncError
impl From<Error> for DeviceSyncError
Source§impl From<GroupError> for DeviceSyncError
impl From<GroupError> for DeviceSyncError
Source§fn from(source: GroupError) -> Self
fn from(source: GroupError) -> Self
Source§impl From<MlsStoreError> for DeviceSyncError
impl From<MlsStoreError> for DeviceSyncError
Source§fn from(source: MlsStoreError) -> Self
fn from(source: MlsStoreError) -> Self
Source§impl From<NotFound> for DeviceSyncError
impl From<NotFound> for DeviceSyncError
Source§impl From<RecvError> for DeviceSyncError
impl From<RecvError> for DeviceSyncError
Source§impl From<StorageError> for DeviceSyncError
impl From<StorageError> for DeviceSyncError
Source§fn from(source: StorageError) -> Self
fn from(source: StorageError) -> Self
Source§impl From<SubscribeError> for DeviceSyncError
impl From<SubscribeError> for DeviceSyncError
Source§fn from(source: SubscribeError) -> Self
fn from(source: SubscribeError) -> Self
Source§impl From<SyncSummary> for DeviceSyncError
impl From<SyncSummary> for DeviceSyncError
Source§fn from(value: SyncSummary) -> Self
fn from(value: SyncSummary) -> Self
Source§impl From<Utf8Error> for DeviceSyncError
impl From<Utf8Error> for DeviceSyncError
Source§impl NeedsDbReconnect for DeviceSyncError
impl NeedsDbReconnect for DeviceSyncError
fn needs_db_reconnect(&self) -> bool
Source§impl RetryableError for DeviceSyncError
impl RetryableError for DeviceSyncError
fn is_retryable(&self) -> bool
Auto Trait Implementations§
impl Freeze for DeviceSyncError
impl !RefUnwindSafe for DeviceSyncError
impl Send for DeviceSyncError
impl Sync for DeviceSyncError
impl Unpin for DeviceSyncError
impl UnsafeUnpin for DeviceSyncError
impl !UnwindSafe for DeviceSyncError
Blanket Implementations§
§impl<T> AggregateExpressionMethods for T
impl<T> AggregateExpressionMethods for T
§fn aggregate_distinct(self) -> Self::Outputwhere
Self: DistinctDsl,
fn aggregate_distinct(self) -> Self::Outputwhere
Self: DistinctDsl,
DISTINCT modifier for aggregate functions Read more§fn aggregate_all(self) -> Self::Outputwhere
Self: AllDsl,
fn aggregate_all(self) -> Self::Outputwhere
Self: AllDsl,
ALL modifier for aggregate functions Read more§fn aggregate_filter<P>(self, f: P) -> Self::Outputwhere
P: AsExpression<Bool>,
Self: FilterDsl<<P as AsExpression<Bool>>::Expression>,
fn aggregate_filter<P>(self, f: P) -> Self::Outputwhere
P: AsExpression<Bool>,
Self: FilterDsl<<P as AsExpression<Bool>>::Expression>,
§fn aggregate_order<O>(self, o: O) -> Self::Outputwhere
Self: OrderAggregateDsl<O>,
fn aggregate_order<O>(self, o: O) -> Self::Outputwhere
Self: OrderAggregateDsl<O>,
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
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>, which can then be
downcast into Box<dyn ConcreteType> where ConcreteType implements Trait.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>, which can then be further
downcast into Rc<ConcreteType> where ConcreteType implements Trait.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.§impl<T> DowncastSend for T
impl<T> DowncastSend for T
§impl<T> DowncastSync for T
impl<T> DowncastSync for T
§impl<T> FutureExt for T
impl<T> FutureExt for T
§fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
§fn with_current_context(self) -> WithContext<Self> ⓘ
fn with_current_context(self) -> WithContext<Self> ⓘ
§impl<T> Identity for Twhere
T: ?Sized,
impl<T> Identity for Twhere
T: ?Sized,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> 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> ⓘ
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> ⓘ
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§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request§impl<T> IntoSql for T
impl<T> IntoSql for T
§impl<L> LayerExt<L> for L
impl<L> LayerExt<L> for L
§fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
Layered].Source§impl<TraitVariantBlanketType> LocalNeedsDbReconnect for TraitVariantBlanketTypewhere
TraitVariantBlanketType: NeedsDbReconnect,
impl<TraitVariantBlanketType> LocalNeedsDbReconnect for TraitVariantBlanketTypewhere
TraitVariantBlanketType: NeedsDbReconnect,
fn needs_db_reconnect(&self) -> bool
§impl<D> OwoColorize for D
impl<D> OwoColorize for D
§fn fg<C>(&self) -> FgColorDisplay<'_, C, Self>where
C: Color,
fn fg<C>(&self) -> FgColorDisplay<'_, C, Self>where
C: Color,
§fn bg<C>(&self) -> BgColorDisplay<'_, C, Self>where
C: Color,
fn bg<C>(&self) -> BgColorDisplay<'_, C, Self>where
C: Color,
§fn on_magenta(&self) -> BgColorDisplay<'_, Magenta, Self>
fn on_magenta(&self) -> BgColorDisplay<'_, Magenta, Self>
§fn default_color(&self) -> FgColorDisplay<'_, Default, Self>
fn default_color(&self) -> FgColorDisplay<'_, Default, Self>
§fn on_default_color(&self) -> BgColorDisplay<'_, Default, Self>
fn on_default_color(&self) -> BgColorDisplay<'_, Default, Self>
§fn bright_black(&self) -> FgColorDisplay<'_, BrightBlack, Self>
fn bright_black(&self) -> FgColorDisplay<'_, BrightBlack, Self>
§fn on_bright_black(&self) -> BgColorDisplay<'_, BrightBlack, Self>
fn on_bright_black(&self) -> BgColorDisplay<'_, BrightBlack, Self>
§fn bright_red(&self) -> FgColorDisplay<'_, BrightRed, Self>
fn bright_red(&self) -> FgColorDisplay<'_, BrightRed, Self>
§fn on_bright_red(&self) -> BgColorDisplay<'_, BrightRed, Self>
fn on_bright_red(&self) -> BgColorDisplay<'_, BrightRed, Self>
§fn bright_green(&self) -> FgColorDisplay<'_, BrightGreen, Self>
fn bright_green(&self) -> FgColorDisplay<'_, BrightGreen, Self>
§fn on_bright_green(&self) -> BgColorDisplay<'_, BrightGreen, Self>
fn on_bright_green(&self) -> BgColorDisplay<'_, BrightGreen, Self>
§fn bright_yellow(&self) -> FgColorDisplay<'_, BrightYellow, Self>
fn bright_yellow(&self) -> FgColorDisplay<'_, BrightYellow, Self>
§fn on_bright_yellow(&self) -> BgColorDisplay<'_, BrightYellow, Self>
fn on_bright_yellow(&self) -> BgColorDisplay<'_, BrightYellow, Self>
§fn bright_blue(&self) -> FgColorDisplay<'_, BrightBlue, Self>
fn bright_blue(&self) -> FgColorDisplay<'_, BrightBlue, Self>
§fn on_bright_blue(&self) -> BgColorDisplay<'_, BrightBlue, Self>
fn on_bright_blue(&self) -> BgColorDisplay<'_, BrightBlue, Self>
§fn bright_magenta(&self) -> FgColorDisplay<'_, BrightMagenta, Self>
fn bright_magenta(&self) -> FgColorDisplay<'_, BrightMagenta, Self>
§fn on_bright_magenta(&self) -> BgColorDisplay<'_, BrightMagenta, Self>
fn on_bright_magenta(&self) -> BgColorDisplay<'_, BrightMagenta, Self>
§fn bright_purple(&self) -> FgColorDisplay<'_, BrightMagenta, Self>
fn bright_purple(&self) -> FgColorDisplay<'_, BrightMagenta, Self>
§fn on_bright_purple(&self) -> BgColorDisplay<'_, BrightMagenta, Self>
fn on_bright_purple(&self) -> BgColorDisplay<'_, BrightMagenta, Self>
§fn bright_cyan(&self) -> FgColorDisplay<'_, BrightCyan, Self>
fn bright_cyan(&self) -> FgColorDisplay<'_, BrightCyan, Self>
§fn on_bright_cyan(&self) -> BgColorDisplay<'_, BrightCyan, Self>
fn on_bright_cyan(&self) -> BgColorDisplay<'_, BrightCyan, Self>
§fn bright_white(&self) -> FgColorDisplay<'_, BrightWhite, Self>
fn bright_white(&self) -> FgColorDisplay<'_, BrightWhite, Self>
§fn on_bright_white(&self) -> BgColorDisplay<'_, BrightWhite, Self>
fn on_bright_white(&self) -> BgColorDisplay<'_, BrightWhite, Self>
§fn blink_fast(&self) -> BlinkFastDisplay<'_, Self>
fn blink_fast(&self) -> BlinkFastDisplay<'_, Self>
§fn strikethrough(&self) -> StrikeThroughDisplay<'_, Self>
fn strikethrough(&self) -> StrikeThroughDisplay<'_, Self>
§fn color<Color>(&self, color: Color) -> FgDynColorDisplay<'_, Color, Self>where
Color: DynColor,
fn color<Color>(&self, color: Color) -> FgDynColorDisplay<'_, Color, Self>where
Color: DynColor,
OwoColorize::fg] or
a color-specific method, such as [OwoColorize::green], Read more§fn on_color<Color>(&self, color: Color) -> BgDynColorDisplay<'_, Color, Self>where
Color: DynColor,
fn on_color<Color>(&self, color: Color) -> BgDynColorDisplay<'_, Color, Self>where
Color: DynColor,
OwoColorize::bg] or
a color-specific method, such as [OwoColorize::on_yellow], Read more