pub struct SimpleEncoder<T> { /* private fields */ }Expand description
This type represents the simple encoder, it wraps a EncoderCallback to delegate
the encoding work to it.
Implementations§
Source§impl<T: EncoderCallback> SimpleEncoder<T>
impl<T: EncoderCallback> SimpleEncoder<T>
Sourcepub fn with_config(
encoder: T,
config: &SimpleEncoderConfig,
) -> Result<Self, EspError>
pub fn with_config( encoder: T, config: &SimpleEncoderConfig, ) -> Result<Self, EspError>
Constructs a new simple encoder with the given callback and configuration.
Trait Implementations§
Source§impl<T: Debug> Debug for SimpleEncoder<T>
impl<T: Debug> Debug for SimpleEncoder<T>
Source§impl<T> Drop for SimpleEncoder<T>
impl<T> Drop for SimpleEncoder<T>
Source§impl<T: EncoderCallback> RawEncoder for SimpleEncoder<T>
impl<T: EncoderCallback> RawEncoder for SimpleEncoder<T>
Auto Trait Implementations§
impl<T> Freeze for SimpleEncoder<T>
impl<T> RefUnwindSafe for SimpleEncoder<T>where
T: RefUnwindSafe,
impl<T> !Send for SimpleEncoder<T>
impl<T> !Sync for SimpleEncoder<T>
impl<T> Unpin for SimpleEncoder<T>
impl<T> UnsafeUnpin for SimpleEncoder<T>
impl<T> UnwindSafe for SimpleEncoder<T>where
T: 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