enum WriterCmd {
Write(String, Sender<Result<(), Error>>),
EndInput(Sender<Result<(), Error>>),
}Expand description
A write-side command dispatched to the writer task.
Variants§
Write(String, Sender<Result<(), Error>>)
Append line to stdin and flush.
EndInput(Sender<Result<(), Error>>)
Drop stdin so the CLI sees EOF.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for WriterCmd
impl !UnwindSafe for WriterCmd
impl Freeze for WriterCmd
impl Send for WriterCmd
impl Sync for WriterCmd
impl Unpin for WriterCmd
impl UnsafeUnpin for WriterCmd
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