Skip to main content

method

Attribute Macro method 

Source
#[method]
Expand description

Attribute macro for individual methods within a #[plexus::activation] impl block.

§Example

#[plexus::activation(namespace = "bash")]
impl Bash {
    /// Execute a bash command
    #[plexus::method]
    async fn execute(&self, command: String) -> impl Stream<Item = BashEvent> {
        // ...
    }
}