pub struct EncoderWrapper<E>(/* private fields */);Expand description
A type implementing Encoder can not be directly used by the driver,
because the driver expects a different interface (see RawEncoder).
This type adapts an Encoder to a RawEncoder, taking care of the
unsafe parts.
Implementations§
Trait Implementations§
Source§impl<E: Debug> Debug for EncoderWrapper<E>
impl<E: Debug> Debug for EncoderWrapper<E>
Source§impl<E: Encoder> RawEncoder for EncoderWrapper<E>
impl<E: Encoder> RawEncoder for EncoderWrapper<E>
Auto Trait Implementations§
impl<E> Freeze for EncoderWrapper<E>
impl<E> RefUnwindSafe for EncoderWrapper<E>where
E: RefUnwindSafe,
impl<E> Send for EncoderWrapper<E>where
E: Send,
impl<E> Sync for EncoderWrapper<E>where
E: Sync,
impl<E> Unpin for EncoderWrapper<E>
impl<E> UnsafeUnpin for EncoderWrapper<E>
impl<E> UnwindSafe for EncoderWrapper<E>where
E: UnwindSafe,
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<E> Encoder for Ewhere
E: RawEncoder,
impl<E> Encoder for Ewhere
E: RawEncoder,
Source§type Item = <E as RawEncoder>::Item
type Item = <E as RawEncoder>::Item
The type of input data the encoder can encode.
Source§fn encode(
&mut self,
handle: &mut RmtChannelHandle,
primary_data: &[<E as Encoder>::Item],
) -> (usize, EncoderState)
fn encode( &mut self, handle: &mut RmtChannelHandle, primary_data: &[<E as Encoder>::Item], ) -> (usize, EncoderState)
Encode the user data into RMT symbols and write into RMT memory. Read more