[−][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
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)
Serialisation failed
RSA(KeyRejected)
When the credentials.json file contains an invalid private key this error is returned
IO(Error)
Disk access errors
Trait Implementations
impl Debug for FirebaseError
[src]
impl Display for FirebaseError
[src]
impl Error for FirebaseError
[src]
pub fn source(&self) -> Option<&(dyn Error + 'static)>
[src]
pub fn backtrace(&self) -> Option<&Backtrace>
[src]
pub fn description(&self) -> &str
1.0.0[src]
pub fn cause(&self) -> Option<&dyn Error>
1.0.0[src]
impl From<Error> for FirebaseError
[src]
impl From<Error> for FirebaseError
[src]
impl From<Error> for FirebaseError
[src]
impl From<Error> for FirebaseError
[src]
impl From<KeyRejected> for FirebaseError
[src]
pub fn from(error: KeyRejected) -> Self
[src]
impl From<ValidationError> for FirebaseError
[src]
pub fn from(error: ValidationError) -> Self
[src]
Auto Trait Implementations
impl !RefUnwindSafe for FirebaseError
[src]
impl Send for FirebaseError
[src]
impl Sync for FirebaseError
[src]
impl Unpin for FirebaseError
[src]
impl !UnwindSafe for FirebaseError
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T, I> AsResult<T, I> for T where
I: Input,
I: Input,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> IntoCollection<T> for T
pub fn into_collection<A>(self) -> SmallVec<A> where
A: Array<Item = T>,
A: Array<Item = T>,
pub 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> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
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.
pub 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.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Typeable for T where
T: Any,
T: Any,