pub struct RelayConfig {
pub bind_addr: SocketAddr,
pub max_allocations: usize,
pub allocation_lifetime: u64,
pub idle_timeout: u64,
pub auth_required: bool,
}Expand description
Relay server configuration
Fields§
§bind_addr: SocketAddrBind address for the relay server
max_allocations: usizeMaximum number of allocations
allocation_lifetime: u64Allocation lifetime (seconds)
idle_timeout: u64Idle timeout (seconds)
auth_required: boolEnable authentication
Trait Implementations§
Source§impl Clone for RelayConfig
impl Clone for RelayConfig
Source§fn clone(&self) -> RelayConfig
fn clone(&self) -> RelayConfig
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 RelayConfig
impl Debug for RelayConfig
Auto Trait Implementations§
impl Freeze for RelayConfig
impl RefUnwindSafe for RelayConfig
impl Send for RelayConfig
impl Sync for RelayConfig
impl Unpin for RelayConfig
impl UnwindSafe for RelayConfig
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