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)>
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
source§impl From<MissingIdentityError> for GetIdentityError
impl From<MissingIdentityError> for GetIdentityError
source§fn from(original: MissingIdentityError) -> GetIdentityError
fn from(original: MissingIdentityError) -> GetIdentityError
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)>
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
source§impl From<MissingIdentityError> for GetIdentityError
impl From<MissingIdentityError> for GetIdentityError
source§fn from(original: MissingIdentityError) -> GetIdentityError
fn from(original: MissingIdentityError) -> GetIdentityError
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
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/error/struct.SessionExpiryError.html b/actix_identity/error/struct.SessionExpiryError.html index 143784c88..29652c01f 100644 --- a/actix_identity/error/struct.SessionExpiryError.html +++ b/actix_identity/error/struct.SessionExpiryError.html @@ -1,5 +1,5 @@Struct actix_identity::error::SessionExpiryError
source · pub struct SessionExpiryError(/* private fields */);
Expand description
Error encountered when working with a session that has expired.
-Trait Implementations§
source§impl Debug for SessionExpiryError
impl Debug for SessionExpiryError
source§impl Display for SessionExpiryError
impl Display for SessionExpiryError
source§impl Error for SessionExpiryError
impl Error for SessionExpiryError
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
source§impl From<SessionExpiryError> for GetIdentityError
impl From<SessionExpiryError> for GetIdentityError
source§fn from(original: SessionExpiryError) -> GetIdentityError
fn from(original: SessionExpiryError) -> GetIdentityError
Auto Trait Implementations§
impl RefUnwindSafe for SessionExpiryError
impl Send for SessionExpiryError
impl Sync for SessionExpiryError
impl Unpin for SessionExpiryError
impl UnwindSafe for SessionExpiryError
Blanket Implementations§
Trait Implementations§
source§impl Debug for SessionExpiryError
impl Debug for SessionExpiryError
source§impl Display for SessionExpiryError
impl Display for SessionExpiryError
source§impl Error for SessionExpiryError
impl Error for SessionExpiryError
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
source§impl From<SessionExpiryError> for GetIdentityError
impl From<SessionExpiryError> for GetIdentityError
source§fn from(original: SessionExpiryError) -> GetIdentityError
fn from(original: SessionExpiryError) -> GetIdentityError
Auto Trait Implementations§
impl RefUnwindSafe for SessionExpiryError
impl Send for SessionExpiryError
impl Sync for SessionExpiryError
impl Unpin for SessionExpiryError
impl UnwindSafe for SessionExpiryError
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
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 237baea50..1fada45ff 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.
-Implementations on Foreign Types§
source§impl IdentityExt for HttpRequest
impl IdentityExt for HttpRequest
fn get_identity(&self) -> Result<Identity, GetIdentityError>
source§impl IdentityExt for ServiceRequest
impl IdentityExt for ServiceRequest
fn get_identity(&self) -> Result<Identity, GetIdentityError>
source§impl<'a> IdentityExt for GuardContext<'a>
impl<'a> IdentityExt for GuardContext<'a>
fn get_identity(&self) -> Result<Identity, GetIdentityError>
Implementors§
Implementations on Foreign Types§
source§impl IdentityExt for ServiceRequest
impl IdentityExt for ServiceRequest
fn get_identity(&self) -> Result<Identity, GetIdentityError>
source§impl<'a> IdentityExt for GuardContext<'a>
impl<'a> IdentityExt for GuardContext<'a>
fn get_identity(&self) -> Result<Identity, GetIdentityError>
source§impl IdentityExt for HttpRequest
impl IdentityExt for HttpRequest
fn get_identity(&self) -> Result<Identity, GetIdentityError>
Implementors§
LimitExceeded(Status)
Limit is exceeded for a key.
Time(ComponentRange)
Time conversion failed.
Other(String)
Generic error.
-Trait Implementations§
source§impl Error for Error
impl Error for Error
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
Auto Trait Implementations§
impl !RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl !UnwindSafe for Error
Blanket Implementations§
Trait Implementations§
source§impl Error for Error
impl Error for Error
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
Auto Trait Implementations§
impl !RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl !UnwindSafe for Error
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
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_session/config/enum.SessionLifecycle.html b/actix_session/config/enum.SessionLifecycle.html index 5a273bd8d..b80a719ae 100644 --- a/actix_session/config/enum.SessionLifecycle.html +++ b/actix_session/config/enum.SessionLifecycle.html @@ -11,7 +11,7 @@ Check the documentation of the browsers you are targeting for up-to-date informaPersistentSession(PersistentSession)
The session cookie will be a persistent cookie.
Persistent cookies have a pre-determined lifetime, specified via the Max-Age
or Expires
attribute. They do not disappear when the current browser session ends.
Trait Implementations§
source§impl Clone for SessionLifecycle
impl Clone for SessionLifecycle
source§fn clone(&self) -> SessionLifecycle
fn clone(&self) -> SessionLifecycle
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for SessionLifecycle
impl Debug for SessionLifecycle
source§impl From<BrowserSession> for SessionLifecycle
impl From<BrowserSession> for SessionLifecycle
source§fn from(original: BrowserSession) -> SessionLifecycle
fn from(original: BrowserSession) -> SessionLifecycle
source§impl From<PersistentSession> for SessionLifecycle
impl From<PersistentSession> for SessionLifecycle
source§fn from(original: PersistentSession) -> SessionLifecycle
fn from(original: PersistentSession) -> SessionLifecycle
Auto Trait Implementations§
impl RefUnwindSafe for SessionLifecycle
impl Send for SessionLifecycle
impl Sync for SessionLifecycle
impl Unpin for SessionLifecycle
impl UnwindSafe for SessionLifecycle
Blanket Implementations§
Trait Implementations§
source§impl Clone for SessionLifecycle
impl Clone for SessionLifecycle
source§fn clone(&self) -> SessionLifecycle
fn clone(&self) -> SessionLifecycle
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for SessionLifecycle
impl Debug for SessionLifecycle
source§impl From<BrowserSession> for SessionLifecycle
impl From<BrowserSession> for SessionLifecycle
source§fn from(original: BrowserSession) -> SessionLifecycle
fn from(original: BrowserSession) -> SessionLifecycle
source§impl From<PersistentSession> for SessionLifecycle
impl From<PersistentSession> for SessionLifecycle
source§fn from(original: PersistentSession) -> SessionLifecycle
fn from(original: PersistentSession) -> SessionLifecycle
Auto Trait Implementations§
impl RefUnwindSafe for SessionLifecycle
impl Send for SessionLifecycle
impl Sync for SessionLifecycle
impl Unpin for SessionLifecycle
impl UnwindSafe for SessionLifecycle
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
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_session/storage/enum.LoadError.html b/actix_session/storage/enum.LoadError.html index 2fca265ad..fd868039b 100644 --- a/actix_session/storage/enum.LoadError.html +++ b/actix_session/storage/enum.LoadError.html @@ -4,7 +4,7 @@ }Expand description
Possible failures modes for SessionStore::load
.
Variants§
Deserialization(Error)
Failed to deserialize session state.
Other(Error)
Something went wrong when retrieving the session state.
-Trait Implementations§
source§impl Error for LoadError
impl Error for LoadError
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
Auto Trait Implementations§
impl RefUnwindSafe for LoadError
impl Send for LoadError
impl Sync for LoadError
impl Unpin for LoadError
impl UnwindSafe for LoadError
Blanket Implementations§
Trait Implementations§
source§impl Error for LoadError
impl Error for LoadError
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
Auto Trait Implementations§
impl RefUnwindSafe for LoadError
impl Send for LoadError
impl Sync for LoadError
impl Unpin for LoadError
impl UnwindSafe for LoadError
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
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_session/storage/enum.SaveError.html b/actix_session/storage/enum.SaveError.html index ff8b829b0..bd0d30747 100644 --- a/actix_session/storage/enum.SaveError.html +++ b/actix_session/storage/enum.SaveError.html @@ -4,7 +4,7 @@ }Expand description
Possible failures modes for SessionStore::save
.
Variants§
Serialization(Error)
Failed to serialize session state.
Other(Error)
Something went wrong when persisting the session state.
-Trait Implementations§
source§impl Error for SaveError
impl Error for SaveError
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
Auto Trait Implementations§
impl RefUnwindSafe for SaveError
impl Send for SaveError
impl Sync for SaveError
impl Unpin for SaveError
impl UnwindSafe for SaveError
Blanket Implementations§
Trait Implementations§
source§impl Error for SaveError
impl Error for SaveError
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
Auto Trait Implementations§
impl RefUnwindSafe for SaveError
impl Send for SaveError
impl Sync for SaveError
impl Unpin for SaveError
impl UnwindSafe for SaveError
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
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_session/struct.SessionGetError.html b/actix_session/struct.SessionGetError.html index 5e62860a1..fe4e13f33 100644 --- a/actix_session/struct.SessionGetError.html +++ b/actix_session/struct.SessionGetError.html @@ -1,5 +1,5 @@Struct actix_session::SessionGetError
source · pub struct SessionGetError(/* private fields */);
Expand description
Error returned by Session::get
.
Trait Implementations§
source§impl Debug for SessionGetError
impl Debug for SessionGetError
source§impl Display for SessionGetError
impl Display for SessionGetError
source§impl Error for SessionGetError
impl Error for SessionGetError
source§fn source(&self) -> Option<&(dyn StdError + 'static)>
fn source(&self) -> Option<&(dyn StdError + 'static)>
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
source§impl From<Error> for SessionGetError
impl From<Error> for SessionGetError
source§fn from(original: Error) -> SessionGetError
fn from(original: Error) -> SessionGetError
source§impl ResponseError for SessionGetError
impl ResponseError for SessionGetError
source§fn error_response(&self) -> HttpResponse<BoxBody>
fn error_response(&self) -> HttpResponse<BoxBody>
§fn status_code(&self) -> StatusCode
fn status_code(&self) -> StatusCode
Auto Trait Implementations§
impl RefUnwindSafe for SessionGetError
impl Send for SessionGetError
impl Sync for SessionGetError
impl Unpin for SessionGetError
impl UnwindSafe for SessionGetError
Blanket Implementations§
Trait Implementations§
source§impl Debug for SessionGetError
impl Debug for SessionGetError
source§impl Display for SessionGetError
impl Display for SessionGetError
source§impl Error for SessionGetError
impl Error for SessionGetError
source§fn source(&self) -> Option<&(dyn StdError + 'static)>
fn source(&self) -> Option<&(dyn StdError + 'static)>
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
source§impl From<Error> for SessionGetError
impl From<Error> for SessionGetError
source§fn from(original: Error) -> SessionGetError
fn from(original: Error) -> SessionGetError
source§impl ResponseError for SessionGetError
impl ResponseError for SessionGetError
source§fn error_response(&self) -> HttpResponse<BoxBody>
fn error_response(&self) -> HttpResponse<BoxBody>
§fn status_code(&self) -> StatusCode
fn status_code(&self) -> StatusCode
Auto Trait Implementations§
impl RefUnwindSafe for SessionGetError
impl Send for SessionGetError
impl Sync for SessionGetError
impl Unpin for SessionGetError
impl UnwindSafe for SessionGetError
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
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_session/trait.SessionExt.html b/actix_session/trait.SessionExt.html index 318945dff..6041568c0 100644 --- a/actix_session/trait.SessionExt.html +++ b/actix_session/trait.SessionExt.html @@ -4,4 +4,4 @@ }Expand description
Extract a Session
object from various actix-web
types (e.g. HttpRequest
,
ServiceRequest
, ServiceResponse
).
Required Methods§
sourcefn get_session(&self) -> Session
fn get_session(&self) -> Session
Extract a Session
object.