Skip to main content

connect

Function connect 

Source
pub async fn connect(
    kind: DocumentStorageKind,
) -> Result<Arc<dyn DocumentStorage>, StorageError>
Expand description

Builds the configured backend and verifies that it can authenticate.

ยงErrors

Returns StorageError::Configuration or StorageError::Unauthorized when the backend cannot be set up or its credentials are rejected.