pub struct RelayConnectionConfig {
pub max_frame_size: usize,
pub buffer_size: usize,
pub connection_timeout: Duration,
pub keep_alive_interval: Duration,
pub bandwidth_limit: u64,
}
Expand description
Configuration for relay connections
Fields§
§max_frame_size: usize
Maximum data frame size
buffer_size: usize
Buffer size for queued data
connection_timeout: Duration
Connection timeout
keep_alive_interval: Duration
Keep-alive interval
bandwidth_limit: u64
Maximum bandwidth per connection (bytes/sec)
Trait Implementations§
Source§impl Clone for RelayConnectionConfig
impl Clone for RelayConnectionConfig
Source§fn clone(&self) -> RelayConnectionConfig
fn clone(&self) -> RelayConnectionConfig
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 RelayConnectionConfig
impl Debug for RelayConnectionConfig
Auto Trait Implementations§
impl Freeze for RelayConnectionConfig
impl RefUnwindSafe for RelayConnectionConfig
impl Send for RelayConnectionConfig
impl Sync for RelayConnectionConfig
impl Unpin for RelayConnectionConfig
impl UnwindSafe for RelayConnectionConfig
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