pub struct Session { /* private fields */ }
Implementations§
Source§impl Session
impl Session
pub fn update(&mut self, data: Bytes, content_type: Mime)
pub fn content_type(&self) -> ContentType
pub fn etag(&self) -> ETag
pub fn data(&self) -> Bytes
pub fn typed_headers( &self, ) -> (TypedHeader<ETag>, TypedHeader<Expires>, TypedHeader<LastModified>)
Auto Trait Implementations§
impl !Freeze for Session
impl RefUnwindSafe for Session
impl Send for Session
impl Sync for Session
impl Unpin for Session
impl UnwindSafe for Session
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