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>,
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,
&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>>
&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>,
&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,
&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>>
&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)
Implementors
impl<O> FileEnumeratorExt for O where
O: IsA<FileEnumerator>,
O: IsA<FileEnumerator>,
pub fn close<P>(&self, cancellable: Option<&P>) -> Result<(), Error> where
P: IsA<Cancellable>,
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,
&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>>
&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>,
&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,
&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>>
&self,
num_files: i32,
io_priority: Priority
) -> Pin<Box<dyn Future<Output = Result<Vec<FileInfo, Global>, Error>> + 'static, Global>>