Struct tame_index::index::local::ValidKrate
source · pub struct ValidKrate<'iv> { /* private fields */ }
Available on crate feature
local
only.Expand description
A wrapper around the raw byte buffer for a .crate response from a remote index
Implementations§
source§impl<'iv> ValidKrate<'iv>
impl<'iv> ValidKrate<'iv>
sourcepub fn download(
client: &Client,
config: &IndexConfig,
version: &'iv IndexVersion,
) -> Result<Self, Error>
Available on crate feature local-builder
only.
pub fn download( client: &Client, config: &IndexConfig, version: &'iv IndexVersion, ) -> Result<Self, Error>
local-builder
only.Downloads and validates a .crate from the specified index
source§impl<'iv> ValidKrate<'iv>
impl<'iv> ValidKrate<'iv>
Auto Trait Implementations§
impl<'iv> !Freeze for ValidKrate<'iv>
impl<'iv> RefUnwindSafe for ValidKrate<'iv>
impl<'iv> Send for ValidKrate<'iv>
impl<'iv> Sync for ValidKrate<'iv>
impl<'iv> Unpin for ValidKrate<'iv>
impl<'iv> UnwindSafe for ValidKrate<'iv>
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