pub struct WeakSession(/* private fields */);Expand description
A handle to a session that does not keep it alive.
Implementations§
Source§impl WeakSession
impl WeakSession
Sourcepub fn upgrade(&self) -> Option<AgentSession>
pub fn upgrade(&self) -> Option<AgentSession>
The session, while it exists.
Trait Implementations§
Source§impl Clone for WeakSession
impl Clone for WeakSession
Auto Trait Implementations§
impl !RefUnwindSafe for WeakSession
impl !UnwindSafe for WeakSession
impl Freeze for WeakSession
impl Send for WeakSession
impl Sync for WeakSession
impl Unpin for WeakSession
impl UnsafeUnpin for WeakSession
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