[][src]Trait mail_internals::bind::encoded_word::EncodedWordWriter

pub trait EncodedWordWriter {
    fn write_char(&mut self, ch: SoftAsciiChar);
fn write_charset(&mut self);
fn encoding(&self) -> EncodedWordEncoding;
fn write_ecw_seperator(&mut self);
fn max_payload_len(&self) -> usize; fn write_ecw_start(&mut self) { ... }
fn write_ecw_end(&mut self) { ... }
fn start_next_encoded_word(&mut self) { ... }
fn write_str(&mut self, s: &SoftAsciiStr) { ... } }

Required methods

fn write_char(&mut self, ch: SoftAsciiChar)

fn write_charset(&mut self)

fn encoding(&self) -> EncodedWordEncoding

fn write_ecw_seperator(&mut self)

fn max_payload_len(&self) -> usize

Returns the maximal length of the paylod/encoded data

Any number of calls to methods on in trait in any way should never be able to change the returned value. Only changing e.g. the charset or encoding should be able to change what max_paylod_len returns.

Loading content...

Provided methods

fn write_ecw_start(&mut self)

fn write_ecw_end(&mut self)

fn start_next_encoded_word(&mut self)

fn write_str(&mut self, s: &SoftAsciiStr)

Loading content...

Implementors

impl<'a> EncodedWordWriter for VecWriter<'a>[src]

impl<'a, 'b: 'a> EncodedWordWriter for WriterWrapper<'a, 'b>[src]

Loading content...