OptionArcFnContextPinBoxSendSync

Type Alias OptionArcFnContextPinBoxSendSync 

Source
pub type OptionArcFnContextPinBoxSendSync<T> = Option<ArcFnContextPinBoxSendSync<T>>;
Expand description

An optional, thread-safe, shareable handler function.

This is used when a handler may or may not be present, such as for optional middleware or hooks.

Aliased Type§

pub enum OptionArcFnContextPinBoxSendSync<T> {
    None,
    Some(Arc<dyn FnContextPinBoxSendSync<T, Output = Pin<Box<dyn Future<Output = T> + Send>>>>),
}

Variants§

§1.0.0

None

No value.

§1.0.0

Some(Arc<dyn FnContextPinBoxSendSync<T, Output = Pin<Box<dyn Future<Output = T> + Send>>>>)

Some value of type T.