pub struct SessionManager;Implementations§
Source§impl SessionManager
impl SessionManager
pub fn create_session() -> Result<Session>
pub fn create_session_with_name(name: Option<String>) -> Result<Session>
pub fn attach_session(session_id: &str) -> Result<()>
pub fn list_sessions() -> Result<Vec<Session>>
pub fn kill_session(session_id: &str) -> Result<()>
pub fn get_session(session_id: &str) -> Result<Session>
pub fn rename_session(session_id: &str, new_name: &str) -> Result<()>
pub fn cleanup_dead_sessions() -> Result<()>
Auto Trait Implementations§
impl Freeze for SessionManager
impl RefUnwindSafe for SessionManager
impl Send for SessionManager
impl Sync for SessionManager
impl Unpin for SessionManager
impl UnwindSafe for SessionManager
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more