[−][src]Struct qiniu_download::RangeReader
Implementations
impl RangeReader
[src]
pub fn new(urls: &[String], tries: usize) -> Self
[src]
pub fn new_from_key(
key: impl AsRef<str>,
domains: &[String],
credential: &Credential,
lifetime: Duration,
tries: usize
) -> Result<Self, SystemTimeError>
[src]
key: impl AsRef<str>,
domains: &[String],
credential: &Credential,
lifetime: Duration,
tries: usize
) -> Result<Self, SystemTimeError>
impl RangeReader
[src]
pub fn read_multi_range(
&self,
buf: &mut [u8],
range: &[(u64, u64)]
) -> IOResult<usize>
[src]
&self,
buf: &mut [u8],
range: &[(u64, u64)]
) -> IOResult<usize>
pub fn exist(&self) -> IOResult<bool>
[src]
pub fn file_size(&self) -> IOResult<u64>
[src]
pub fn download_to(&self, writer: &mut dyn WriteSeek) -> IOResult<u64>
[src]
Trait Implementations
impl Debug for RangeReader
[src]
impl ReadAt for RangeReader
[src]
Auto Trait Implementations
impl RefUnwindSafe for RangeReader
impl Send for RangeReader
impl Sync for RangeReader
impl Unpin for RangeReader
impl UnwindSafe for RangeReader
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DebugAny for T where
T: Any + Debug,
T: Any + Debug,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<R> ReadBytesExt for R where
R: ReadAt,
[src]
R: ReadAt,
fn read_u8_at(&self, pos: u64) -> Result<u8, Error>
[src]
fn read_i8_at(&self, pos: u64) -> Result<i8, Error>
[src]
fn read_u16_at<T>(&self, pos: u64) -> Result<u16, Error> where
T: ByteOrder,
[src]
T: ByteOrder,
fn read_i16_at<T>(&self, pos: u64) -> Result<i16, Error> where
T: ByteOrder,
[src]
T: ByteOrder,
fn read_u32_at<T>(&self, pos: u64) -> Result<u32, Error> where
T: ByteOrder,
[src]
T: ByteOrder,
fn read_i32_at<T>(&self, pos: u64) -> Result<i32, Error> where
T: ByteOrder,
[src]
T: ByteOrder,
fn read_u64_at<T>(&self, pos: u64) -> Result<u64, Error> where
T: ByteOrder,
[src]
T: ByteOrder,
fn read_i64_at<T>(&self, pos: u64) -> Result<i64, Error> where
T: ByteOrder,
[src]
T: ByteOrder,
fn read_uint_at<T>(&self, pos: u64, nbytes: usize) -> Result<u64, Error> where
T: ByteOrder,
[src]
T: ByteOrder,
fn read_int_at<T>(&self, pos: u64, nbytes: usize) -> Result<i64, Error> where
T: ByteOrder,
[src]
T: ByteOrder,
fn read_f32_at<T>(&self, pos: u64) -> Result<f32, Error> where
T: ByteOrder,
[src]
T: ByteOrder,
fn read_f64_at<T>(&self, pos: u64) -> Result<f64, Error> where
T: ByteOrder,
[src]
T: ByteOrder,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Typeable for T where
T: Any,
T: Any,
impl<T> UnsafeAny for T where
T: Any,
T: Any,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,