Enum mongo_file_center::FileData
source · [−]pub enum FileData {
Buffer(Vec<u8>),
Stream(Box<dyn Stream<Item = Result<Cursor<Vec<u8>>, Error>> + Unpin + Send>),
}Expand description
To represent the file data retrieved from MongoDB.
Variants
Buffer(Vec<u8>)
Stream(Box<dyn Stream<Item = Result<Cursor<Vec<u8>>, Error>> + Unpin + Send>)
Implementations
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for FileData
impl Send for FileData
impl !Sync for FileData
impl Unpin for FileData
impl !UnwindSafe for FileData
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more