pub struct ExpressDataCacheConfig {
pub bucket_name: String,
pub source_bucket_name: String,
pub block_size: u64,
pub max_object_size: usize,
pub sse: ServerSideEncryption,
}Expand description
Configuration for a ExpressDataCache.
Fields§
§bucket_name: StringName of the S3 Express bucket to store the blocks.
source_bucket_name: StringName of the mounted bucket.
block_size: u64Size of data blocks.
max_object_size: usizeThe maximum size of an object to be cached.
sse: ServerSideEncryptionThe SSE to be used in PUT requests to the cache bucket.
Implementations§
Source§impl ExpressDataCacheConfig
impl ExpressDataCacheConfig
pub fn new(bucket_name: &str, source_bucket_name: &str) -> Self
pub fn block_size(self, block_size: u64) -> Self
pub fn max_object_size(self, max_object_size: usize) -> Self
pub fn sse(self, sse: ServerSideEncryption) -> Self
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ExpressDataCacheConfig
impl RefUnwindSafe for ExpressDataCacheConfig
impl Send for ExpressDataCacheConfig
impl Sync for ExpressDataCacheConfig
impl Unpin for ExpressDataCacheConfig
impl UnwindSafe for ExpressDataCacheConfig
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