Skip to main content

ProcessorResult

Type Alias ProcessorResult 

Source
pub type ProcessorResult = Result<Option<CommandOutput>, Box<CommandOutput>>;
Expand description

Result wrapping of a command’s handling. Both variants are complete message events which have digested any prior errors. The wrapping preserves whether the command failed without interpreting the text. Ok(None) outputs are dropped to produce no response.

Aliased Type§

pub enum ProcessorResult {
    Ok(Option<RoomMessageEventContent>),
    Err(Box<RoomMessageEventContent>),
}

Variants§

§1.0.0

Ok(Option<RoomMessageEventContent>)

Contains the success value

§1.0.0

Err(Box<RoomMessageEventContent>)

Contains the error value