Struct alsa::seq::Event [] [src]

pub struct Event<'a>(_, _, _);

snd_seq_event_t wrapper

Fields of the event is not directly exposed. Instead call Event::new to set data (which can be, e g, an EvNote). Use get_type and get_data to retreive data.

The lifetime parameter refers to the lifetime of an associated external buffer that might be used for variable-length messages (e.g. SysEx).

Methods

impl<'a> Event<'a>
[src]

Creates a new event. For events that carry variable-length data (e.g. Sysex), new_ext has to be used instead.

Creates a new event carrying variable-length data. This is required for event types Sysex, Bounce, and the UsrVar types.

Consumes this event and returns an (otherwise unchanged) event where the externally referenced buffer for variable length messages (e.g. SysEx) has been copied into the event. The returned event has a static lifetime, i e, it's decoupled from the original buffer.

Extract the event data from an event. Use get_ext instead for events carrying variable-length data.

Extract the variable-length data carried by events of type Sysex, Bounce, or the UsrVar types.

Returns true if the message is high priority.

Trait Implementations

impl<'a> Send for Event<'a>
[src]

impl<'a> Clone for Event<'a>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<'a> Debug for Event<'a>
[src]

Formats the value using the given formatter.