Struct tcp_handler::config::Config
source · pub struct Config {
pub max_packet_size: usize,
}
Expand description
Fields§
§max_packet_size: usize
max_packet_size
is the maximum size of a packet in bytes.
It is used to limit the size of a packet that can be received or sent.
Default value is 1 << 20
.
Example
use tcp_handler::config::Config;
let config = Config {
max_packet_size: 1 << 10,
};
Trait Implementations§
impl Copy for Config
Auto Trait Implementations§
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnwindSafe for Config
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