pub struct RelayService {
pub enabled: Option<Flag>,
pub connection_duration_limit: Option<OptionalDuration>,
pub connection_data_limit: Option<OptionalInteger>,
pub reservation_ttl: Option<OptionalDuration>,
pub max_reservations: Option<OptionalInteger>,
pub max_circuits: Option<OptionalInteger>,
pub buffer_size: Option<OptionalInteger>,
pub max_reservations_per_ip: Option<OptionalInteger>,
pub max_reservations_per_asn: Option<OptionalInteger>,
}Expand description
Relay service configuration
Fields§
§enabled: Option<Flag>Enable relay service
connection_duration_limit: Option<OptionalDuration>Connection duration limit
connection_data_limit: Option<OptionalInteger>Connection data limit
reservation_ttl: Option<OptionalDuration>Reservation TTL
max_reservations: Option<OptionalInteger>Maximum reservations
max_circuits: Option<OptionalInteger>Maximum circuits
buffer_size: Option<OptionalInteger>Buffer size
max_reservations_per_ip: Option<OptionalInteger>Maximum reservations per IP
max_reservations_per_asn: Option<OptionalInteger>Maximum reservations per ASN
Trait Implementations§
Source§impl Clone for RelayService
impl Clone for RelayService
Source§fn clone(&self) -> RelayService
fn clone(&self) -> RelayService
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 RelayService
impl Debug for RelayService
Source§impl Default for RelayService
impl Default for RelayService
Source§fn default() -> RelayService
fn default() -> RelayService
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for RelayService
impl<'de> Deserialize<'de> for RelayService
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for RelayService
impl RefUnwindSafe for RelayService
impl Send for RelayService
impl Sync for RelayService
impl Unpin for RelayService
impl UnwindSafe for RelayService
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