pub struct LdapClientBuilder<U> { /* private fields */ }Implementations§
Source§impl<U: Borrow<Url>> LdapClientBuilder<U>
impl<U: Borrow<Url>> LdapClientBuilder<U>
pub fn new(url: U) -> Self
pub fn set_tls_config(&mut self, config: Option<Arc<ClientConfig>>)
Sourcepub fn with_tls_config(self, config: ClientConfig) -> Self
pub fn with_tls_config(self, config: ClientConfig) -> Self
set the rustls ClientConfig used to handle ldaps connections
if not set uses the platform verifier
Sourcepub fn danger_accept_invalid_certs(self) -> Self
pub fn danger_accept_invalid_certs(self) -> Self
set rustls ClientConfig to one that does not verify the server certificate
pub fn set_timeout(self, timeout: Duration) -> Self
Sourcepub fn max_ber_size(self, max_ber_size: Option<usize>) -> Self
pub fn max_ber_size(self, max_ber_size: Option<usize>) -> Self
Set the maximum size of a decoded message
pub async fn build(self) -> LdapResult<LdapClient>
Trait Implementations§
Source§impl<U: Clone> Clone for LdapClientBuilder<U>
impl<U: Clone> Clone for LdapClientBuilder<U>
Auto Trait Implementations§
impl<U> !RefUnwindSafe for LdapClientBuilder<U>
impl<U> !UnwindSafe for LdapClientBuilder<U>
impl<U> Freeze for LdapClientBuilder<U>where
U: Freeze,
impl<U> Send for LdapClientBuilder<U>where
U: Send,
impl<U> Sync for LdapClientBuilder<U>where
U: Sync,
impl<U> Unpin for LdapClientBuilder<U>where
U: Unpin,
impl<U> UnsafeUnpin for LdapClientBuilder<U>where
U: UnsafeUnpin,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more