pub struct Buckets { /* private fields */ }Expand description
Named collection of Storage instances for multi-bucket apps.
Cheaply cloneable (wraps Arc). Each entry is a Storage keyed by name.
Implementations§
Source§impl Buckets
impl Buckets
Sourcepub fn new(configs: &[BucketConfig]) -> Result<Self>
pub fn new(configs: &[BucketConfig]) -> Result<Self>
Create from a list of bucket configs.
Each config must have a unique, non-empty name field.
§Errors
Returns an error if any config has an empty name, if names are
duplicated, or if any individual BucketConfig fails validation.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Buckets
impl !RefUnwindSafe for Buckets
impl Send for Buckets
impl Sync for Buckets
impl Unpin for Buckets
impl UnsafeUnpin for Buckets
impl !UnwindSafe for Buckets
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