pub trait Rig {
type Reaction: Reacting;
// Required methods
fn bash(&self, at: &Layout) -> String;
async fn joined(
&self,
at: &Layout,
shell: Arc<Shell>,
) -> Result<Self::Reaction, Failure>;
}Expand description
What bash a rig gives the subject, and how a reaction is made once a shell is there.
A description: &self throughout, because nothing about it changes by
running. No method has a default body.
| it is handed | it produces |
|---|---|
&Layout — the workspace, and the files in it | Self::Reaction |
Arc<Shell> — bash: Bash, options: Options, brought, joined: Stamp |
The rig’s bash is laid beside the protocol’s own by the session;
stack::with_walk composes it where the
rig reports a frame walk.
Required Associated Types§
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".