[][src]Struct mongo_file_center::FileCenter

pub struct FileCenter { /* fields omitted */ }

To store perennial files and temporary files in MongoDB.

Methods

impl FileCenter
[src]

Create a new FileCenter instance.

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

Change the file size threshold.

Decrypt a ID token to an Object ID.

Encrypt an Object ID to an ID token.

Encrypt an Object ID to an ID token.

Drop the database.

Drop the file center.

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.

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 file path.

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

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

Remove all unused files in GridFS and in the COLLECTION_FILES_NAME collection.

Auto Trait Implementations

impl Send for FileCenter

impl Sync for FileCenter

Blanket Implementations

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

Performs the conversion.

impl<T> From for T
[src]

Performs the conversion.

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

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

🔬 This is a nightly-only experimental API. (try_from)

Performs the conversion.

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

Immutably borrows from an owned value. Read more

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

Mutably borrows from an owned value. Read more

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

🔬 This is a nightly-only experimental API. (try_from)

Performs the conversion.

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

🔬 This is a nightly-only experimental API. (get_type_id)

this method will likely be replaced by an associated static

Gets the TypeId of self. Read more

impl<T, U> TryInto for T where
    U: TryFrom<T>, 

impl<T> Same for T

Should always be Self