pub struct Client { /* private fields */ }Implementations§
Source§impl Client
impl Client
pub fn new(b: Bucket) -> Result<Client>
pub fn bucket(&self) -> &Bucket
Sourcepub fn create_bucket(&self) -> Result<()>
pub fn create_bucket(&self) -> Result<()>
Create the bucket; one that exists and is ours is fine.
Sourcepub fn head(&self, key: &str) -> Result<Option<u64>>
pub fn head(&self, key: &str) -> Result<Option<u64>>
The object’s size, or None when it does not exist.
Sourcepub fn get(&self, key: &str) -> Result<(u64, Box<dyn Read + Send>)>
pub fn get(&self, key: &str) -> Result<(u64, Box<dyn Read + Send>)>
A reader over the object’s bytes.
pub fn delete(&self, key: &str) -> Result<()>
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Client
impl !UnwindSafe for Client
impl Freeze for Client
impl Send for Client
impl Sync for Client
impl Unpin for Client
impl UnsafeUnpin for Client
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