pub struct UrlSource { /* private fields */ }Implementations§
Trait Implementations§
Source§impl ByteSource for UrlSource
impl ByteSource for UrlSource
Source§fn prefetch(&self, _ranges: &[Range<u64>])
fn prefetch(&self, _ranges: &[Range<u64>])
Left as a no-op. Coalescing the R-tree’s leaves into multi-range requests is worth measuring before it is worth writing.
Source§fn read_at(&self, offset: u64, len: usize) -> Result<Bytes>
fn read_at(&self, offset: u64, len: usize) -> Result<Bytes>
Read up to
len bytes at offset, returning fewer at end of file.Source§fn close(&self)
fn close(&self)
Release the underlying handle. Idempotent; reads after it fail with
Error::Closed.fn is_empty(&self) -> Result<bool>
Auto Trait Implementations§
impl !Freeze for UrlSource
impl !RefUnwindSafe for UrlSource
impl !UnwindSafe for UrlSource
impl Send for UrlSource
impl Sync for UrlSource
impl Unpin for UrlSource
impl UnsafeUnpin for UrlSource
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