[][src]Enum ldap3::result::LdapError

pub enum LdapError {
    EmptyUnixPath,
    PortInUnixPath,
    Io {
        source: Error,
    },
    OpSend {
        source: SendError<(RequestId, LdapOp, Tag, Option<Vec<RawControl>>, Sender<(Tag, Vec<Control>)>)>,
    },
    ResultRecv {
        source: RecvError,
    },
    IdScrubSend {
        source: SendError<RequestId>,
    },
    Timeout {
        elapsed: Elapsed,
    },
    FilterParsing,
    EndOfStream,
    UrlParsing {
        source: ParseError,
    },
    UnknownScheme(String),
    NativeTLS {
        source: Error,
    },
    LdapResult {
        result: LdapResult,
    },
    AddNoValues,
    AdapterInit(String),
    DecodingUTF8,
    InvalidScopeString(String),
    UnrecognizedCriticalExtension(String),
}

Error variants recognized by the library.

Variants

EmptyUnixPath

No path given for a ldapi:// URL.

PortInUnixPath

A ldapi:// URL contains a port spec, which it shouldn't.

Io

Encapsulated I/O error.

Fields of Io

source: Error
OpSend

Error while sending an operation to the connection handler.

Fields of OpSend

source: SendError<(RequestId, LdapOp, Tag, Option<Vec<RawControl>>, Sender<(Tag, Vec<Control>)>)>
ResultRecv

Error while receiving operation results from the connection handler.

Fields of ResultRecv

source: RecvError
IdScrubSend

Error while sending an internal ID scrubbing request to the connection handler.

Fields of IdScrubSend

source: SendError<RequestId>
Timeout

Operation or connection timeout.

Fields of Timeout

elapsed: Elapsed
FilterParsing

Error parsing the string representation of a search filter.

EndOfStream

Premature end of a search stream.

UrlParsing

URL parsing error.

Fields of UrlParsing

source: ParseError
UnknownScheme(String)

Unknown LDAP URL scheme.

NativeTLS

Native TLS library error.

Fields of NativeTLS

source: Error
LdapResult

LDAP operation result with an error return code.

Fields of LdapResult

result: LdapResult
AddNoValues

No values provided for the Add operation.

AdapterInit(String)

No values provided for the Add operation.

DecodingUTF8

Error converting an octet- or percent-decoded string to UTF-8.

InvalidScopeString(String)

Invalid scope string in LDAP URL.

UnrecognizedCriticalExtension(String)

Unreconized LDAP URL extension marked as critical.

Trait Implementations

impl Debug for LdapError[src]

impl Display for LdapError[src]

impl Error for LdapError[src]

impl From<Elapsed> for LdapError[src]

impl From<Error> for LdapError[src]

impl From<Error> for LdapError[src]

impl From<LdapError> for Error[src]

impl From<LdapResult> for LdapError[src]

impl From<ParseError> for LdapError[src]

impl From<RecvError> for LdapError[src]

impl From<SendError<(i32, LdapOp, Tag, Option<Vec<RawControl, Global>>, Sender<(Tag, Vec<Control, Global>)>)>> for LdapError[src]

impl From<SendError<i32>> for LdapError[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.