Struct term_transcript::traits::Echoing
source · pub struct Echoing<S> { /* private fields */ }
Expand description
Wrapper that allows configuring echoing of the shell process.
A shell process is echoing if each line provided to the input is echoed to the output.
Implementations§
Trait Implementations§
source§impl<S: ConfigureCommand> ConfigureCommand for Echoing<S>
impl<S: ConfigureCommand> ConfigureCommand for Echoing<S>
source§impl<S: ShellProcess> ShellProcess for Echoing<S>
impl<S: ShellProcess> ShellProcess for Echoing<S>
source§impl<S: SpawnShell> SpawnShell for Echoing<S>
impl<S: SpawnShell> SpawnShell for Echoing<S>
§type ShellProcess = Echoing<<S as SpawnShell>::ShellProcess>
type ShellProcess = Echoing<<S as SpawnShell>::ShellProcess>
Spawned shell process.
§type Reader = <S as SpawnShell>::Reader
type Reader = <S as SpawnShell>::Reader
Reader of the shell output.
§type Writer = <S as SpawnShell>::Writer
type Writer = <S as SpawnShell>::Writer
Writer to the shell input.
source§fn spawn_shell(&mut self) -> Result<SpawnedShell<Self>>
fn spawn_shell(&mut self) -> Result<SpawnedShell<Self>>
Spawns a shell process. Read more
Auto Trait Implementations§
impl<S> RefUnwindSafe for Echoing<S>where S: RefUnwindSafe,
impl<S> Send for Echoing<S>where S: Send,
impl<S> Sync for Echoing<S>where S: Sync,
impl<S> Unpin for Echoing<S>where S: Unpin,
impl<S> UnwindSafe for Echoing<S>where S: UnwindSafe,
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
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere T: Any,
§fn into_any(self: Box<T, Global>) -> Box<dyn Any + 'static, Global>
fn into_any(self: Box<T, Global>) -> Box<dyn Any + 'static, Global>
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
.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
Convert
Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
.§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.§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.