pub struct ShellSessionService { /* private fields */ }Expand description
Service for managing interactive shell sessions
Implementations§
Source§impl ShellSessionService
impl ShellSessionService
Sourcepub async fn create(
&self,
args: ShellSessionCreateArgs,
) -> Result<ShellSessionCreateResult, ServiceError>
pub async fn create( &self, args: ShellSessionCreateArgs, ) -> Result<ShellSessionCreateResult, ServiceError>
Create a new interactive shell session
Sourcepub async fn write(
&self,
args: ShellSessionWriteArgs,
) -> Result<ShellSessionWriteResult, ServiceError>
pub async fn write( &self, args: ShellSessionWriteArgs, ) -> Result<ShellSessionWriteResult, ServiceError>
Write input to a session
Sourcepub async fn read(
&self,
args: ShellSessionReadArgs,
) -> Result<ShellSessionReadResult, ServiceError>
pub async fn read( &self, args: ShellSessionReadArgs, ) -> Result<ShellSessionReadResult, ServiceError>
Read output from a session
Sourcepub async fn list(
&self,
args: ShellSessionListArgs,
) -> Result<ShellSessionListResult, ServiceError>
pub async fn list( &self, args: ShellSessionListArgs, ) -> Result<ShellSessionListResult, ServiceError>
List sessions
Sourcepub async fn reconnect(
&self,
args: ShellSessionReconnectArgs,
) -> Result<ShellSessionReconnectResult, ServiceError>
pub async fn reconnect( &self, args: ShellSessionReconnectArgs, ) -> Result<ShellSessionReconnectResult, ServiceError>
Reconnect to a disconnected session
Sourcepub async fn resize(
&self,
args: ShellSessionResizeArgs,
) -> Result<ShellSessionResizeResult, ServiceError>
pub async fn resize( &self, args: ShellSessionResizeArgs, ) -> Result<ShellSessionResizeResult, ServiceError>
Resize a session’s terminal
Sourcepub async fn close(
&self,
args: ShellSessionCloseArgs,
) -> Result<ShellSessionCloseResult, ServiceError>
pub async fn close( &self, args: ShellSessionCloseArgs, ) -> Result<ShellSessionCloseResult, ServiceError>
Close a session
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ShellSessionService
impl !RefUnwindSafe for ShellSessionService
impl Send for ShellSessionService
impl Sync for ShellSessionService
impl Unpin for ShellSessionService
impl !UnwindSafe for ShellSessionService
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> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.