Struct apres::controller::Controller
source · [−]pub struct Controller { /* private fields */ }
Implementations
sourceimpl Controller
impl Controller
pub fn new(path: &str) -> Result<Controller, ApresError>
pub fn listen<T>(
&mut self,
context: &mut T,
callback: fn(_: &mut Controller, _: &mut T, _: &MIDIEvent)
) -> Result<(), ApresError>
pub fn kill(&mut self)
Auto Trait Implementations
impl RefUnwindSafe for Controller
impl Send for Controller
impl Sync for Controller
impl Unpin for Controller
impl UnwindSafe for Controller
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more