pub struct ToolStdin { /* private fields */ }Implementations§
Source§impl ToolStdin
impl ToolStdin
Sourcepub fn channel(capacity: usize) -> (Sender<StdinWrite>, Self)
pub fn channel(capacity: usize) -> (Sender<StdinWrite>, Self)
Builds the sender/receiver pair used by interactive tool tests and by the engine’s per-call stdin registry.
pub fn from_receiver(receiver: Receiver<StdinWrite>) -> Self
pub async fn recv(&mut self) -> Option<StdinWrite>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ToolStdin
impl RefUnwindSafe for ToolStdin
impl Send for ToolStdin
impl Sync for ToolStdin
impl Unpin for ToolStdin
impl UnsafeUnpin for ToolStdin
impl UnwindSafe for ToolStdin
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