Enum lb_rs::service::api_service::ApiError
source · pub enum ApiError<E> {
Endpoint(E),
ClientUpdateRequired,
InvalidAuth,
ExpiredAuth,
InternalError,
BadRequest,
Sign(SharedError),
Serialize(String),
SendFailed(String),
ReceiveFailed(String),
Deserialize(String),
}Variants§
Endpoint(E)
ClientUpdateRequired
InvalidAuth
ExpiredAuth
InternalError
BadRequest
Sign(SharedError)
Serialize(String)
SendFailed(String)
ReceiveFailed(String)
Deserialize(String)
Trait Implementations§
source§impl From<ApiError<ChangeDocError>> for LbError
impl From<ApiError<ChangeDocError>> for LbError
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 LbError
impl From<ApiError<GetDocumentError>> for LbError
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 LbError
impl From<ApiError<GetFileIdsError>> for LbError
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 LbError
impl From<ApiError<GetPublicKeyError>> for LbError
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 LbError
impl From<ApiError<GetUpdatesError>> for LbError
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 LbError
impl From<ApiError<GetUsageError>> for LbError
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 LbError
impl From<ApiError<GetUsernameError>> for LbError
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 LbError
impl From<ApiError<NewAccountError>> for LbError
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 LbError
impl From<ApiError<UpsertError>> for LbError
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> 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