pub enum ApiError<E> {
Endpoint(E),
ClientUpdateRequired,
InvalidAuth,
ExpiredAuth,
InternalError,
BadRequest,
Sign(LbErr),
Serialize(String),
SendFailed(String),
ReceiveFailed(String),
Deserialize(String),
}
Variants§
Endpoint(E)
ClientUpdateRequired
InvalidAuth
ExpiredAuth
InternalError
BadRequest
Sign(LbErr)
Serialize(String)
SendFailed(String)
ReceiveFailed(String)
Deserialize(String)
Trait Implementations§
Source§impl From<ApiError<ChangeDocError>> for LbErr
impl From<ApiError<ChangeDocError>> for LbErr
Source§fn from(e: ApiError<ChangeDocError>) -> Self
fn from(e: ApiError<ChangeDocError>) -> Self
Converts to this type from the input type.
Source§impl From<ApiError<GetDocumentError>> for LbErr
impl From<ApiError<GetDocumentError>> for LbErr
Source§fn from(e: ApiError<GetDocumentError>) -> Self
fn from(e: ApiError<GetDocumentError>) -> Self
Converts to this type from the input type.
Source§impl From<ApiError<GetFileIdsError>> for LbErr
impl From<ApiError<GetFileIdsError>> for LbErr
Source§fn from(e: ApiError<GetFileIdsError>) -> Self
fn from(e: ApiError<GetFileIdsError>) -> Self
Converts to this type from the input type.
Source§impl From<ApiError<GetPublicKeyError>> for LbErr
impl From<ApiError<GetPublicKeyError>> for LbErr
Source§fn from(err: ApiError<GetPublicKeyError>) -> Self
fn from(err: ApiError<GetPublicKeyError>) -> Self
Converts to this type from the input type.
Source§impl From<ApiError<GetUpdatesError>> for LbErr
impl From<ApiError<GetUpdatesError>> for LbErr
Source§fn from(e: ApiError<GetUpdatesError>) -> Self
fn from(e: ApiError<GetUpdatesError>) -> Self
Converts to this type from the input type.
Source§impl From<ApiError<GetUsageError>> for LbErr
impl From<ApiError<GetUsageError>> for LbErr
Source§fn from(e: ApiError<GetUsageError>) -> Self
fn from(e: ApiError<GetUsageError>) -> Self
Converts to this type from the input type.
Source§impl From<ApiError<GetUsernameError>> for LbErr
impl From<ApiError<GetUsernameError>> for LbErr
Source§fn from(err: ApiError<GetUsernameError>) -> Self
fn from(err: ApiError<GetUsernameError>) -> Self
Converts to this type from the input type.
Source§impl From<ApiError<NewAccountError>> for LbErr
impl From<ApiError<NewAccountError>> for LbErr
Source§fn from(err: ApiError<NewAccountError>) -> Self
fn from(err: ApiError<NewAccountError>) -> Self
Converts to this type from the input type.
Source§impl From<ApiError<UpsertError>> for LbErr
impl From<ApiError<UpsertError>> for LbErr
Source§fn from(e: ApiError<UpsertError>) -> Self
fn from(e: ApiError<UpsertError>) -> Self
Converts to this type from the input type.
Source§impl<E> From<ErrorWrapper<E>> for ApiError<E>
impl<E> From<ErrorWrapper<E>> for ApiError<E>
Source§fn from(err: ErrorWrapper<E>) -> Self
fn from(err: ErrorWrapper<E>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<E> !Freeze for ApiError<E>
impl<E> RefUnwindSafe for ApiError<E>where
E: RefUnwindSafe,
impl<E> Send for ApiError<E>where
E: Send,
impl<E> Sync for ApiError<E>where
E: Sync,
impl<E> Unpin for ApiError<E>where
E: Unpin,
impl<E> UnwindSafe for ApiError<E>where
E: UnwindSafe,
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> 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