pub struct CharCodec { /* private fields */ }Expand description
Charset transcoder
Implementations§
Source§impl CharCodec
impl CharCodec
pub fn new(from: &'static Encoding, to: &'static Encoding) -> CharCodec
pub fn remove_encoder(&mut self)
pub fn poll_codec<R: AsyncBufRead + Unpin>( &mut self, cx: &mut Context<'_>, from: &mut R, dst: &mut [u8], ) -> Poll<Result<usize, Error>>
pub fn decode_from_buf( &mut self, src: &[u8], dst: &mut [u8], consumed: &mut usize, ) -> Result<usize, Error>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for CharCodec
impl RefUnwindSafe for CharCodec
impl Send for CharCodec
impl Sync for CharCodec
impl Unpin for CharCodec
impl UnwindSafe for CharCodec
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