Skip to main content

FileExtManual

Trait FileExtManual 

Source
pub trait FileExtManual: Sized + IsA<File> {
Show 17 methods // Provided methods fn replace_contents_async<B, R, C>( &self, contents: B, etag: Option<&str>, make_backup: bool, flags: FileCreateFlags, cancellable: Option<&C>, callback: R, ) where B: AsRef<[u8]> + Send + 'static, R: FnOnce(Result<(B, Option<GString>), (B, Error)>) + 'static, C: IsA<Cancellable> { ... } fn replace_contents_future<B>( &self, contents: B, etag: Option<&str>, make_backup: bool, flags: FileCreateFlags, ) -> Pin<Box<dyn Future<Output = Result<(B, Option<GString>), (B, Error)>>>> where B: AsRef<[u8]> + Send + 'static { ... } fn enumerate_children_async<P, Q>( &self, attributes: &str, flags: FileQueryInfoFlags, io_priority: Priority, cancellable: Option<&P>, callback: Q, ) where P: IsA<Cancellable>, Q: FnOnce(Result<FileEnumerator, Error>) + 'static { ... } fn enumerate_children_future( &self, attributes: &str, flags: FileQueryInfoFlags, io_priority: Priority, ) -> Pin<Box<dyn Future<Output = Result<FileEnumerator, Error>>>> { ... } fn copy_async<Q>( &self, destination: &impl IsA<File>, flags: FileCopyFlags, io_priority: Priority, cancellable: Option<&impl IsA<Cancellable>>, progress_callback: Option<Box<dyn FnMut(i64, i64)>>, callback: Q, ) where Q: FnOnce(Result<(), Error>) + 'static { ... } fn copy_future( &self, destination: &(impl IsA<File> + Clone + 'static), flags: FileCopyFlags, io_priority: Priority, ) -> (Pin<Box<dyn Future<Output = Result<(), Error>>>>, Pin<Box<dyn Stream<Item = (i64, i64)>>>) { ... } fn load_contents( &self, cancellable: Option<&impl IsA<Cancellable>>, ) -> Result<(Slice<u8>, Option<GString>), Error> { ... } fn load_contents_async<P>( &self, cancellable: Option<&impl IsA<Cancellable>>, callback: P, ) where P: FnOnce(Result<(Slice<u8>, Option<GString>), Error>) + 'static { ... } fn load_contents_future( &self, ) -> impl Future<Output = Result<(Slice<u8>, Option<GString>), Error>> + Unpin + 'static { ... } fn load_partial_contents_async<P, Q>( &self, cancellable: Option<&impl IsA<Cancellable>>, read_more_callback: P, callback: Q, ) where P: FnMut(&[u8]) -> bool + 'static, Q: FnOnce(Result<(Slice<u8>, Option<GString>), Error>) + 'static { ... } fn measure_disk_usage_async<P>( &self, flags: FileMeasureFlags, io_priority: Priority, cancellable: Option<&impl IsA<Cancellable>>, progress_callback: Option<Box<dyn FnMut(bool, u64, u64, u64)>>, callback: P, ) where P: FnOnce(Result<(u64, u64, u64), Error>) + 'static { ... } fn measure_disk_usage_future( &self, flags: FileMeasureFlags, io_priority: Priority, ) -> (Pin<Box<dyn Future<Output = Result<(u64, u64, u64), Error>>>>, Pin<Box<dyn Stream<Item = (bool, u64, u64, u64)>>>) { ... } fn move_async<Q>( &self, destination: &impl IsA<File>, flags: FileCopyFlags, io_priority: Priority, cancellable: Option<&impl IsA<Cancellable>>, progress_callback: Option<Box<dyn FnMut(i64, i64)>>, callback: Q, ) where Q: FnOnce(Result<(), Error>) + 'static { ... } fn make_symbolic_link_async<P>( &self, symlink_value: impl AsRef<Path>, io_priority: Priority, cancellable: Option<&impl IsA<Cancellable>>, callback: P, ) where P: FnOnce(Result<(), Error>) + 'static { ... } fn make_symbolic_link_future( &self, symlink_value: impl AsRef<Path>, io_priority: Priority, ) -> Pin<Box<dyn Future<Output = Result<(), Error>>>> { ... } fn move_future( &self, destination: &(impl IsA<File> + Clone + 'static), flags: FileCopyFlags, io_priority: Priority, ) -> (Pin<Box<dyn Future<Output = Result<(), Error>>>>, Pin<Box<dyn Stream<Item = (i64, i64)>>>) { ... } fn set_attribute<'a>( &self, attribute: &str, value: impl Into<FileAttributeValue<'a>>, flags: FileQueryInfoFlags, cancellable: Option<&impl IsA<Cancellable>>, ) -> Result<(), Error> { ... }
}

