Skip to main content

Throttled

Trait Throttled 

Source
pub trait Throttled<F> {
    // Required method
    fn parse(&self) -> F;
}
Expand description

The Throttled trait can be implemented to parse the type held by the actor to a custom output type. This allows a single Handle to attach itself to multiple throttles, each with a separate parsing implementation.

Required Methods§

Source

fn parse(&self) -> F

Implement this parse function on the type to be sent by the throttle

Implementors§

Source§

impl<T: Clone> Throttled<T> for T

A blanket implementation is used to ensure any standard type implements it