Skip to main content

HasSlots

Trait HasSlots 

Source
pub trait HasSlots {
    type Markers;
}
Expand description

A definition whose handler carries marker-identified Out slots.

Implemented by #[subscriber] on the value you pass to include; Markers lists the slot markers in signature order, which is the order the positional machinery ([InitSlots], [BindSlot], BindSlots) works in. You never implement this by hand unless you hand-write a definition.

Required Associated Types§

Source

type Markers

The slot markers, as a tuple in the handler signature’s parameter order.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§

Source§

impl<Def: HasSlots, Src, State, DC> HasSlots for SubscriberBuilder<Def, Src, State, DC>