pub struct RangeSpec {
pub start: u64,
pub end: u64,
}Expand description
A byte range of a resource: [start, end).
The transport layer uses half-open ranges internally; HTTP
Content-Range values are emitted as start-end with inclusive end
(see server helpers).
Fields§
§start: u64First byte (inclusive).
end: u64One past the last byte (exclusive).
Implementations§
Trait Implementations§
impl Copy for RangeSpec
Source§impl<'de> Deserialize<'de> for RangeSpec
impl<'de> Deserialize<'de> for RangeSpec
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for RangeSpec
impl StructuralPartialEq for RangeSpec
Auto Trait Implementations§
impl Freeze for RangeSpec
impl RefUnwindSafe for RangeSpec
impl Send for RangeSpec
impl Sync for RangeSpec
impl Unpin for RangeSpec
impl UnsafeUnpin for RangeSpec
impl UnwindSafe for RangeSpec
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