pub struct CotpConnectionParameters {
pub max_reassembled_payload_size: usize,
}Expand description
Provides a set of parameters used to tune timers or prevent the runaway consumption or resources due to a malicious client.
Fields§
§max_reassembled_payload_size: usizeA limit on the reassembled payload. If this is exceeded, an error will be raised on the read operation.
Defaults to 1MB for payload plus a 1024 byte overhead to account for headers. Only applies to inbound data.
Trait Implementations§
Source§impl Clone for CotpConnectionParameters
impl Clone for CotpConnectionParameters
Source§fn clone(&self) -> CotpConnectionParameters
fn clone(&self) -> CotpConnectionParameters
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 Debug for CotpConnectionParameters
impl Debug for CotpConnectionParameters
Source§impl Default for CotpConnectionParameters
impl Default for CotpConnectionParameters
Source§impl PartialEq for CotpConnectionParameters
impl PartialEq for CotpConnectionParameters
impl StructuralPartialEq for CotpConnectionParameters
Auto Trait Implementations§
impl Freeze for CotpConnectionParameters
impl RefUnwindSafe for CotpConnectionParameters
impl Send for CotpConnectionParameters
impl Sync for CotpConnectionParameters
impl Unpin for CotpConnectionParameters
impl UnsafeUnpin for CotpConnectionParameters
impl UnwindSafe for CotpConnectionParameters
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