pub struct RelayAddressGeneratorRanges {
pub relay_address: IpAddr,
pub min_port: u16,
pub max_port: u16,
pub max_retries: u16,
pub address: String,
pub net: Arc<Net>,
}Expand description
RelayAddressGeneratorRanges can be used to only allocate connections inside a defined port range.
Fields§
§relay_address: IpAddrrelay_address is the IP returned to the user when the relay is created.
min_port: u16min_port the minimum port to allocate.
max_port: u16max_port the maximum (inclusive) port to allocate.
max_retries: u16max_retries the amount of tries to allocate a random port in the defined range.
address: Stringaddress is passed to Listen/ListenPacket when creating the Relay.
net: Arc<Net>Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for RelayAddressGeneratorRanges
impl !UnwindSafe for RelayAddressGeneratorRanges
impl Freeze for RelayAddressGeneratorRanges
impl Send for RelayAddressGeneratorRanges
impl Sync for RelayAddressGeneratorRanges
impl Unpin for RelayAddressGeneratorRanges
impl UnsafeUnpin for RelayAddressGeneratorRanges
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