pub struct Utf8CodecFactory;Expand description
Factory for creating UTF-8 codecs.
Creates Utf8Codec instances for ContentType("text/utf-8").
Implementations§
Trait Implementations§
Source§impl ContentCodecFactory for Utf8CodecFactory
impl ContentCodecFactory for Utf8CodecFactory
Source§fn create(&self, content_type: &ContentType) -> Option<Box<dyn ContentCodec>>
fn create(&self, content_type: &ContentType) -> Option<Box<dyn ContentCodec>>
Create a codec for the given content type. Read more
Source§fn supported_content_types(&self) -> Vec<&str>
fn supported_content_types(&self) -> Vec<&str>
List all content types this factory supports.
Auto Trait Implementations§
impl Freeze for Utf8CodecFactory
impl RefUnwindSafe for Utf8CodecFactory
impl Send for Utf8CodecFactory
impl Sync for Utf8CodecFactory
impl Unpin for Utf8CodecFactory
impl UnsafeUnpin for Utf8CodecFactory
impl UnwindSafe for Utf8CodecFactory
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