[][src]Struct qiniu_download::RangeReader

pub struct RangeReader { /* fields omitted */ }

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]

impl RangeReader[src]

pub fn read_multi_range(
    &self,
    buf: &mut [u8],
    range: &[(u64, u64)]
) -> IOResult<usize>
[src]

pub fn exist(&self) -> IOResult<bool>[src]

pub fn file_size(&self) -> IOResult<u64>[src]

pub fn download_to(
    &self,
    writer: &mut dyn WriteSeek,
    max_size: Option<u64>
) -> IOResult<u64>
[src]

Trait Implementations

impl Debug for RangeReader[src]

impl ReadAt for RangeReader[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DebugAny for T where
    T: Any + Debug

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<R> ReadBytesExt for R where
    R: ReadAt
[src]

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]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Typeable for T where
    T: Any

impl<T> UnsafeAny for T where
    T: Any

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,