pub struct ServerConfig {Show 19 fields
pub host: String,
pub port: u16,
pub health_port: u16,
pub max_rooms: usize,
pub server_key: String,
pub official_key: Option<String>,
pub events_dir: Option<String>,
pub capture_dir: Option<String>,
pub capture_max_gb: u64,
pub deck_hub_enabled: bool,
pub hub_url: Option<String>,
pub hub_token: Option<String>,
pub hub_jwks_url: Option<String>,
pub direct_transport: bool,
pub ice_servers: Vec<TransportIceServer>,
pub art_dir: Option<String>,
pub art_port: u16,
pub art_base_url: Option<String>,
pub lan_advertise: bool,
}Fields§
§host: String§port: u16§health_port: u16§max_rooms: usize§server_key: String§official_key: Option<String>§events_dir: Option<String>§capture_dir: Option<String>§capture_max_gb: u64§deck_hub_enabled: bool§hub_url: Option<String>The hub takes the analytics feed and, with DECK_HUB, deck-play
evidence. Env names keep the older DECK_PLAYS spelling.
hub_token: Option<String>§hub_jwks_url: Option<String>§direct_transport: boolOpt-in. Off, the relay never sends a roster.
ice_servers: Vec<TransportIceServer>ICE servers handed to the browser plane. See parse_ice_servers.
art_dir: Option<String>Where this relay keeps card art. Set it and the relay serves
/scryfall-img/ for everyone on the network, which is the point of
running one: nobody else has to hold 8GB of images.
art_port: u16§art_base_url: Option<String>An absolute url, for a deployment behind a proxy where the port this binds is not the one a client reaches. On a LAN nobody sets this: the mDNS record already carries the port and the client already knows the host it connected to.
lan_advertise: boolAnswer mDNS, so four desktops on a network find this box without anyone typing its address.
Implementations§
Source§impl ServerConfig
impl ServerConfig
pub fn from_env() -> Self
pub fn capture_max_bytes(&self) -> u64
Auto Trait Implementations§
impl Freeze for ServerConfig
impl RefUnwindSafe for ServerConfig
impl Send for ServerConfig
impl Sync for ServerConfig
impl Unpin for ServerConfig
impl UnsafeUnpin for ServerConfig
impl UnwindSafe for ServerConfig
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