pub struct FetchBackend { /* private fields */ }Expand description
HTTP fetch backend using browser’s fetch API
Implementations§
Source§impl FetchBackend
impl FetchBackend
Trait Implementations§
Source§impl DataSource for FetchBackend
impl DataSource for FetchBackend
Source§fn read_range(&self, _range: ByteRange) -> Result<Vec<u8>>
fn read_range(&self, _range: ByteRange) -> Result<Vec<u8>>
Reads bytes from the specified range
Source§fn supports_range_requests(&self) -> bool
fn supports_range_requests(&self) -> bool
Returns true if this data source supports range requests
Source§fn read_ranges(
&self,
ranges: &[ByteRange],
) -> Result<Vec<Vec<u8>>, OxiGdalError>
fn read_ranges( &self, ranges: &[ByteRange], ) -> Result<Vec<Vec<u8>>, OxiGdalError>
Reads bytes from multiple ranges (for optimization)
Auto Trait Implementations§
impl Freeze for FetchBackend
impl RefUnwindSafe for FetchBackend
impl Send for FetchBackend
impl Sync for FetchBackend
impl Unpin for FetchBackend
impl UnsafeUnpin for FetchBackend
impl UnwindSafe for FetchBackend
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