FromBinaryLdapType

Trait FromBinaryLdapType 

Source
pub trait FromBinaryLdapType {
    type Error;

    // Required method
    fn parse(
        entry_dn: &str,
        attribute_name: &str,
        value: Vec<u8>,
    ) -> Result<Self, Self::Error>
       where Self: Sized;
}
Expand description

a primitive result that can be converted from an Ldap type that is returned as a Vec<u8>

Required Associated Types§

Source

type Error

the type of error when the conversion fails

Required Methods§

Source

fn parse( entry_dn: &str, attribute_name: &str, value: Vec<u8>, ) -> Result<Self, Self::Error>
where Self: Sized,

parse this type from a Vec<u8> returned by an LDAP search

§Errors

fails if the type could not be parsed

Implementations on Foreign Types§

Source§

impl FromBinaryLdapType for Vec<u8>

Source§

type Error = Infallible

Source§

fn parse( _entry_dn: &str, _attribute_name: &str, value: Vec<u8>, ) -> Result<Self, Self::Error>
where Self: Sized,

Implementors§