pub struct ColdStore { /* private fields */ }Implementations§
Source§impl ColdStore
impl ColdStore
pub fn memory() -> Result<Self>
pub fn fs(root: impl AsRef<Path>) -> Result<Self>
pub fn s3_from_env() -> Result<Self>
pub fn s3_from_env_with_root(root_override: Option<&str>) -> Result<Self>
pub fn from_env() -> Result<Option<ColdStoreHandle>>
pub async fn write_chunk(&self, path: &str, payload: &[u8]) -> Result<u64>
pub async fn delete_chunk(&self, path: &str) -> Result<()>
pub async fn remove_all(&self, path: &str) -> Result<()>
pub async fn read_chunk_range( &self, chunk: &ColdChunkRef, read_start_offset: u64, len: usize, ) -> Result<Vec<u8>>
pub async fn read_object_range( &self, object: &ObjectPayloadRef, read_start_offset: u64, len: usize, ) -> Result<Vec<u8>>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ColdStore
impl !RefUnwindSafe for ColdStore
impl Send for ColdStore
impl Sync for ColdStore
impl Unpin for ColdStore
impl UnsafeUnpin for ColdStore
impl !UnwindSafe for ColdStore
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more