Struct encoding::codec::error::ErrorEncodingUnstable [-]  [+] [src]

pub struct ErrorEncoding;

An encoding that returns encoder/decoder error for every case.

Trait Implementations

impl Encoding for ErrorEncoding

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

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

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

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

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 ErrorEncoding

fn clone(&self) -> ErrorEncoding

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