pub trait FileEnumeratorExt: 'static {
    // Required methods
    fn close(
        &self,
        cancellable: Option<&impl IsA<Cancellable>>
    ) -> Result<(), Error>;
    fn close_async<P: FnOnce(Result<(), Error>) + 'static>(
        &self,
        io_priority: Priority,
        cancellable: Option<&impl IsA<Cancellable>>,
        callback: P
    );
    fn close_future(
        &self,
        io_priority: Priority
    ) -> Pin<Box_<dyn Future<Output = Result<(), Error>> + 'static>>;
    fn child(&self, info: &FileInfo) -> File;
    fn container(&self) -> File;
    fn has_pending(&self) -> bool;
    fn is_closed(&self) -> bool;
    fn next_file(
        &self,
        cancellable: Option<&impl IsA<Cancellable>>
    ) -> Result<Option<FileInfo>, Error>;
    fn next_files_async<P: FnOnce(Result<Vec<FileInfo>, Error>) + 'static>(
        &self,
        num_files: i32,
        io_priority: Priority,
        cancellable: Option<&impl IsA<Cancellable>>,
        callback: P
    );
    fn next_files_future(
        &self,
        num_files: i32,
        io_priority: Priority
    ) -> Pin<Box_<dyn Future<Output = Result<Vec<FileInfo>, Error>> + 'static>>;
    fn set_pending(&self, pending: bool);
}

Required Methods§

source

fn close( &self, cancellable: Option<&impl IsA<Cancellable>> ) -> Result<(), Error>

source

fn close_async<P: FnOnce(Result<(), Error>) + 'static>( &self, io_priority: Priority, cancellable: Option<&impl IsA<Cancellable>>, callback: P )

source

fn close_future( &self, io_priority: Priority ) -> Pin<Box_<dyn Future<Output = Result<(), Error>> + 'static>>

source

fn child(&self, info: &FileInfo) -> File

source

fn container(&self) -> File

source

fn has_pending(&self) -> bool

source

fn is_closed(&self) -> bool

source

fn next_file( &self, cancellable: Option<&impl IsA<Cancellable>> ) -> Result<Option<FileInfo>, Error>

source

fn next_files_async<P: FnOnce(Result<Vec<FileInfo>, Error>) + 'static>( &self, num_files: i32, io_priority: Priority, cancellable: Option<&impl IsA<Cancellable>>, callback: P )

source

fn next_files_future( &self, num_files: i32, io_priority: Priority ) -> Pin<Box_<dyn Future<Output = Result<Vec<FileInfo>, Error>> + 'static>>

source

fn set_pending(&self, pending: bool)

Implementors§