pub struct SessionResponse<T>(pub Session, pub T);Expand description
将 Session 和额外数据一起序列化为 HTTP 响应,同时设置签名 Cookie。
Tuple Fields§
§0: Session§1: TTrait Implementations§
Source§impl<T> IntoResponse for SessionResponse<T>where
T: IntoResponse,
impl<T> IntoResponse for SessionResponse<T>where
T: IntoResponse,
Source§fn into_response(self) -> Response
fn into_response(self) -> Response
Create a response.
Auto Trait Implementations§
impl<T> Freeze for SessionResponse<T>where
T: Freeze,
impl<T> !RefUnwindSafe for SessionResponse<T>
impl<T> Send for SessionResponse<T>where
T: Send,
impl<T> Sync for SessionResponse<T>where
T: Sync,
impl<T> Unpin for SessionResponse<T>where
T: Unpin,
impl<T> UnsafeUnpin for SessionResponse<T>where
T: UnsafeUnpin,
impl<T> !UnwindSafe for SessionResponse<T>
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