Trait destream::en::EncodeTuple[][src]

pub trait EncodeTuple<'en> {
    type Ok: Stream + Send + Unpin + 'en;
    type Error: Error + Send + Unpin + 'en;
    fn encode_element<V: IntoStream<'en> + 'en>(
        &mut self,
        value: V
    ) -> Result<(), Self::Error>;
fn end(self) -> Result<Self::Ok, Self::Error>; }

Returned from Encoder::encode_tuple.

Associated Types

type Ok: Stream + Send + Unpin + 'en[src]

Must match the Ok type of the parent Encoder.

type Error: Error + Send + Unpin + 'en[src]

Must match the Error type of the parent Encoder.

Loading content...

Required methods

fn encode_element<V: IntoStream<'en> + 'en>(
    &mut self,
    value: V
) -> Result<(), Self::Error>
[src]

Encode the next element in the tuple.

fn end(self) -> Result<Self::Ok, Self::Error>[src]

Finish encoding the tuple.

Loading content...

Implementors

Loading content...