pub trait LineWriter: Send {
// Required method
fn write_line<'life0, 'async_trait>(
&'life0 mut self,
line: impl 'async_trait + AsRef<str> + Send,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
// Provided method
fn write_all_lines<'life0, 'async_trait, S>(
&'life0 mut self,
lines: impl 'async_trait + Iterator<Item = S> + Send,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
where S: 'async_trait + AsRef<str> + Send,
Self: 'async_trait,
'life0: 'async_trait { ... }
}
Required Methods§
fn write_line<'life0, 'async_trait>(
&'life0 mut self,
line: impl 'async_trait + AsRef<str> + Send,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Provided Methods§
fn write_all_lines<'life0, 'async_trait, S>( &'life0 mut self, lines: impl 'async_trait + Iterator<Item = S> + Send, ) -> Pin<Box<dyn Future<Output = ()> + Send + '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.