Struct iroh_io::HttpAdapter
source · pub struct HttpAdapter { /* private fields */ }Expand description
A struct that implements AsyncSliceReader using HTTP range requests
Implementations§
source§impl HttpAdapter
impl HttpAdapter
Trait Implementations§
source§impl AsyncSliceReader for HttpAdapter
impl AsyncSliceReader for HttpAdapter
§type ReadAtFuture<'a> = ReadAtFuture<'a>
type ReadAtFuture<'a> = ReadAtFuture<'a>
The future returned by read_at
Auto Trait Implementations§
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§fn read_to_end(&mut self) -> Self::ReadAtFuture<'_>
fn read_to_end(&mut self) -> Self::ReadAtFuture<'_>
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