Trait amadeus_core::file::File[][src]

pub trait File {
    type Partition: Partition;
    type Error: Error + Clone + PartialEq + 'static;
    #[must_use]
    fn partitions<'async_trait>(
        self
    ) -> Pin<Box<dyn Future<Output = Result<Vec<Self::Partition>, Self::Error>> + 'async_trait>>
    where
        Self: 'async_trait
; }

Associated Types

Required methods

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

Implementations on Foreign Types

impl<F> File for Vec<F> where
    F: File
[src]

type Partition = F::Partition

type Error = F::Error

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

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

type Partition = F::Partition

type Error = F::Error

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

impl File for PathBuf[src]

type Partition = Self

type Error = IoError

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

impl<'impl0> File for &'impl0 Path[src]

type Partition = PathBuf

type Error = IoError

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

impl File for String[src]

type Partition = PathBuf

type Error = IoError

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

impl<'impl0> File for &'impl0 str[src]

type Partition = PathBuf

type Error = IoError

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

impl File for OsString[src]

type Partition = PathBuf

type Error = IoError

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

impl<'impl0> File for &'impl0 OsStr[src]

type Partition = PathBuf

type Error = IoError

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

Implementors