Struct actix_identity::error::MissingIdentityError
source · #[non_exhaustive]pub struct MissingIdentityError;
Expand description
There is no identity information attached to the current session.
-Trait Implementations§
source§impl Debug for MissingIdentityError
impl Debug for MissingIdentityError
source§impl Display for MissingIdentityError
impl Display for MissingIdentityError
source§impl Error for MissingIdentityError
impl Error for MissingIdentityError
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
source§impl From<MissingIdentityError> for GetIdentityError
impl From<MissingIdentityError> for GetIdentityError
source§fn from(original: MissingIdentityError) -> GetIdentityError
fn from(original: MissingIdentityError) -> GetIdentityError
Converts to this type from the input type.
Auto Trait Implementations§
impl RefUnwindSafe for MissingIdentityError
impl Send for MissingIdentityError
impl Sync for MissingIdentityError
impl Unpin for MissingIdentityError
impl UnwindSafe for MissingIdentityError
Blanket Implementations§
Trait Implementations§
source§impl Debug for MissingIdentityError
impl Debug for MissingIdentityError
source§impl Display for MissingIdentityError
impl Display for MissingIdentityError
source§impl Error for MissingIdentityError
impl Error for MissingIdentityError
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
source§impl From<MissingIdentityError> for GetIdentityError
impl From<MissingIdentityError> for GetIdentityError
source§fn from(original: MissingIdentityError) -> GetIdentityError
fn from(original: MissingIdentityError) -> GetIdentityError
Converts to this type from the input type.
Auto Trait Implementations§
impl RefUnwindSafe for MissingIdentityError
impl Send for MissingIdentityError
impl Sync for MissingIdentityError
impl Unpin for MissingIdentityError
impl UnwindSafe for MissingIdentityError
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> From<T> for T
impl<T> From<T> for T
source§fn from(t: T) -> T
fn from(t: T) -> T
Returns the argument unchanged.
diff --git a/actix_identity/trait.IdentityExt.html b/actix_identity/trait.IdentityExt.html index 7dbc82ed5..24e3ee67a 100644 --- a/actix_identity/trait.IdentityExt.html +++ b/actix_identity/trait.IdentityExt.html @@ -3,4 +3,4 @@ fn get_identity(&self) -> Result<Identity, GetIdentityError>; }Expand description
Helper trait to retrieve an Identity
instance from various actix-web
’s types.
Required Methods§
sourcefn get_identity(&self) -> Result<Identity, GetIdentityError>
fn get_identity(&self) -> Result<Identity, GetIdentityError>
Retrieve the identity attached to the current session, if available.
-