pub struct HttpByteSource { /* private fields */ }Expand description
Random-access COPC byte source backed by HTTP range requests.
Implementations§
Source§impl HttpByteSource
impl HttpByteSource
Sourcepub fn new(url: impl Into<String>) -> Result<Self, IoError>
pub fn new(url: impl Into<String>) -> Result<Self, IoError>
Creates an HTTP byte source for a remote COPC URL.
Sourcepub fn with_max_parallel_ranges(self, max_parallel_ranges: usize) -> Self
pub fn with_max_parallel_ranges(self, max_parallel_ranges: usize) -> Self
Limits how many HTTP range requests are in flight at once.
Sourcepub fn max_parallel_ranges(&self) -> usize
pub fn max_parallel_ranges(&self) -> usize
Returns the configured maximum number of parallel range requests.
Trait Implementations§
Source§impl ByteSource for HttpByteSource
impl ByteSource for HttpByteSource
Source§impl Clone for HttpByteSource
impl Clone for HttpByteSource
Source§fn clone(&self) -> HttpByteSource
fn clone(&self) -> HttpByteSource
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for HttpByteSource
impl Debug for HttpByteSource
Source§impl PartialEq for HttpByteSource
impl PartialEq for HttpByteSource
impl Eq for HttpByteSource
impl StructuralPartialEq for HttpByteSource
Auto Trait Implementations§
impl Freeze for HttpByteSource
impl RefUnwindSafe for HttpByteSource
impl Send for HttpByteSource
impl Sync for HttpByteSource
impl Unpin for HttpByteSource
impl UnsafeUnpin for HttpByteSource
impl UnwindSafe for HttpByteSource
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