Trait EventBuilder

Source
pub trait EventBuilder {
    type Event<'a>: Event
       where Self: 'a;

    // Required methods
    fn time(self, value: u32) -> Self;
    fn space_id(self, value: u16) -> Self;
    fn flags(self, value: u32) -> Self;
    fn event(&self) -> Self::Event<'_>;
}

Required Associated Types§

Source

type Event<'a>: Event where Self: 'a

Required Methods§

Source

fn time(self, value: u32) -> Self

Source

fn space_id(self, value: u16) -> Self

Source

fn flags(self, value: u32) -> Self

Source

fn event(&self) -> Self::Event<'_>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl EventBuilder for Midi2Builder

Source§

type Event<'a> = Midi2<'a> where Self: 'a

Source§

impl EventBuilder for MidiBuilder

Source§

type Event<'a> = Midi<'a> where Self: 'a

Source§

impl EventBuilder for NoteBuilder

Source§

type Event<'a> = Note<'a> where Self: 'a

Source§

impl EventBuilder for NoteExpressionBuilder

Source§

type Event<'a> = NoteExpression<'a> where Self: 'a

Source§

impl EventBuilder for ParamModBuilder

Source§

type Event<'a> = ParamMod<'a> where Self: 'a

Source§

impl EventBuilder for ParamValueBuilder

Source§

type Event<'a> = ParamValue<'a> where Self: 'a

Source§

impl EventBuilder for TransportBuilder

Source§

type Event<'a> = Transport<'a> where Self: 'a