Struct mongo_file_center::FileCenter[][src]

pub struct FileCenter { /* fields omitted */ }
Expand description

To store perennial files and temporary files in MongoDB.

Implementations

Create a new FileCenter instance.

Create a new FileCenter instance with a custom initial file size threshold.

Change the file size threshold.

Change the file size threshold.

Drop the database.

Drop the file center. But remain the database.

Check whether the file exists or not. If the file is temporary, it will still remain in the database.

Get the file item via an Object ID.

Remove a file item via an Object ID.

Input a file to the file center via a file path.

Temporarily input a file to the file center via a file path.

Input a file to the file center via a buffer.

Temporarily input a file to the file center via a buffer.

Input a file to the file center via a reader.

Temporarily input a file to the file center via a reader.

Remove all unused file meta and file chunks in this file center.

Get the reference of MongoDB Database.

Decrypt a ID token to an Object ID.

Encrypt an Object ID to an ID token.

Encrypt an Object ID to an ID token.

Trait Implementations

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

Should always be Self

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.