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