Trait FileReadExt

Source
pub trait FileReadExt: Display {
    // Provided methods
    fn get_cache_handle<'async_trait>(    ) -> Pin<Box<dyn Future<Output = &'static Cache<String, u64>> + Send + 'async_trait>> { ... }
    fn is_line_match_all_patterns(line: &str, patterns: &Vec<&str>) -> bool { ... }
    fn blocking_read<'life0, 'life1, 'life2, 'life3, 'async_trait>(
        &'life0 self,
        patterns: &'life1 Vec<&'life2 str>,
        matched_lines: &'life3 mut Vec<String>,
    ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
       where Self: Sync + 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait,
             'life3: 'async_trait { ... }
    fn blocking_read_with_time_limit<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        patterns: &'life1 Vec<&'life2 str>,
        time_limit: Duration,
    ) -> Pin<Box<dyn Future<Output = Result<Vec<String>>> + Send + 'async_trait>>
       where Self: Sync + 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait { ... }
}

Provided Methods§

Source

fn get_cache_handle<'async_trait>() -> Pin<Box<dyn Future<Output = &'static Cache<String, u64>> + Send + 'async_trait>>

Source

fn is_line_match_all_patterns(line: &str, patterns: &Vec<&str>) -> bool

a line must include all patterns, and will get true if patterns is empty, then will get true always

Source

fn blocking_read<'life0, 'life1, 'life2, 'life3, 'async_trait>( &'life0 self, patterns: &'life1 Vec<&'life2 str>, matched_lines: &'life3 mut Vec<String>, ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: Sync + 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait, 'life3: 'async_trait,

Source

fn blocking_read_with_time_limit<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, patterns: &'life1 Vec<&'life2 str>, time_limit: Duration, ) -> Pin<Box<dyn Future<Output = Result<Vec<String>>> + Send + 'async_trait>>
where Self: Sync + 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl FileReadExt for &str

Source§

impl FileReadExt for String

Implementors§