pub struct S3State {
pub account_id: String,
pub region: String,
pub buckets: HashMap<String, S3Bucket>,
pub notification_events: Vec<S3NotificationEvent>,
pub body_cache: Option<Arc<BodyCache>>,
}Fields§
§account_id: String§region: String§buckets: HashMap<String, S3Bucket>§notification_events: Vec<S3NotificationEvent>§body_cache: Option<Arc<BodyCache>>Implementations§
Source§impl S3State
impl S3State
pub fn new(account_id: &str, region: &str) -> Self
pub fn set_body_cache(&mut self, cache: Arc<BodyCache>)
pub fn reset(&mut self)
Sourcepub fn read_body_range(
&self,
body: &BodyRef,
offset: u64,
len: u64,
) -> Result<Bytes>
pub fn read_body_range( &self, body: &BodyRef, offset: u64, len: u64, ) -> Result<Bytes>
Read a byte range from the body without loading the full object into memory. Memory bodies are sliced directly; disk bodies are seek+read’d. Ranges bypass the body cache (the cache stores whole objects only).
Auto Trait Implementations§
impl Freeze for S3State
impl !RefUnwindSafe for S3State
impl Send for S3State
impl Sync for S3State
impl Unpin for S3State
impl UnsafeUnpin for S3State
impl !UnwindSafe for S3State
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