pub struct ShellReader { /* private fields */ }Expand description
Reader half of a shell session. Receives output events asynchronously.
Implementations§
Source§impl ShellReader
impl ShellReader
Sourcepub async fn recv(&mut self) -> Option<ShellEvent>
pub async fn recv(&mut self) -> Option<ShellEvent>
Receive the next shell event. Returns None when the session ends.
Auto Trait Implementations§
impl Freeze for ShellReader
impl RefUnwindSafe for ShellReader
impl Send for ShellReader
impl Sync for ShellReader
impl Unpin for ShellReader
impl UnsafeUnpin for ShellReader
impl UnwindSafe for ShellReader
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