pub struct NetworkOptions {
pub port: Option<u16>,
pub port_range: Option<(u16, u16)>,
pub bind_addresses: Option<Vec<IpAddr>>,
pub interfaces: Option<Vec<String>>,
pub include_loopback: bool,
pub public_addresses: Vec<PublicAddress>,
pub public_srflx: bool,
pub ice_lite: bool,
pub ice_timeouts: Option<(Option<Duration>, Option<Duration>, Option<Duration>)>,
pub max_message_size: Option<u32>,
pub tcp_port: Option<u16>,
pub mdns: MdnsMode,
}Fields§
§port: Option<u16>§port_range: Option<(u16, u16)>§bind_addresses: Option<Vec<IpAddr>>§interfaces: Option<Vec<String>>§include_loopback: bool§public_addresses: Vec<PublicAddress>§public_srflx: boolpublicAddressCandidate: "srflx": advertise the public address as a
server-reflexive candidate beside the host one.
ice_lite: bool§ice_timeouts: Option<(Option<Duration>, Option<Duration>, Option<Duration>)>§max_message_size: Option<u32>§tcp_port: Option<u16>tcpPort: ICE over TCP on a listener on this port (0: one the OS
picks).
mdns: MdnsModeImplementations§
Source§impl NetworkOptions
impl NetworkOptions
pub fn parse(arg: NetworkArg) -> Result<Self, Error>
Sourcepub fn public_for(&self, private: IpAddr) -> Option<IpAddr>
pub fn public_for(&self, private: IpAddr) -> Option<IpAddr>
The public address a private one is advertised as, if any.
Trait Implementations§
Source§impl Clone for NetworkOptions
impl Clone for NetworkOptions
Source§impl Debug for NetworkOptions
impl Debug for NetworkOptions
Auto Trait Implementations§
impl Forget for NetworkOptions
impl Freeze for NetworkOptionswhere
*const u8 is !null: Freeze,
PhantomData<IpAddr>: Freeze,
PhantomData<String>: Freeze,
PhantomData<PublicAddress>: Freeze,
impl Move for NetworkOptions
impl RefUnwindSafe for NetworkOptions
impl Send for NetworkOptionswhere
RawVecInner: Send,
impl Sync for NetworkOptionswhere
RawVecInner: Sync,
impl Unpin for NetworkOptions
impl UnsafeUnpin for NetworkOptionswhere
*const u8 is !null: UnsafeUnpin,
PhantomData<IpAddr>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
PhantomData<PublicAddress>: UnsafeUnpin,
impl UnwindSafe for NetworkOptionswhere
RawVecInner: UnwindSafe,
Blanket Implementations§
Source§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
Source§type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
Source§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata,
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> LayoutRaw for T
impl<T> LayoutRaw for T
Source§fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
Returns the layout of the type.
Source§impl<T, N1, N2> Niching<NichedOption<T, N1>> for N2
impl<T, N1, N2> Niching<NichedOption<T, N1>> for N2
Source§unsafe fn is_niched(niched: *const NichedOption<T, N1>) -> bool
unsafe fn is_niched(niched: *const NichedOption<T, N1>) -> bool
Returns whether the given value has been niched. Read more
Source§fn resolve_niched(out: Place<NichedOption<T, N1>>)
fn resolve_niched(out: Place<NichedOption<T, N1>>)
Writes data to
out indicating that a T is niched.