pub struct ServerMode {
pub local_only: bool,
}Expand description
v0.5.17: relay-server mode toggles. Default = full federation
(current behavior). local_only strips phonebook + well-known
surfaces so the relay is invisible from off-box and from any
directory-scraping agent on the same box.
Fields§
§local_only: boolWhen true, skip phonebook listing + .well-known/wire/agent +
.well-known/agent-card.json + landing/stats pages. Pair this
with a loopback bind (--local-only enforces this at the CLI
layer) for genuinely within-machine traffic.
Trait Implementations§
Source§impl Clone for ServerMode
impl Clone for ServerMode
Source§fn clone(&self) -> ServerMode
fn clone(&self) -> ServerMode
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ServerMode
impl Debug for ServerMode
Source§impl Default for ServerMode
impl Default for ServerMode
Source§fn default() -> ServerMode
fn default() -> ServerMode
Returns the “default value” for a type. Read more
impl Copy for ServerMode
Auto Trait Implementations§
impl Freeze for ServerMode
impl RefUnwindSafe for ServerMode
impl Send for ServerMode
impl Sync for ServerMode
impl Unpin for ServerMode
impl UnsafeUnpin for ServerMode
impl UnwindSafe for ServerMode
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