pub struct RangeReader(_);
Expand description

对象范围下载器

Implementations

创建范围下载构建器

从配置创建范围下载器

Arguments
  • key - 对象名称
  • config - 下载配置

从环境变量创建范围下载器

Arguments
  • key - 对象名称

主动更新域名列表

如果返回为 true 表示更新成功,否则返回 false

获取当前可用的 IO 节点的域名

读取文件的多个区域,返回每个区域对应的数据

Arguments
  • range - 区域列表,每个区域有开始偏移量和区域长度组成

判定当前对象是否存在

获取当前对象的文件大小

下载当前对象到内存缓冲区中

下载当前对象到指定输出流中

下载对象的最后指定个字节到缓冲区中,返回实际下载的字节数和整个文件的大小

Trait Implementations

Formats the value using the given formatter. Read more

Read bytes from an offset in this source into a buffer, returning how many bytes were read. Read more

Read the exact number of bytes required to fill buf, from an offset. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Converts self into T using Into<T>. Read more

Returns the argument unchanged.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Pipes by value. This is generally the method you want to use. Read more

Borrows self and passes that borrow into the pipe function. Read more

Mutably borrows self and passes that borrow into the pipe function. Read more

Borrows self, then passes self.borrow() into the pipe function. Read more

Mutably borrows self, then passes self.borrow_mut() into the pipe function. Read more

Borrows self, then passes self.as_ref() into the pipe function.

Mutably borrows self, then passes self.as_mut() into the pipe function. Read more

Borrows self, then passes self.deref() into the pipe function.

Mutably borrows self, then passes self.deref_mut() into the pipe function. Read more

Reads an unsigned 8-bit integer at an offset.

Reads a signed 8-bit integer at an offset.

Reads an unsigned 16-bit integer at an offset.

Reads a signed 16-bit integer at an offset.

Reads an unsigned 32-bit integer at an offset.

Reads a signed 32-bit integer at an offset.

Reads an unsigned 64-bit integer at an offset.

Reads a signed 64-bit integer at an offset.

Reads an unsigned nbytes-bit integer at an offset.

Reads a signed nbytes-bit integer at an offset.

Reads a single-precision floating point number at an offset.

Reads a double-precision floating point number at an offset.

Should always be Self

Immutable access to a value. Read more

Mutable access to a value. Read more

Immutable access to the Borrow<B> of a value. Read more

Mutable access to the BorrowMut<B> of a value. Read more

Immutable access to the AsRef<R> view of a value. Read more

Mutable access to the AsMut<R> view of a value. Read more

Immutable access to the Deref::Target of a value. Read more

Mutable access to the Deref::Target of a value. Read more

Calls .tap() only in debug builds, and is erased in release builds.

Calls .tap_mut() only in debug builds, and is erased in release builds. Read more

Calls .tap_borrow() only in debug builds, and is erased in release builds. Read more

Calls .tap_borrow_mut() only in debug builds, and is erased in release builds. Read more

Calls .tap_ref() only in debug builds, and is erased in release builds. Read more

Calls .tap_ref_mut() only in debug builds, and is erased in release builds. Read more

Calls .tap_deref() only in debug builds, and is erased in release builds. Read more

Calls .tap_deref_mut() only in debug builds, and is erased in release builds. Read more

Attempts to convert self into T using TryInto<T>. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more