#[non_exhaustive]pub struct FramerConfig {
pub max_buffered_object_bytes: usize,
}Expand description
Configuration for ObjectFramer.
Construct with FramerConfig::default and adjust fields, or with
FramerConfig::new and the builder setters. The struct is
#[non_exhaustive] so later releases can add knobs without a break;
that also means a struct literal no longer compiles from outside this
crate.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.max_buffered_object_bytes: usizeLargest object the framer will buffer whole, in bytes. Objects
larger than this are streamed through as
FramerOut::Passthrough and are not individually addressable.
Default 4 MiB.
Implementations§
Source§impl FramerConfig
impl FramerConfig
Sourcepub fn with_max_buffered_object_bytes(self, bytes: usize) -> Self
pub fn with_max_buffered_object_bytes(self, bytes: usize) -> Self
Set the largest object the framer will buffer whole.
Trait Implementations§
Source§impl Clone for FramerConfig
impl Clone for FramerConfig
Source§fn clone(&self) -> FramerConfig
fn clone(&self) -> FramerConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for FramerConfig
impl Debug for FramerConfig
Auto Trait Implementations§
impl Freeze for FramerConfig
impl RefUnwindSafe for FramerConfig
impl Send for FramerConfig
impl Sync for FramerConfig
impl Unpin for FramerConfig
impl UnsafeUnpin for FramerConfig
impl UnwindSafe for FramerConfig
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