pub struct SessionHandle(pub String);Expand description
Opaque session handle.
Identifies an active or archived session within the runtime. The inner string is an implementation detail assigned by the runtime on session creation.
§Example
use adk_managed::runtime::SessionHandle;
let handle = SessionHandle("session_xyz789".to_string());
assert_eq!(handle.0, "session_xyz789");Tuple Fields§
§0: StringTrait Implementations§
Source§impl Clone for SessionHandle
impl Clone for SessionHandle
Source§fn clone(&self) -> SessionHandle
fn clone(&self) -> SessionHandle
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SessionHandle
impl Debug for SessionHandle
impl Eq for SessionHandle
Source§impl Hash for SessionHandle
impl Hash for SessionHandle
Source§impl PartialEq for SessionHandle
impl PartialEq for SessionHandle
Source§fn eq(&self, other: &SessionHandle) -> bool
fn eq(&self, other: &SessionHandle) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for SessionHandle
Auto Trait Implementations§
impl Freeze for SessionHandle
impl RefUnwindSafe for SessionHandle
impl Send for SessionHandle
impl Sync for SessionHandle
impl Unpin for SessionHandle
impl UnsafeUnpin for SessionHandle
impl UnwindSafe for SessionHandle
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