pub struct Session(/* private fields */);Implementations§
Source§impl Session
impl Session
pub fn connect() -> Option<Self>
Sourcepub fn id(&self) -> Result<String, Error>
pub fn id(&self) -> Result<String, Error>
Retrieves the session ID for the current process.
§Errors
Returns Error::Failed if the backend cannot resolve the session or
returns a null session ID.
Trait Implementations§
Auto Trait Implementations§
impl !Send for Session
impl !Sync for Session
impl Freeze for Session
impl RefUnwindSafe for Session
impl Unpin for Session
impl UnsafeUnpin 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