pub struct EndpointFlags {
pub listens: Vec<SocketAddr>,
pub publishes: Vec<(SocketAddr, VirtualEndpoint)>,
pub offline: bool,
}Expand description
Endpoint exposure flags from CLI args. Built by Options::parse,
consumed by build_registry.
Fields§
§listens: Vec<SocketAddr>--listen addresses: each maps its own port as a virtual port.
publishes: Vec<(SocketAddr, VirtualEndpoint)>-p mappings: (outer socket address, inner virtual endpoint).
A bare outer port binds all interfaces; outer port 0 takes an
ephemeral port, resolved at bind time.
offline: bool--offline: socketless run, conflicts with both lists above.
Trait Implementations§
Source§impl Clone for EndpointFlags
impl Clone for EndpointFlags
Source§impl Debug for EndpointFlags
impl Debug for EndpointFlags
Auto Trait Implementations§
impl Freeze for EndpointFlags
impl RefUnwindSafe for EndpointFlags
impl Send for EndpointFlags
impl Sync for EndpointFlags
impl Unpin for EndpointFlags
impl UnsafeUnpin for EndpointFlags
impl UnwindSafe for EndpointFlags
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