[][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>,
    urls: &[String],
    credential: &Credential,
    lifetime: Duration,
    tries: usize
) -> Result<Self, SystemTimeError>
[src]

pub fn new_from_bucket_and_key(
    bucket: impl AsRef<str>,
    key: impl AsRef<str>,
    uc_urls: &[String],
    credential: &Credential,
    lifetime: Duration,
    tries: usize,
    use_https: bool
) -> IOResult<Self>
[src]

impl RangeReader[src]

pub fn read_multi_range(&self, range: &[(u64, u64)]) -> IOResult<Vec<RangePart>>[src]

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

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

pub fn download(&self) -> IOResult<Vec<u8>>[src]

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

pub fn flash_download_to(
    &self,
    writer: &mut (dyn WriteSeek + Send),
    max_size: Option<u64>,
    part_size: u64,
    concurrency: Option<usize>
) -> IOResult<u64>
[src]

pub fn read_last_bytes(&self, buf: &mut [u8]) -> IOResult<(u64, 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>,