pub fn storage(&mut self, context: &mut Context) -> ::Result<Vec<Storage>> {
        let mut ptr = unsafe { MaybeUninit::uninit().assume_init() };
        let mut len = unsafe { MaybeUninit::uninit().assume_init() };

        try_unsafe! {
            ::gphoto2::gp_camera_get_storageinfo(self.camera,
                                                 &mut ptr,
                                                 &mut len,
                                                 context.as_mut_ptr())
        };

        let storage = ptr as *mut Storage;
        let length = len as usize;

        Ok(unsafe { Vec::from_raw_parts(storage, length, length) })
    }
/// Retrieves information about the camera's storage.
///
/// Returns a `Vec` containing one `Storage` for each filesystem on the device.
Retrieves information about the camera's storage.
Returns a `Vec` containing one `Storage` for each filesystem on the device.
Retrieves information about the camera ' s storage . Returns a ` Vec ` containing one ` Storage ` for each filesystem on the device .
pub fn storage(&mut self, context: &mut Context) -> ::Result<Vec<Storage>> {
        let mut ptr = unsafe { MaybeUninit::uninit().assume_init() };
        let mut len = unsafe { MaybeUninit::uninit().assume_init() };
        try_unsafe! {
            ::gphoto2::gp_camera_get_storageinfo(self.camera,
                                                 &mut ptr,
                                                 &mut len,
                                                 context.as_mut_ptr())
        };
        let storage = ptr as *mut Storage;
        let length = len as usize;
        Ok(unsafe { Vec::from_raw_parts(storage, length, length) })
    }
pub fn storage ( & mut self , context : & mut Context ) -> :: Result < Vec < Storage > > { let mut ptr = unsafe { MaybeUninit :: uninit ( ) . assume_init ( ) } ; let mut len = unsafe { MaybeUninit :: uninit ( ) . assume_init ( ) } ; try_unsafe ! { gphoto2 gp_camera_get_storageinfo ( self camera mut ptr mut len context as_mut_ptr ( ) ) } ; let storage = ptr as * mut Storage ; let length = len as usize ; Ok ( unsafe { Vec :: from_raw_parts ( storage , length , length ) } ) }
Retrieves information about the camera's storage.
Retrieves information about the camera ' s storage .
&mut self
context
&mut Context
&mut self
context
&mut Context