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