Skip to main content

ObjectSink

Trait ObjectSink 

Source
pub trait ObjectSink: Send {
    // Required methods
    fn put(&mut self, relative: &str, data: &[u8]) -> Result<()>;
    fn root(&self) -> String;
}
Expand description

Where packaged objects (segments, manifests) are written.

Required Methods§

Source

fn put(&mut self, relative: &str, data: &[u8]) -> Result<()>

Write data at a path relative to the sink root.

Source

fn root(&self) -> String

Human-readable root (directory or base URL) for logging.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§