pub trait AsyncParser: Send + Sync {
// Required methods
fn parse_async<'life0, 'async_trait, R>(
&'life0 self,
reader: R,
) -> Pin<Box<dyn Future<Output = TurtleResult<Vec<Triple>>> + Send + 'async_trait>>
where R: 'async_trait + AsyncRead + Unpin + Send,
Self: 'async_trait,
'life0: 'async_trait;
fn parse_str_async<'life0, 'life1, 'async_trait>(
&'life0 self,
content: &'life1 str,
) -> Pin<Box<dyn Future<Output = TurtleResult<Vec<Triple>>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
}Available on crate feature
async-tokio only.Expand description
Async parser trait for non-blocking RDF parsing
Required Methods§
Sourcefn parse_async<'life0, 'async_trait, R>(
&'life0 self,
reader: R,
) -> Pin<Box<dyn Future<Output = TurtleResult<Vec<Triple>>> + Send + 'async_trait>>
fn parse_async<'life0, 'async_trait, R>( &'life0 self, reader: R, ) -> Pin<Box<dyn Future<Output = TurtleResult<Vec<Triple>>> + Send + 'async_trait>>
Parse a document from an async reader
Sourcefn parse_str_async<'life0, 'life1, 'async_trait>(
&'life0 self,
content: &'life1 str,
) -> Pin<Box<dyn Future<Output = TurtleResult<Vec<Triple>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn parse_str_async<'life0, 'life1, 'async_trait>(
&'life0 self,
content: &'life1 str,
) -> Pin<Box<dyn Future<Output = TurtleResult<Vec<Triple>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Parse a document from a string
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".