pub trait FileEnumeratorExtManual: IsA<FileEnumerator> {
// Provided methods
fn into_stream(
self,
num_files: i32,
priority: Priority,
) -> FileEnumeratorStream { ... }
fn close(
&self,
cancellable: Option<&impl IsA<Cancellable>>,
) -> (bool, Option<Error>) { ... }
}Provided Methods§
Sourcefn into_stream(self, num_files: i32, priority: Priority) -> FileEnumeratorStream
fn into_stream(self, num_files: i32, priority: Priority) -> FileEnumeratorStream
Converts the enumerator into a Stream.
Sourcefn close(
&self,
cancellable: Option<&impl IsA<Cancellable>>,
) -> (bool, Option<Error>)
fn close( &self, cancellable: Option<&impl IsA<Cancellable>>, ) -> (bool, Option<Error>)
Releases all resources used by this enumerator.
The enumerator will return [error@Gio.IOErrorEnum.CLOSED] on all subsequent calls.
This will be automatically called when the last reference is dropped, but you might want to call this function to make sure resources are released as early as possible.
§cancellable
optional cancellable object
§Returns
true on success; false otherwise
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".