Struct orca::ldap::LdapClient[][src]

pub struct LdapClient {
    pub uri: String,
    pub addr: SocketAddr,
    pub basedn: String,
    pub schema: LdapSchema,
    conn: Mutex<Option<LdapInner>>,
}

Fields

uri: Stringaddr: SocketAddrbasedn: Stringschema: LdapSchemaconn: Mutex<Option<LdapInner>>

Implementations

impl LdapClient[src]

pub fn new(uri: String, basedn: String, schema: LdapSchema) -> Result<Self, ()>[src]

async fn bind(&self, dn: String, pw: String) -> Result<(), ()>[src]

pub async fn open_dm_connection(&self, pw: &str) -> Result<(), ()>[src]

pub async fn open_user_connection(
    &self,
    test_start: Instant,
    name: &str,
    pw: &str
) -> Result<(Duration, Duration), ()>
[src]

pub async fn close_connection(&self)[src]

pub async fn search_name(
    &self,
    test_start: Instant,
    ids: &[String]
) -> Result<(Duration, Duration, usize), ()>
[src]

pub async fn search(
    &self,
    filter: LdapFilter
) -> Result<Vec<LdapSearchResultEntry>, ()>
[src]

pub async fn delete(&self, dn: String) -> Result<(), ()>[src]

pub async fn add(&self, req: LdapAddRequest) -> Result<(), ()>[src]

pub async fn modify(&self, req: LdapModifyRequest) -> Result<(), ()>[src]

Trait Implementations

impl Debug for LdapClient[src]

Auto Trait Implementations

impl !RefUnwindSafe for LdapClient

impl Send for LdapClient

impl Sync for LdapClient

impl Unpin for LdapClient

impl !UnwindSafe for LdapClient

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> Instrument for T[src]

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

impl<T> Pointable for T

type Init = T

The type for initializers.

impl<T> Same<T> for T

type Output = T

Should always be Self

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.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,