Struct gphoto::FileMedia [] [src]

pub struct FileMedia {
    // some fields omitted
}

Media stored as a local file.

Methods

impl FileMedia

fn create(path: &Path) -> Result<Self>

Creates a new file that stores media.

This function creates a new file on disk. The file will start out empty.

Errors

This function returns an error if the file can not be created:

  • FileExists if the file already exists.

Trait Implementations

impl Drop for FileMedia

fn drop(&mut self)

impl Media for FileMedia