Struct huawei_modem::codec::AtCodec
source · pub struct AtCodec;
Expand description
Encodes AT commands into text to be sent to a modem, and decodes its responses into AT responses.
Trait Implementations§
source§impl Decoder for AtCodec
impl Decoder for AtCodec
§type Item = Vec<AtResponse, Global>
type Item = Vec<AtResponse, Global>
The type of decoded frames.
source§fn decode(
&mut self,
src: &mut BytesMut
) -> Result<Option<Self::Item>, Self::Error>
fn decode( &mut self, src: &mut BytesMut ) -> Result<Option<Self::Item>, Self::Error>
Attempts to decode a frame from the provided buffer of bytes. Read more
Auto Trait Implementations§
impl RefUnwindSafe for AtCodec
impl Send for AtCodec
impl Sync for AtCodec
impl Unpin for AtCodec
impl UnwindSafe for AtCodec
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