ObjectDescriptor

Trait ObjectDescriptor 

Source
pub trait ObjectDescriptor:
    Debug
    + Send
    + Sync {
    // Required methods
    fn object(&self) -> Object;
    fn read_range(
        &self,
        range: ReadRange,
    ) -> impl Future<Output = ReadObjectResponse> + Send + Sync;
    fn headers(&self) -> HeaderMap;
}
Expand description

Defines the trait used to implement crate::object_descriptor::ObjectDescriptor.

Application developers may need to implement this trait to mock ObjectDescriptor. In other use-cases, application developers should use ObjectDescriptor directly, and need not be concerned with this trait or its implementations.

Required Methods§

Source

fn object(&self) -> Object

The implementation for ObjectDescriptor::object.

Source

fn read_range( &self, range: ReadRange, ) -> impl Future<Output = ReadObjectResponse> + Send + Sync

The implementation for ObjectDescriptor::read_range.

Source

fn headers(&self) -> HeaderMap

The implementation for ObjectDescriptor::headers.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§