pub struct GhCrateMeta { /* private fields */ }
Trait Implementations§
Source§impl Fetcher for GhCrateMeta
impl Fetcher for GhCrateMeta
Source§fn new(
client: Client,
gh_api_client: GhApiClient,
data: Arc<Data>,
target_data: Arc<TargetDataErased>,
signature_policy: SignaturePolicy,
) -> Arc<dyn Fetcher>
fn new( client: Client, gh_api_client: GhApiClient, data: Arc<Data>, target_data: Arc<TargetDataErased>, signature_policy: SignaturePolicy, ) -> Arc<dyn Fetcher>
Create a new fetcher from some data
Source§fn find(self: Arc<Self>) -> JoinHandle<Result<bool, FetchError>>
fn find(self: Arc<Self>) -> JoinHandle<Result<bool, FetchError>>
Find the package, if it is available for download Read more
Source§fn fetch_and_extract<'life0, 'life1, 'async_trait>(
&'life0 self,
dst: &'life1 Path,
) -> Pin<Box<dyn Future<Output = Result<ExtractedFiles, FetchError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn fetch_and_extract<'life0, 'life1, 'async_trait>(
&'life0 self,
dst: &'life1 Path,
) -> Pin<Box<dyn Future<Output = Result<ExtractedFiles, FetchError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Fetch a package and extract
Source§fn target_meta(&self) -> PkgMeta
fn target_meta(&self) -> PkgMeta
Return finalized target meta.
Source§fn source_name(&self) -> CompactString
fn source_name(&self) -> CompactString
A short human-readable name or descriptor for the package source
Source§fn fetcher_name(&self) -> &'static str
fn fetcher_name(&self) -> &'static str
A short human-readable name, must contains only characters
and numbers and it also must be unique. Read more
Source§fn is_third_party(&self) -> bool
fn is_third_party(&self) -> bool
Should return true if the remote is from a third-party source
fn target_data(&self) -> &Arc<TargetDataErased>
Source§fn report_to_upstream(self: Arc<Self>)
fn report_to_upstream(self: Arc<Self>)
Report to upstream that cargo-binstall tries to use this fetcher.
Currently it is only overriden by
quickinstall::QuickInstall
.Auto Trait Implementations§
impl !Freeze for GhCrateMeta
impl !RefUnwindSafe for GhCrateMeta
impl Send for GhCrateMeta
impl Sync for GhCrateMeta
impl Unpin for GhCrateMeta
impl !UnwindSafe for GhCrateMeta
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more