Trait destream::en::EncodeTuple
source · pub trait EncodeTuple<'en> {
type Ok: Stream + Send + Unpin + 'en;
type Error: Error + Send + Unpin + 'en;
// Required methods
fn encode_element<V: IntoStream<'en> + 'en>(
&mut self,
value: V
) -> Result<(), Self::Error>;
fn end(self) -> Result<Self::Ok, Self::Error>;
}
Expand description
Returned from Encoder::encode_tuple
.
Required Associated Types§
Required Methods§
sourcefn encode_element<V: IntoStream<'en> + 'en>(
&mut self,
value: V
) -> Result<(), Self::Error>
fn encode_element<V: IntoStream<'en> + 'en>( &mut self, value: V ) -> Result<(), Self::Error>
Encode the next element in the tuple.
Object Safety§
This trait is not object safe.