Trait ux::prelude::FileEnumeratorExt[]

pub trait FileEnumeratorExt: 'static {
    pub fn close<P>(&self, cancellable: Option<&P>) -> Result<(), Error>
    where
        P: IsA<Cancellable>
;
pub fn close_async<P, Q>(
        &self,
        io_priority: Priority,
        cancellable: Option<&P>,
        callback: Q
    )
    where
        P: IsA<Cancellable>,
        Q: 'static + FnOnce(Result<(), Error>) + Send
;
pub fn close_async_future(
        &self,
        io_priority: Priority
    ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + 'static, Global>>;
pub fn get_child(&self, info: &FileInfo) -> Option<File>;
pub fn get_container(&self) -> Option<File>;
pub fn has_pending(&self) -> bool;
pub fn is_closed(&self) -> bool;
pub fn next_file<P>(
        &self,
        cancellable: Option<&P>
    ) -> Result<Option<FileInfo>, Error>
    where
        P: IsA<Cancellable>
;
pub fn next_files_async<P, Q>(
        &self,
        num_files: i32,
        io_priority: Priority,
        cancellable: Option<&P>,
        callback: Q
    )
    where
        P: IsA<Cancellable>,
        Q: 'static + FnOnce(Result<Vec<FileInfo, Global>, Error>) + Send
;
pub fn next_files_async_future(
        &self,
        num_files: i32,
        io_priority: Priority
    ) -> Pin<Box<dyn Future<Output = Result<Vec<FileInfo, Global>, Error>> + 'static, Global>>;
pub fn set_pending(&self, pending: bool); }

Required methods

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

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

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

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

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

pub fn has_pending(&self) -> bool

pub fn is_closed(&self) -> bool

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

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

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

pub fn set_pending(&self, pending: bool)

Loading content...

Implementors

impl<O> FileEnumeratorExt for O where
    O: IsA<FileEnumerator>, 

Loading content...