Skip to main content

OutputAlg

Trait OutputAlg 

Source
pub trait OutputAlg<From> {
    type Output;

    // Required method
    fn output(from: From) -> Self::Output;
}
Expand description

Transforms an inferred handler result into its portable API output.

Converter families are selected from an endpoint’s output kind. The handler result supplies From, so API declarations never repeat it.

Required Associated Types§

Source

type Output

The transport value produced from the semantic handler result.

Required Methods§

Source

fn output(from: From) -> Self::Output

Converts a handler result into the declared API output.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§