pub struct DirectLinkParser;Expand description
Default parser: every http(s) URL is a direct download.
Trait Implementations§
Source§impl Clone for DirectLinkParser
impl Clone for DirectLinkParser
Source§impl Debug for DirectLinkParser
impl Debug for DirectLinkParser
Source§impl Default for DirectLinkParser
impl Default for DirectLinkParser
Source§impl LinkParser for DirectLinkParser
impl LinkParser for DirectLinkParser
Source§fn supports(&self, link: &Link) -> bool
fn supports(&self, link: &Link) -> bool
Returns
true when this parser claims link. The check must be cheap
and free of side effects, because registration order decides which
parser is asked first.Source§fn parse<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
link: &'life1 Link,
options: &'life2 ParseOptions,
) -> Pin<Box<dyn Future<Output = Result<Resource>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn parse<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
link: &'life1 Link,
options: &'life2 ParseOptions,
) -> Pin<Box<dyn Future<Output = Result<Resource>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Builds the protocol-agnostic resource for a claimed link.
Auto Trait Implementations§
impl Forget for DirectLinkParser
impl Freeze for DirectLinkParser
impl Move for DirectLinkParser
impl RefUnwindSafe for DirectLinkParser
impl Send for DirectLinkParser
impl Sync for DirectLinkParser
impl Unpin for DirectLinkParser
impl UnsafeUnpin for DirectLinkParser
impl UnwindSafe for DirectLinkParser
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more