pub struct Decoder<R, B> { /* private fields */ }
Expand description
A decoder state machine.
Implementations§
Source§impl<R, B> Decoder<R, B>
impl<R, B> Decoder<R, B>
pub fn next_message(&mut self) -> Result<Message, DecodeError<R::Error>>
pub fn read_sysex(&mut self) -> SysexReader<'_, R, B> ⓘ
pub fn flush(&mut self) -> Result<(), R::Error>
Auto Trait Implementations§
impl<R, B> Freeze for Decoder<R, B>
impl<R, B> RefUnwindSafe for Decoder<R, B>where
R: RefUnwindSafe,
B: RefUnwindSafe,
impl<R, B> Send for Decoder<R, B>
impl<R, B> Sync for Decoder<R, B>
impl<R, B> Unpin for Decoder<R, B>
impl<R, B> UnwindSafe for Decoder<R, B>where
R: UnwindSafe,
B: UnwindSafe,
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