Struct cargo_binstall::fetchers::GhCrateMeta
source · [−]pub struct GhCrateMeta { /* private fields */ }
Trait Implementations
sourceimpl Fetcher for GhCrateMeta
impl Fetcher for GhCrateMeta
sourcefn new<'life0, 'async_trait>(
data: &'life0 Data
) -> Pin<Box<dyn Future<Output = Result<Box<Self>, Error>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
fn new<'life0, 'async_trait>(
data: &'life0 Data
) -> Pin<Box<dyn Future<Output = Result<Box<Self>, Error>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
Create a new fetcher from some data
sourcefn check<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = Result<bool, Error>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
fn check<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = Result<bool, Error>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
Check if a package is available for download
sourcefn fetch<'life0, 'life1, 'async_trait>(
&'life0 self,
dst: &'life1 Path
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
fn fetch<'life0, 'life1, 'async_trait>(
&'life0 self,
dst: &'life1 Path
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
Fetch a package
sourcefn source_name(&self) -> String
fn source_name(&self) -> String
A short human-readable name or descriptor for the package source
sourcefn is_third_party(&self) -> bool
fn is_third_party(&self) -> bool
Should return true if the remote is from a third-party source
Auto Trait Implementations
impl RefUnwindSafe for GhCrateMeta
impl Send for GhCrateMeta
impl Sync for GhCrateMeta
impl Unpin for GhCrateMeta
impl UnwindSafe for GhCrateMeta
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
impl<T> Pointable for T
impl<T> Pointable for T
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more