pub struct LfsRange {
pub offset: u64,
pub len: Option<u64>,
}Expand description
The byte range a download call serves: [offset, offset + len)
with len = None meaning to the entry’s end (the door maps the
HTTP bytes=a-b / bytes=a- forms onto the explicit count).
Fields§
§offset: u64The range’s first byte offset.
len: Option<u64>The range’s byte count (None = through the entry’s end).
Trait Implementations§
impl Copy for LfsRange
impl Eq for LfsRange
impl StructuralPartialEq for LfsRange
Auto Trait Implementations§
impl Freeze for LfsRange
impl RefUnwindSafe for LfsRange
impl Send for LfsRange
impl Sync for LfsRange
impl Unpin for LfsRange
impl UnsafeUnpin for LfsRange
impl UnwindSafe for LfsRange
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.