pub enum Update {
Ports(Vec<String>),
Status(Status),
Sync {
done: usize,
total: usize,
},
Message {
at: SystemTime,
origin: Origin,
bytes: Vec<u8>,
},
Mark {
at: SystemTime,
text: String,
},
Info {
at: SystemTime,
text: String,
error: bool,
},
Reset,
}Variants§
Ports(Vec<String>)
The MIDI input ports changed (sent on start and on every hotplug).
Status(Status)
Sync
Startup sync progress; (0, 0) when no sync is running.
Message
One complete MIDI message, either direction.
Mark
A # MARK annotation from a replayed capture.
Info
A note for the user: connection changes, timeouts, refused sends.
Reset
A new session starts (connect, resync or replay): reset your device model.
Trait Implementations§
impl StructuralPartialEq for Update
Auto Trait Implementations§
impl Freeze for Update
impl RefUnwindSafe for Update
impl Send for Update
impl Sync for Update
impl Unpin for Update
impl UnsafeUnpin for Update
impl UnwindSafe for Update
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