File

Trait File 

Source
pub trait File {
    type Partition: Partition;
    type Error: Error + Clone + PartialEq + 'static;

    // Required method
    fn partitions<'async_trait>(
        self,
    ) -> Pin<Box<dyn Future<Output = Result<Vec<Self::Partition>, Self::Error>> + 'async_trait>>
       where Self: 'async_trait;
}

Required Associated Types§

Required Methods§

Source

fn partitions<'async_trait>( self, ) -> Pin<Box<dyn Future<Output = Result<Vec<Self::Partition>, Self::Error>> + 'async_trait>>
where Self: 'async_trait,

Implementations on Foreign Types§

Source§

impl File for &str

Source§

type Partition = PathBuf

Source§

type Error = IoError

Source§

fn partitions<'async_trait>( self, ) -> Pin<Box<dyn Future<Output = Result<Vec<Self::Partition>, Self::Error>> + 'async_trait>>
where Self: 'async_trait,

Source§

impl File for &OsStr

Source§

type Partition = PathBuf

Source§

type Error = IoError

Source§

fn partitions<'async_trait>( self, ) -> Pin<Box<dyn Future<Output = Result<Vec<Self::Partition>, Self::Error>> + 'async_trait>>
where Self: 'async_trait,

Source§

impl File for &Path

Source§

type Partition = PathBuf

Source§

type Error = IoError

Source§

fn partitions<'async_trait>( self, ) -> Pin<Box<dyn Future<Output = Result<Vec<Self::Partition>, Self::Error>> + 'async_trait>>
where Self: 'async_trait,

Source§

impl File for String

Source§

type Partition = PathBuf

Source§

type Error = IoError

Source§

fn partitions<'async_trait>( self, ) -> Pin<Box<dyn Future<Output = Result<Vec<Self::Partition>, Self::Error>> + 'async_trait>>
where Self: 'async_trait,

Source§

impl File for OsString

Source§

type Partition = PathBuf

Source§

type Error = IoError

Source§

fn partitions<'async_trait>( self, ) -> Pin<Box<dyn Future<Output = Result<Vec<Self::Partition>, Self::Error>> + 'async_trait>>
where Self: 'async_trait,

Source§

impl File for PathBuf

Source§

type Partition = PathBuf

Source§

type Error = IoError

Source§

fn partitions<'async_trait>( self, ) -> Pin<Box<dyn Future<Output = Result<Vec<Self::Partition>, Self::Error>> + 'async_trait>>
where Self: 'async_trait,

Source§

impl<F> File for &[F]
where F: File + Clone,

Source§

type Partition = <F as File>::Partition

Source§

type Error = <F as File>::Error

Source§

fn partitions<'async_trait>( self, ) -> Pin<Box<dyn Future<Output = Result<Vec<Self::Partition>, Self::Error>> + 'async_trait>>
where Self: 'async_trait,

Source§

impl<F> File for Vec<F>
where F: File,

Source§

type Partition = <F as File>::Partition

Source§

type Error = <F as File>::Error

Source§

fn partitions<'async_trait>( self, ) -> Pin<Box<dyn Future<Output = Result<Vec<Self::Partition>, Self::Error>> + 'async_trait>>
where Self: 'async_trait,

Implementors§