pub struct CameraFile { /* private fields */ }
Expand description

File on a camera

Downloading examples

In memory

use gphoto2::{Context, Result};

let context = Context::new()?;
let camera = context.autodetect_camera()?;
let file = camera.capture_image()?;
let file_data = file.get_in_memory(&camera)?.get_data()?;

Implementations

Creates a new camera file from disk

Get the data of the file

File name

File mime type

Trait Implementations

Executes the destructor for this type. 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

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

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.