[−][src]Enum firestore_db_and_auth::errors::FirebaseError
The main error type used throughout this crate. It wraps / converts from a few other error types and implements error::Error so that you can use it in any situation where the standard error type is expected.
Variants
Generic(&'static str)
Generic errors are very rarely used and only used if no other error type matches
UnexpectedResponse(&'static str, StatusCode, String, String)
If the http status code is != 200 and no Google error response is attached (see https://firebase.google.com/docs/reference/rest/auth#section-error-format) then this error type will be returned
APIError(usize, String, String)
An error returned by the Firestore API - Contains the numeric code, a string code and a context. If the APIError happened on a document query or mutation, the document path will be set as context. If the APIError happens on a user_* method, the user id will be set as context. For example: 400, CREDENTIAL_TOO_OLD_LOGIN_AGAIN
Request(Error)
An error caused by the http library. This only happens if the http request is badly formatted (too big, invalid characters) or if the server did strange things (connection abort, ssl verification error).
JWT(Error)
Should not happen. If jwt encoding / decoding fails or an value cannot be extracted or a jwt is badly formatted or corrupted
JWTValidation(ValidationError)
Ser
Serialisation failed
Fields of Ser
RSA(KeyRejected)
When the credentials.json file contains an invalid private key this error is returned
IO(Error)
Disk access errors
Trait Implementations
impl From<Error> for FirebaseError
[src]
impl From<KeyRejected> for FirebaseError
[src]
fn from(error: KeyRejected) -> Self
[src]
impl From<Error> for FirebaseError
[src]
impl From<Error> for FirebaseError
[src]
impl From<ValidationError> for FirebaseError
[src]
fn from(error: ValidationError) -> Self
[src]
impl From<Error> for FirebaseError
[src]
impl Display for FirebaseError
[src]
impl Debug for FirebaseError
[src]
impl Error for FirebaseError
[src]
Auto Trait Implementations
impl Unpin for FirebaseError
impl Sync for FirebaseError
impl Send for FirebaseError
impl !UnwindSafe for FirebaseError
impl !RefUnwindSafe for FirebaseError
Blanket Implementations
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Erased for T
impl<E> Fail for E where
E: 'static + Error + Send + Sync,
E: 'static + Error + Send + Sync,
fn name(&self) -> Option<&str>
fn cause(&self) -> Option<&(dyn Fail + 'static)>
fn backtrace(&self) -> Option<&Backtrace>
fn context<D>(self, context: D) -> Context<D> where
D: Display + Send + Sync + 'static,
D: Display + Send + Sync + 'static,
fn compat(self) -> Compat<Self>
impl<T> AsFail for T where
T: Fail,
T: Fail,
fn as_fail(&self) -> &(dyn Fail + 'static)
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
U: TryFrom<T>,
impl<T> Typeable for T where
T: Any,
T: Any,
impl<T> IntoCollection<T> for T
fn into_collection<A>(self) -> SmallVec<A> where
A: Array<Item = T>,
A: Array<Item = T>,
fn mapped<U, F, A>(self, f: F) -> SmallVec<A> where
A: Array<Item = U>,
F: FnMut(T) -> U,
A: Array<Item = U>,
F: FnMut(T) -> U,
impl<T, I> AsResult<T, I> for T where
I: Input,
I: Input,