pub struct Answer(/* private fields */);Expand description
What a blocked shell is told to run next: one command, as an arglist — the same shape a message has, encoded the same way.
Implementations§
Source§impl Answer
impl Answer
Sourcepub fn of(
command: impl Into<String>,
args: impl IntoIterator<Item = impl Into<String>>,
) -> Self
pub fn of( command: impl Into<String>, args: impl IntoIterator<Item = impl Into<String>>, ) -> Self
A command and the arguments it is given. The command word stands apart because a command of no words is not one.
Sourcepub fn status(code: u8) -> Self
pub fn status(code: u8) -> Self
A status for the ask, leaving the frame that asked to carry on.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Answer
impl RefUnwindSafe for Answer
impl Send for Answer
impl Sync for Answer
impl Unpin for Answer
impl UnsafeUnpin for Answer
impl UnwindSafe for Answer
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