Enum ldap_utils::ConnectError
source · [−]pub enum ConnectError {
ParametersBuilderError(ConnectParametersBuilderError),
OpenLdapConnectParameterError(OpenLdapConnectParameterError),
IOError(Error),
NativeTLSError(Error),
LdapError(LdapError),
RegexError(Error),
OpenSSLError(ErrorStack),
}
Expand description
errors which can happen when connecting to an LDAP server
Variants
ParametersBuilderError(ConnectParametersBuilderError)
an error when building the parameters, most likely a value that could not be retrieved from any config source
OpenLdapConnectParameterError(OpenLdapConnectParameterError)
an error when trying to retrieve connect parameters from OpenLDAP config files
IOError(Error)
an I/O error
NativeTLSError(Error)
an error in the native_tls crate
LdapError(LdapError)
an error in the ldap3 crate
RegexError(Error)
an error when compiling or using a regular expression
OpenSSLError(ErrorStack)
an error in the openssl library used to read certificates and keys
Trait Implementations
sourceimpl Debug for ConnectError
impl Debug for ConnectError
sourceimpl Display for ConnectError
impl Display for ConnectError
sourceimpl Error for ConnectError
impl Error for ConnectError
sourcefn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
sourcefn backtrace(&self) -> Option<&Backtrace>
fn backtrace(&self) -> Option<&Backtrace>
backtrace
)Returns a stack backtrace, if available, of where this error occurred. Read more
1.0.0 · sourcefn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
sourceimpl From<ConnectParametersBuilderError> for ConnectError
impl From<ConnectParametersBuilderError> for ConnectError
sourcefn from(source: ConnectParametersBuilderError) -> Self
fn from(source: ConnectParametersBuilderError) -> Self
Performs the conversion.
sourceimpl From<ErrorStack> for ConnectError
impl From<ErrorStack> for ConnectError
sourcefn from(source: ErrorStack) -> Self
fn from(source: ErrorStack) -> Self
Performs the conversion.
sourceimpl From<LdapError> for ConnectError
impl From<LdapError> for ConnectError
sourceimpl From<OpenLdapConnectParameterError> for ConnectError
impl From<OpenLdapConnectParameterError> for ConnectError
sourcefn from(source: OpenLdapConnectParameterError) -> Self
fn from(source: OpenLdapConnectParameterError) -> Self
Performs the conversion.
Auto Trait Implementations
impl !RefUnwindSafe for ConnectError
impl Send for ConnectError
impl Sync for ConnectError
impl Unpin for ConnectError
impl !UnwindSafe for ConnectError
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more