pub enum ObjectStore {
S3Bucket(S3Bucket),
LocalFsBucket(LocalFsBucket),
}Variants§
Implementations§
Source§impl ObjectStore
impl ObjectStore
pub fn new(name: &str, config: Config) -> Result<ObjectStore, String>
pub fn name(&self) -> &str
pub fn config(&self) -> &Config
pub fn println_path(&self) -> String
pub async fn list_files( &self, prefix: Option<&str>, recursive: bool, max_keys: Option<u32>, filter: &Option<FileObjectFilter>, ) -> Result<Vec<FileObject>, LakestreamError>
pub async fn list_files_with_callback( &self, prefix: Option<&str>, recursive: bool, max_files: Option<u32>, filter: &Option<FileObjectFilter>, callback: CallbackWrapper<FileObject>, ) -> Result<(), LakestreamError>
pub async fn get_object( &self, key: &str, data: &mut Vec<u8>, ) -> Result<(), LakestreamError>
Trait Implementations§
Source§impl CallbackItem for ObjectStore
impl CallbackItem for ObjectStore
fn println_path(&self) -> String
Source§impl Clone for ObjectStore
impl Clone for ObjectStore
Source§fn clone(&self) -> ObjectStore
fn clone(&self) -> ObjectStore
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ObjectStore
impl RefUnwindSafe for ObjectStore
impl Send for ObjectStore
impl Sync for ObjectStore
impl Unpin for ObjectStore
impl UnwindSafe for ObjectStore
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