Struct stitchy_core::OwnedRawFdProperties
source · pub struct OwnedRawFdProperties { /* private fields */ }
Expand description
Wrapper for file metadata. Loading these properties for a file does not require actually reading, let alone parsing, the file’s contents. Like the OwnedRawFdLocation, this owns the file descriptor now, and the file will be closed when this instance is dropped.
Implementations§
source§impl OwnedRawFdProperties
impl OwnedRawFdProperties
pub fn borrow_file_mut(&mut self) -> &File
Trait Implementations§
source§impl Debug for OwnedRawFdProperties
impl Debug for OwnedRawFdProperties
source§impl FileProperties for OwnedRawFdProperties
impl FileProperties for OwnedRawFdProperties
fn infer_format(&self) -> Option<ImageFormat>
fn into_image_contents(self, print_info: bool) -> Result<DynamicImage, String>
fn file_size(&self) -> u64
fn modify_time(&self) -> SystemTime
fn full_path(&self) -> Option<&String>
Auto Trait Implementations§
impl Freeze for OwnedRawFdProperties
impl RefUnwindSafe for OwnedRawFdProperties
impl Send for OwnedRawFdProperties
impl Sync for OwnedRawFdProperties
impl Unpin for OwnedRawFdProperties
impl UnwindSafe for OwnedRawFdProperties
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more