Skip to main content

Encode

Trait Encode 

Source
pub trait Encode<'req, 'd: 'req>: Cancel + Accept<'d, Output = Self::Prepared, Error = (Self::Error, Self::Target)> {
    type Error;
    type Prepared;
    type Pending<'id>: Lineage<'id, Output = Self::Prepared>;
    type Head<'a, 'id>: Accept<'d, Output = Self::Pending<'id>, Error = (<Self as Encode<'req, 'd>>::Error, Self::Target)> + Cancel<Target = Self::Target>;

    // Required method
    fn begin_head<'a, 'id>(self, head: View<'a, 'id>) -> Self::Head<'a, 'id>;
}

Required Associated Types§

Source

type Error

Source

type Prepared

Source

type Pending<'id>: Lineage<'id, Output = Self::Prepared>

Source

type Head<'a, 'id>: Accept<'d, Output = Self::Pending<'id>, Error = (<Self as Encode<'req, 'd>>::Error, Self::Target)> + Cancel<Target = Self::Target>

Required Methods§

Source

fn begin_head<'a, 'id>(self, head: View<'a, 'id>) -> Self::Head<'a, 'id>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§