pub struct Source {
pub url: Url,
pub admission: Admission,
pub validator: Option<String>,
/* private fields */
}Fields§
§url: Url§admission: Admission§validator: Option<String>This source’s own If-Range validator. Validators are per-resource, not
per-download: sending the primary’s ETag to a mirror would make the
mirror answer with a full body, which we would read as “the file
changed”. Each source therefore carries the validator it issued.
Implementations§
Auto Trait Implementations§
impl !Freeze for Source
impl RefUnwindSafe for Source
impl Send for Source
impl Sync for Source
impl Unpin for Source
impl UnsafeUnpin for Source
impl UnwindSafe for Source
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