pub struct HttpAdapter { /* private fields */ }
Expand description
A struct that implements AsyncSliceReader using HTTP range requests
Implementations§
Source§impl HttpAdapter
impl HttpAdapter
Sourcepub fn new(url: Url) -> Self
pub fn new(url: Url) -> Self
Creates a new HttpAdapter
from a URL
Sourcepub fn with_opts(opts: Arc<Opts>) -> Self
pub fn with_opts(opts: Arc<Opts>) -> Self
Creates a new HttpAdapter
from a URL and options
Trait Implementations§
Auto Trait Implementations§
impl Freeze for HttpAdapter
impl !RefUnwindSafe for HttpAdapter
impl Send for HttpAdapter
impl Sync for HttpAdapter
impl Unpin for HttpAdapter
impl !UnwindSafe for HttpAdapter
Blanket Implementations§
Source§impl<T> AsyncSliceReaderExt for Twhere
T: AsyncSliceReader,
impl<T> AsyncSliceReaderExt for Twhere
T: AsyncSliceReader,
Source§async fn read_to_end(&mut self) -> Result<Bytes>
async fn read_to_end(&mut self) -> Result<Bytes>
Read the entire resource into a bytes::Bytes buffer, if possible.
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