pub struct BincodeConfig {
pub limit: usize,
pub buf_size: usize,
}Expand description
Config for the extractor
use actix_bincode::config::BincodeConfig;
use actix_web::App;
let config = BincodeConfig::default();
let app = App::new().app_data(config); Fields§
§limit: usizeThe maximum size in bytes of a request payload that can be deserialized.
By default set to DEFAULT_LIMIT_BYTES
buf_size: usizeThe default buffer size that gets allocated for single payload.
By default set to same as user set limit or DEFAULT_LIMIT_BYTES
This size may be too much for most payloads, but avoids reallocating while reading payload
Implementations§
Trait Implementations§
Source§impl Clone for BincodeConfig
impl Clone for BincodeConfig
Source§fn clone(&self) -> BincodeConfig
fn clone(&self) -> BincodeConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Default for BincodeConfig
impl Default for BincodeConfig
impl Copy for BincodeConfig
Auto Trait Implementations§
impl Freeze for BincodeConfig
impl RefUnwindSafe for BincodeConfig
impl Send for BincodeConfig
impl Sync for BincodeConfig
impl Unpin for BincodeConfig
impl UnwindSafe for BincodeConfig
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