[][src]Trait gio::FileEnumeratorExt

pub trait FileEnumeratorExt: 'static {
    fn close<P: IsA<Cancellable>>(
        &self,
        cancellable: Option<&P>
    ) -> Result<(), Error>;
fn close_async<P: IsA<Cancellable>, Q: FnOnce(Result<(), Error>) + Send + 'static>(
        &self,
        io_priority: Priority,
        cancellable: Option<&P>,
        callback: Q
    );
fn close_async_future(
        &self,
        io_priority: Priority
    ) -> Pin<Box_<dyn Future<Output = Result<(), Error>> + 'static>>;
fn get_child(&self, info: &FileInfo) -> Option<File>;
fn get_container(&self) -> Option<File>;
fn has_pending(&self) -> bool;
fn is_closed(&self) -> bool;
fn next_file<P: IsA<Cancellable>>(
        &self,
        cancellable: Option<&P>
    ) -> Result<Option<FileInfo>, Error>;
fn next_files_async<P: IsA<Cancellable>, Q: FnOnce(Result<Vec<FileInfo>, Error>) + Send + 'static>(
        &self,
        num_files: i32,
        io_priority: Priority,
        cancellable: Option<&P>,
        callback: Q
    );
fn next_files_async_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

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

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

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

fn get_child(&self, info: &FileInfo) -> Option<File>

fn get_container(&self) -> Option<File>

fn has_pending(&self) -> bool

fn is_closed(&self) -> bool

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

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

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

fn set_pending(&self, pending: bool)

Loading content...

Implementors

impl<O: IsA<FileEnumerator>> FileEnumeratorExt for O[src]

Loading content...