Provided Methods§

Source

fn replace_contents_async<B, R, C>( &self, contents: B, etag: Option<&str>, make_backup: bool, flags: FileCreateFlags, cancellable: Option<&C>, callback: R, )
where B: AsRef<[u8]> + Send + 'static, R: FnOnce(Result<(B, Option<GString>), (B, Error)>) + 'static, C: IsA<Cancellable>,

Source

fn replace_contents_future<B>( &self, contents: B, etag: Option<&str>, make_backup: bool, flags: FileCreateFlags, ) -> Pin<Box<dyn Future<Output = Result<(B, Option<GString>), (B, Error)>>>>
where B: AsRef<[u8]> + Send + 'static,

Source

fn enumerate_children_async<P, Q>( &self, attributes: &str, flags: FileQueryInfoFlags, io_priority: Priority, cancellable: Option<&P>, callback: Q, )
where P: IsA<Cancellable>, Q: FnOnce(Result<FileEnumerator, Error>) + 'static,

Source

fn enumerate_children_future( &self, attributes: &str, flags: FileQueryInfoFlags, io_priority: Priority, ) -> Pin<Box<dyn Future<Output = Result<FileEnumerator, Error>>>>

Source

fn copy_async<Q>( &self, destination: &impl IsA<File>, flags: FileCopyFlags, io_priority: Priority, cancellable: Option<&impl IsA<Cancellable>>, progress_callback: Option<Box<dyn FnMut(i64, i64)>>, callback: Q, )
where Q: FnOnce(Result<(), Error>) + 'static,

Source

fn copy_future( &self, destination: &(impl IsA<File> + Clone + 'static), flags: FileCopyFlags, io_priority: Priority, ) -> (Pin<Box<dyn Future<Output = Result<(), Error>>>>, Pin<Box<dyn Stream<Item = (i64, i64)>>>)

Source

fn load_contents( &self, cancellable: Option<&impl IsA<Cancellable>>, ) -> Result<(Slice<u8>, Option<GString>), Error>

Source

fn load_contents_async<P>( &self, cancellable: Option<&impl IsA<Cancellable>>, callback: P, )
where P: FnOnce(Result<(Slice<u8>, Option<GString>), Error>) + 'static,

Source

fn load_contents_future( &self, ) -> impl Future<Output = Result<(Slice<u8>, Option<GString>), Error>> + Unpin + 'static

Source

fn load_partial_contents_async<P, Q>( &self, cancellable: Option<&impl IsA<Cancellable>>, read_more_callback: P, callback: Q, )
where P: FnMut(&[u8]) -> bool + 'static, Q: FnOnce(Result<(Slice<u8>, Option<GString>), Error>) + 'static,

Source

fn measure_disk_usage_async<P>( &self, flags: FileMeasureFlags, io_priority: Priority, cancellable: Option<&impl IsA<Cancellable>>, progress_callback: Option<Box<dyn FnMut(bool, u64, u64, u64)>>, callback: P, )
where P: FnOnce(Result<(u64, u64, u64), Error>) + 'static,

Source

fn measure_disk_usage_future( &self, flags: FileMeasureFlags, io_priority: Priority, ) -> (Pin<Box<dyn Future<Output = Result<(u64, u64, u64), Error>>>>, Pin<Box<dyn Stream<Item = (bool, u64, u64, u64)>>>)

Source

fn move_async<Q>( &self, destination: &impl IsA<File>, flags: FileCopyFlags, io_priority: Priority, cancellable: Option<&impl IsA<Cancellable>>, progress_callback: Option<Box<dyn FnMut(i64, i64)>>, callback: Q, )
where Q: FnOnce(Result<(), Error>) + 'static,

Available on crate feature v2_72 only.
Available on crate feature v2_74 only.
Available on crate feature v2_74 only.
Source

fn move_future( &self, destination: &(impl IsA<File> + Clone + 'static), flags: FileCopyFlags, io_priority: Priority, ) -> (Pin<Box<dyn Future<Output = Result<(), Error>>>>, Pin<Box<dyn Stream<Item = (i64, i64)>>>)

Available on crate feature v2_72 only.
Source

fn set_attribute<'a>( &self, attribute: &str, value: impl Into<FileAttributeValue<'a>>, flags: FileQueryInfoFlags, cancellable: Option<&impl IsA<Cancellable>>, ) -> Result<(), Error>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl<O> FileExtManual for O
where O: IsA<File>,