pub struct RetrieveRequest<'a> {
pub hashes: &'a Hashes,
pub target: &'a Path,
pub compression: Compression,
pub path: ProjectPath,
pub operation_id: Uuid,
pub on_bytes: Option<&'a (dyn Fn(u64) + Send + Sync)>,
}Expand description
Common fields needed for retrieving a file across backends
Fields§
§hashes: &'a Hashes§target: &'a Path§compression: Compression§path: ProjectPath§operation_id: Uuid§on_bytes: Option<&'a (dyn Fn(u64) + Send + Sync)>Implementations§
Source§impl<'a> RetrieveRequest<'a>
impl<'a> RetrieveRequest<'a>
pub fn new_local( hashes: &'a Hashes, target: &'a Path, path: ProjectPath, compression: Compression, ) -> Self
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for RetrieveRequest<'a>
impl<'a> !UnwindSafe for RetrieveRequest<'a>
impl<'a> Freeze for RetrieveRequest<'a>
impl<'a> Send for RetrieveRequest<'a>
impl<'a> Sync for RetrieveRequest<'a>
impl<'a> Unpin for RetrieveRequest<'a>
impl<'a> UnsafeUnpin for RetrieveRequest<'a>
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> 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