pub enum LbErrKind {
Show 54 variants
AccountExists,
AccountNonexistent,
AccountStringCorrupted,
AlreadyCanceled,
AlreadyPremium,
AppStoreAccountAlreadyLinked,
AlreadySyncing,
CannotCancelSubscriptionForAppStore,
CardDecline,
CardExpired,
CardInsufficientFunds,
CardInvalidCvc,
CardInvalidExpMonth,
CardInvalidExpYear,
CardInvalidNumber,
CardNotSupported,
ClientUpdateRequired,
CurrentUsageIsMoreThanNewTier,
DiskPathInvalid,
DiskPathTaken,
DrawingInvalid,
ExistingRequestPending,
FileNameContainsSlash,
FileNameTooLong,
FileNameEmpty,
FileNonexistent,
FileNotDocument,
FileParentNonexistent,
InsufficientPermission,
InvalidPurchaseToken,
InvalidAuthDetails,
KeyPhraseInvalid,
NotPremium,
UsageIsOverDataCap,
UsageIsOverFreeTierDataCap,
OldCardDoesNotExist,
PathContainsEmptyFileName,
RootModificationInvalid,
RootNonexistent,
ServerDisabled,
ServerUnreachable,
ShareAlreadyExists,
ShareNonexistent,
TryAgain,
UsernameInvalid,
UsernameNotFound,
UsernamePublicKeyMismatch,
UsernameTaken,
ReReadRequired,
Diff(DiffError),
Validation(ValidationFailure),
Sign(SignError),
Crypto(CryptoError),
Unexpected(String),
}Variants§
AccountExists
AccountNonexistent
AccountStringCorrupted
AlreadyCanceled
AlreadyPremium
AppStoreAccountAlreadyLinked
AlreadySyncing
CannotCancelSubscriptionForAppStore
CardDecline
CardExpired
CardInsufficientFunds
CardInvalidCvc
CardInvalidExpMonth
CardInvalidExpYear
CardInvalidNumber
CardNotSupported
ClientUpdateRequired
CurrentUsageIsMoreThanNewTier
DiskPathInvalid
DiskPathTaken
DrawingInvalid
ExistingRequestPending
FileNameContainsSlash
FileNameTooLong
FileNameEmpty
FileNonexistent
FileNotDocument
FileParentNonexistent
InsufficientPermission
InvalidPurchaseToken
InvalidAuthDetails
KeyPhraseInvalid
NotPremium
UsageIsOverDataCap
UsageIsOverFreeTierDataCap
OldCardDoesNotExist
PathContainsEmptyFileName
RootModificationInvalid
RootNonexistent
ServerDisabled
ServerUnreachable
TryAgain
UsernameInvalid
UsernameNotFound
UsernamePublicKeyMismatch
UsernameTaken
ReReadRequired
Diff(DiffError)
Validation(ValidationFailure)
Errors that describe invalid modifications to trees. See ValidationFailure for more info
Sign(SignError)
Crypto(CryptoError)
Unexpected(String)
If no programmer in any part of the stack (including tests) expects to see a particular error, we debug format the underlying error to keep the number of error types in check. Commonly used for errors originating in other crates.
Trait Implementations§
Source§impl Display for LbErrKind
The purpose of this Display implementation is to provide uniformity for the
description of errors that a customer may see. And to provide a productivity
boost for the UI developer processing (and ultimately showing) these errors.
If an error is not expected to be propegated outside of this crate the
the language associated with the error will reflect that (and may use an
uglier debug impl for details).
impl Display for LbErrKind
The purpose of this Display implementation is to provide uniformity for the description of errors that a customer may see. And to provide a productivity boost for the UI developer processing (and ultimately showing) these errors. If an error is not expected to be propegated outside of this crate the the language associated with the error will reflect that (and may use an uglier debug impl for details).
impl Eq for LbErrKind
impl StructuralPartialEq for LbErrKind
Auto Trait Implementations§
impl Freeze for LbErrKind
impl RefUnwindSafe for LbErrKind
impl Send for LbErrKind
impl Sync for LbErrKind
impl Unpin for LbErrKind
impl UnwindSafe for LbErrKind
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.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