pub struct PtyManager { /* private fields */ }Implementations§
Source§impl PtyManager
impl PtyManager
pub fn new() -> Self
pub async fn list(&self) -> Vec<PtyInfo>
pub async fn create(&self) -> Result<String>
pub async fn write(&self, id: &str, input: &str) -> Result<bool>
pub async fn snapshot(&self, id: &str) -> Option<PtySnapshot>
pub async fn read_since( &self, id: &str, offset: usize, ) -> Option<(String, usize, bool)>
pub async fn kill(&self, id: &str) -> Result<bool>
Trait Implementations§
Source§impl Clone for PtyManager
impl Clone for PtyManager
Source§fn clone(&self) -> PtyManager
fn clone(&self) -> PtyManager
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for PtyManager
impl !RefUnwindSafe for PtyManager
impl Send for PtyManager
impl Sync for PtyManager
impl Unpin for PtyManager
impl UnsafeUnpin for PtyManager
impl !UnwindSafe for PtyManager
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