Skip to main content

OscHandler

Type Alias OscHandler 

Source
pub type OscHandler<C> = Box<dyn Fn(&[u8]) -> Option<(C, usize)>>;
Expand description

Custom OSC handler: receives bytes after ESC ], returns (command, bytes_consumed). bytes_consumed counts from the start of the OSC payload (after ESC ]).

Aliased Typeยง

pub struct OscHandler<C>(/* private fields */);