pub struct ReceiverConfig {
pub max_chunk_size: u32,
}Expand description
Receiver-side configuration.
Fields§
§max_chunk_size: u32Maximum accepted FileChunk.data length (bytes).
0means “no limit / accept any size” (back-compat default).- Non-zero values cause oversize chunks to be rejected as a protocol error.
Trait Implementations§
Source§impl Clone for ReceiverConfig
impl Clone for ReceiverConfig
Source§fn clone(&self) -> ReceiverConfig
fn clone(&self) -> ReceiverConfig
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 ReceiverConfig
impl Debug for ReceiverConfig
Source§impl Default for ReceiverConfig
impl Default for ReceiverConfig
Source§fn default() -> ReceiverConfig
fn default() -> ReceiverConfig
Returns the “default value” for a type. Read more
Source§impl PartialEq for ReceiverConfig
impl PartialEq for ReceiverConfig
impl Copy for ReceiverConfig
impl Eq for ReceiverConfig
impl StructuralPartialEq for ReceiverConfig
Auto Trait Implementations§
impl Freeze for ReceiverConfig
impl RefUnwindSafe for ReceiverConfig
impl Send for ReceiverConfig
impl Sync for ReceiverConfig
impl Unpin for ReceiverConfig
impl UnsafeUnpin for ReceiverConfig
impl UnwindSafe for ReceiverConfig
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