Struct encoding::codec::whatwg::EncoderOnlyUTF8EncodingUnstable [-]  [+] [src]

pub struct EncoderOnlyUTF8Encoding;

Replacement encoding used to solve a particular attack vector due to mismatching server and client supports for encodings. It is rarely useful outside.

Trait Implementations

impl Encoding for EncoderOnlyUTF8Encoding

fn name(&self) -> &'static str

fn whatwg_name(&self) -> Option<&'static str>

fn encoder(&self) -> Box<Encoder>

fn decoder(&self) -> Box<Decoder>

fn encode(&self, input: &str, trap: EncoderTrap) -> Result<Vec<u8>, SendStr>

fn decode(&self, input: &[u8], trap: DecoderTrap) -> Result<String, SendStr>

Derived Implementations

impl Clone for EncoderOnlyUTF8Encoding

fn clone(&self) -> EncoderOnlyUTF8Encoding

fn clone_from(&mut self, source: &Self)