[−][src]Struct reign_router::middleware::session::Session
Implementations
impl<'a, T, B> Session<'a, T, B> where
T: Serialize + for<'de> Deserialize<'de> + Send + Sync + 'static,
B: SessionBackend + Send + Sync,
[src]
T: Serialize + for<'de> Deserialize<'de> + Send + Sync + 'static,
B: SessionBackend + Send + Sync,
pub fn new(backend: B) -> Self
[src]
pub fn path(self, path: &'a str) -> Self
[src]
pub fn name(self, name: &'a str) -> Self
[src]
pub fn secure(self, secure: bool) -> Self
[src]
pub fn http_only(self, http_only: bool) -> Self
[src]
pub fn domain(self, domain: &'a str) -> Self
[src]
pub fn cookie_secret(self, secret: &'a str) -> Self
[src]
pub fn same_site(self, same_site: SameSite) -> Self
[src]
Trait Implementations
impl<'a, T, B> Middleware for Session<'a, T, B> where
T: Serialize + for<'de> Deserialize<'de> + Send + Sync + 'static,
B: SessionBackend + Send + Sync,
[src]
T: Serialize + for<'de> Deserialize<'de> + Send + Sync + 'static,
B: SessionBackend + Send + Sync,
fn handle<'m>(
&'m self,
req: &'m mut Request,
chain: Chain<'m>
) -> HandleFuture<'m>
[src]
&'m self,
req: &'m mut Request,
chain: Chain<'m>
) -> HandleFuture<'m>
Auto Trait Implementations
impl<'a, T, B> RefUnwindSafe for Session<'a, T, B> where
B: RefUnwindSafe,
T: RefUnwindSafe,
B: RefUnwindSafe,
T: RefUnwindSafe,
impl<'a, T, B> Send for Session<'a, T, B>
impl<'a, T, B> Sync for Session<'a, T, B>
impl<'a, T, B> Unpin for Session<'a, T, B> where
B: Unpin,
T: Unpin,
B: Unpin,
T: Unpin,
impl<'a, T, B> UnwindSafe for Session<'a, T, B> where
B: UnwindSafe,
T: UnwindSafe,
B: UnwindSafe,
T: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Sealed<T> for T where
T: ?Sized,
T: ?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.
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<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,