pub struct EndpointConfig {
pub max_msg_size: usize,
pub buffer_grow_space: usize,
pub window_size: u32,
pub new_set_unsent_action: NewSetUnsent,
pub resend_predicate: Box<dyn FnMut(u32, Duration) -> bool>,
pub min_heartbeat_period: Duration,
}
Expand description
This object contains all the configuration information required by the Endpoint
struct. default()
will return a new configuration object with default values
which can be directly manipulated before being passed to the Endpoint.
Fields§
§max_msg_size: usize
§buffer_grow_space: usize
§window_size: u32
§new_set_unsent_action: NewSetUnsent
§resend_predicate: Box<dyn FnMut(u32, Duration) -> bool>
§min_heartbeat_period: Duration
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for EndpointConfig
impl !RefUnwindSafe for EndpointConfig
impl !Send for EndpointConfig
impl !Sync for EndpointConfig
impl Unpin for EndpointConfig
impl !UnwindSafe for EndpointConfig
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