pub struct ReadEvent {
pub event_type: EventType,
pub channel: Option<u8>,
pub parameter1: Param,
pub parameter2: Option<u8>,
}Expand description
What reading an event sets on it: its type always, its channel and
second parameter where the message has them, and its first parameter
(music21’s data).
Fields§
§event_type: EventTypeWhat kind of message it is.
channel: Option<u8>Its channel, counted from one, where the message names one.
parameter1: ParamIts first parameter or its data.
parameter2: Option<u8>Its second parameter, where the message has one.
Trait Implementations§
impl Eq for ReadEvent
impl StructuralPartialEq for ReadEvent
Auto Trait Implementations§
impl Forget for ReadEvent
impl Freeze for ReadEvent
impl Move for ReadEvent
impl RefUnwindSafe for ReadEvent
impl Send for ReadEvent
impl Sync for ReadEvent
impl Unpin for ReadEvent
impl UnsafeUnpin for ReadEvent
impl UnwindSafe for ReadEvent
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more