# Struct openssl::x509::store::X509Lookup [−] [src]

    pub struct X509Lookup<T>(_, _);

Information used by an `X509Store` to look up certificates and CRLs.

## Implementations

### `impl X509Lookup<HashDir>` [src]

#### `pub fn hash_dir() -> &'static X509LookupMethodRef<HashDir>` [src]

Lookup method that loads certificates and CRLs on demand and caches them in memory once they are loaded. It also checks for newer CRLs upon each lookup, so that newer CRLs are used as soon as they appear in the directory.

This corresponds to `X509_LOOKUP_hash_dir`.

## Methods from Deref<Target = X509LookupRef<T>>

#### `pub fn add_dir(
&mut self,
name: &str,
file_type: SslFiletype
) -> Result<(), ErrorStack>` [src]

Specifies a directory from which certificates and CRLs will be loaded on-demand. Must be used with `X509Lookup::hash_dir`.

This corresponds to `X509_LOOKUP_add_dir`.

## Trait Implementations

### `impl<T> AsRef<X509LookupRef<T>> for X509Lookup<T>` [src]

#### `fn as_ref(&self) -> &X509LookupRef<T>` [src]

Performs the conversion.

### `impl<T> Borrow<X509LookupRef<T>> for X509Lookup<T>` [src]

#### `fn borrow(&self) -> &X509LookupRef<T>` [src]

Immutably borrows from an owned value. Read more

### `impl<T> Deref for X509Lookup<T>` [src]

#### `type Target = X509LookupRef<T>`

The resulting type after dereferencing.

#### `fn deref(&self) -> &X509LookupRef<T>` [src]

Dereferences the value.

### `impl<T> DerefMut for X509Lookup<T>` [src]

#### `fn deref_mut(&mut self) -> &mut X509LookupRef<T>` [src]

Mutably dereferences the value.

### `impl<T> Drop for X509Lookup<T>` [src]

#### `fn drop(&mut self)` [src]

Executes the destructor for this type. Read more

### `impl<T> ForeignType for X509Lookup<T>` [src]

#### `type CType = X509_LOOKUP`

The raw C type.

#### `type Ref = X509LookupRef<T>`

The type representing a reference to this type.

#### `unsafe fn from_ptr(ptr: *mut X509_LOOKUP) -> X509Lookup<T>` [src]

Constructs an instance of this type from its raw type.

#### `fn as_ptr(&self) -> *mut X509_LOOKUP` [src]

Returns a raw pointer to the wrapped value.

### `impl<T> Send for X509Lookup<T>` [src]

### `impl<T> Sync for X509Lookup<T>` [src]

## Auto Trait Implementations

### `impl<T> RefUnwindSafe for X509Lookup<T> where
T: RefUnwindSafe,`

### `impl<T> Unpin for X509Lookup<T> where
T: Unpin,`

### `impl<T> UnwindSafe for X509Lookup<T> where
T: UnwindSafe,`

## Blanket Implementations

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

#### `pub fn type_id(&self) -> TypeId` [src]

Gets the `TypeId` of `self`. Read more

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

#### `pub fn borrow(&self) -> &T` [src]

Immutably borrows from an owned value. Read more

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

#### `pub fn borrow_mut(&mut self) -> &mut T` [src]

Mutably borrows from an owned value. Read more

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

#### `pub fn from(t: T) -> T` [src]

Performs the conversion.

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

#### `pub fn into(self) -> U` [src]

Performs the conversion.

### `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.

#### `pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>` [src]

Performs the conversion.

### `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.

#### `pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>` [src]

Performs the conversion.