pub enum ServerError<U: Debug> {
ClientError(U),
InternalError(String),
}Variants§
Trait Implementations§
Source§impl<U: Clone + Debug> Clone for ServerError<U>
impl<U: Clone + Debug> Clone for ServerError<U>
Source§fn clone(&self) -> ServerError<U>
fn clone(&self) -> ServerError<U>
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<'de, U> Deserialize<'de> for ServerError<U>where
U: Deserialize<'de> + Debug,
impl<'de, U> Deserialize<'de> for ServerError<U>where
U: Deserialize<'de> + Debug,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<DecodeError> for ServerError<AppStoreNotificationError>
impl From<DecodeError> for ServerError<AppStoreNotificationError>
Source§fn from(_: DecodeError) -> Self
fn from(_: DecodeError) -> Self
Converts to this type from the input type.
Source§impl From<Error> for ServerError<AppStoreNotificationError>
impl From<Error> for ServerError<AppStoreNotificationError>
Source§impl From<Error> for ServerError<UpgradeAccountAppStoreError>
impl From<Error> for ServerError<UpgradeAccountAppStoreError>
Source§impl From<Error> for ServerError<UpgradeAccountAppStoreError>
impl From<Error> for ServerError<UpgradeAccountAppStoreError>
Source§impl From<Error> for ServerError<UpsertDebugInfoError>
impl From<Error> for ServerError<UpsertDebugInfoError>
Source§impl From<LbErr> for ServerError<AdminDisappearFileError>
impl From<LbErr> for ServerError<AdminDisappearFileError>
Source§impl From<LbErr> for ServerError<AdminFileInfoError>
impl From<LbErr> for ServerError<AdminFileInfoError>
Source§impl From<LbErr> for ServerError<AdminGetAccountInfoError>
impl From<LbErr> for ServerError<AdminGetAccountInfoError>
Source§impl From<LbErr> for ServerError<AdminValidateAccountError>
impl From<LbErr> for ServerError<AdminValidateAccountError>
Source§impl From<LbErr> for ServerError<AdminValidateServerError>
impl From<LbErr> for ServerError<AdminValidateServerError>
Source§impl From<LbErr> for ServerError<CancelSubscriptionError>
impl From<LbErr> for ServerError<CancelSubscriptionError>
Source§impl From<LbErr> for ServerError<ChangeDocError>
impl From<LbErr> for ServerError<ChangeDocError>
Source§impl From<LbErr> for ServerError<DeleteAccountHelperError>
impl From<LbErr> for ServerError<DeleteAccountHelperError>
Source§impl From<LbErr> for ServerError<GetDocumentError>
impl From<LbErr> for ServerError<GetDocumentError>
Source§impl From<LbErr> for ServerError<GetFileIdsError>
impl From<LbErr> for ServerError<GetFileIdsError>
Source§impl From<LbErr> for ServerError<GetUpdatesError>
impl From<LbErr> for ServerError<GetUpdatesError>
Source§impl From<LbErr> for ServerError<GetUsageError>
impl From<LbErr> for ServerError<GetUsageError>
Source§impl From<LbErr> for ServerError<MetricsError>
impl From<LbErr> for ServerError<MetricsError>
Source§impl From<LbErr> for ServerError<UpsertError>
impl From<LbErr> for ServerError<UpsertError>
Source§impl<T: Debug> From<ParseIdError> for ServerError<T>
impl<T: Debug> From<ParseIdError> for ServerError<T>
Source§fn from(err: ParseIdError) -> Self
fn from(err: ParseIdError) -> Self
Converts to this type from the input type.
Source§impl<T: Debug, G> From<PoisonError<G>> for ServerError<T>
impl<T: Debug, G> From<PoisonError<G>> for ServerError<T>
Source§fn from(value: PoisonError<G>) -> Self
fn from(value: PoisonError<G>) -> Self
Converts to this type from the input type.
Source§impl From<ServerError<DeleteAccountHelperError>> for ServerError<AdminDisappearAccountError>
impl From<ServerError<DeleteAccountHelperError>> for ServerError<AdminDisappearAccountError>
Source§fn from(err: ServerError<DeleteAccountHelperError>) -> Self
fn from(err: ServerError<DeleteAccountHelperError>) -> Self
Converts to this type from the input type.
Source§impl From<ServerError<DeleteAccountHelperError>> for ServerError<DeleteAccountError>
impl From<ServerError<DeleteAccountHelperError>> for ServerError<DeleteAccountError>
Source§fn from(err: ServerError<DeleteAccountHelperError>) -> Self
fn from(err: ServerError<DeleteAccountHelperError>) -> Self
Converts to this type from the input type.
Source§impl From<ServerError<GetUsageHelperError>> for ServerError<CancelSubscriptionError>
impl From<ServerError<GetUsageHelperError>> for ServerError<CancelSubscriptionError>
Source§fn from(e: ServerError<GetUsageHelperError>) -> Self
fn from(e: ServerError<GetUsageHelperError>) -> Self
Converts to this type from the input type.
Source§impl From<ServerError<GetUsageHelperError>> for ServerError<GetUsageError>
impl From<ServerError<GetUsageHelperError>> for ServerError<GetUsageError>
Source§fn from(e: ServerError<GetUsageHelperError>) -> Self
fn from(e: ServerError<GetUsageHelperError>) -> Self
Converts to this type from the input type.
Source§impl From<ServerError<LockBillingWorkflowError>> for ServerError<AdminSetUserTierError>
impl From<ServerError<LockBillingWorkflowError>> for ServerError<AdminSetUserTierError>
Source§fn from(err: ServerError<LockBillingWorkflowError>) -> Self
fn from(err: ServerError<LockBillingWorkflowError>) -> Self
Converts to this type from the input type.
Source§impl From<ServerError<LockBillingWorkflowError>> for ServerError<CancelSubscriptionError>
impl From<ServerError<LockBillingWorkflowError>> for ServerError<CancelSubscriptionError>
Source§fn from(err: ServerError<LockBillingWorkflowError>) -> Self
fn from(err: ServerError<LockBillingWorkflowError>) -> Self
Converts to this type from the input type.
Source§impl From<ServerError<LockBillingWorkflowError>> for ServerError<UpgradeAccountAppStoreError>
impl From<ServerError<LockBillingWorkflowError>> for ServerError<UpgradeAccountAppStoreError>
Source§fn from(err: ServerError<LockBillingWorkflowError>) -> Self
fn from(err: ServerError<LockBillingWorkflowError>) -> Self
Converts to this type from the input type.
Source§impl From<ServerError<LockBillingWorkflowError>> for ServerError<UpgradeAccountGooglePlayError>
impl From<ServerError<LockBillingWorkflowError>> for ServerError<UpgradeAccountGooglePlayError>
Source§fn from(err: ServerError<LockBillingWorkflowError>) -> Self
fn from(err: ServerError<LockBillingWorkflowError>) -> Self
Converts to this type from the input type.
Source§impl From<ServerError<LockBillingWorkflowError>> for ServerError<UpgradeAccountStripeError>
impl From<ServerError<LockBillingWorkflowError>> for ServerError<UpgradeAccountStripeError>
Source§fn from(err: ServerError<LockBillingWorkflowError>) -> Self
fn from(err: ServerError<LockBillingWorkflowError>) -> Self
Converts to this type from the input type.
Source§impl From<SimpleGCPError> for ServerError<CancelSubscriptionError>
impl From<SimpleGCPError> for ServerError<CancelSubscriptionError>
Source§fn from(e: SimpleGCPError) -> Self
fn from(e: SimpleGCPError) -> Self
Converts to this type from the input type.
Source§impl From<SimpleGCPError> for ServerError<UpgradeAccountGooglePlayError>
impl From<SimpleGCPError> for ServerError<UpgradeAccountGooglePlayError>
Source§fn from(e: SimpleGCPError) -> Self
fn from(e: SimpleGCPError) -> Self
Converts to this type from the input type.
Source§impl From<SimplifiedStripeError> for ServerError<UpgradeAccountStripeError>
impl From<SimplifiedStripeError> for ServerError<UpgradeAccountStripeError>
Source§fn from(e: SimplifiedStripeError) -> Self
fn from(e: SimplifiedStripeError) -> Self
Converts to this type from the input type.
Source§impl From<WebhookError> for ServerError<StripeWebhookError>
impl From<WebhookError> for ServerError<StripeWebhookError>
Source§fn from(e: WebhookError) -> Self
fn from(e: WebhookError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<U> Freeze for ServerError<U>where
U: Freeze,
impl<U> RefUnwindSafe for ServerError<U>where
U: RefUnwindSafe,
impl<U> Send for ServerError<U>where
U: Send,
impl<U> Sync for ServerError<U>where
U: Sync,
impl<U> Unpin for ServerError<U>where
U: Unpin,
impl<U> UnsafeUnpin for ServerError<U>where
U: UnsafeUnpin,
impl<U> UnwindSafe for ServerError<U>where
U: UnwindSafe,
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Converts
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>, which can then be
downcast into Box<dyn ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Converts
Rc<Trait> (where Trait: Downcast) to Rc<Any>, which can then be further
downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Converts
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Converts
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.Source§impl<T> DowncastSend for T
impl<T> DowncastSend for T
Source§impl<T> DowncastSync for T
impl<T> DowncastSync for T
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> 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>
Converts
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>
Converts
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