pub struct Config {Show 21 fields
pub backend: EngineBackendKind,
pub relay_url: String,
pub username: String,
pub password: String,
pub room_id: Option<String>,
pub room_name: String,
pub max_players: u8,
pub max_games: usize,
pub state_delta: bool,
pub format: GameFormat,
pub auto_start: bool,
pub engine_enabled: bool,
pub host_plays: bool,
pub official_key: Option<String>,
pub room_password: Option<String>,
pub bot_enabled: bool,
pub bot_username: String,
pub forge_ai: bool,
pub reconnect_timeout_s: Option<u32>,
pub host_deck: DeckSelection,
pub bot_deck: DeckSelection,
}Fields§
§backend: EngineBackendKind§relay_url: String§username: String§password: String§room_id: Option<String>§room_name: String§max_players: u8§max_games: usize§state_delta: boolSend state patches instead of a full board per viewer. Off until every installed client can apply them; see #696.
format: GameFormat§auto_start: bool§engine_enabled: bool§host_plays: bool§official_key: Option<String>§room_password: Option<String>§bot_enabled: bool§bot_username: String§forge_ai: bool§reconnect_timeout_s: Option<u32>§host_deck: DeckSelection§bot_deck: DeckSelectionImplementations§
Source§impl Config
impl Config
pub fn from_env() -> Self
Sourcepub fn for_hosted_room(
relay_url: String,
password: String,
room_name: String,
format: GameFormat,
max_players: u8,
room_password: Option<String>,
reconnect_timeout_s: Option<u32>,
) -> Self
pub fn for_hosted_room( relay_url: String, password: String, room_name: String, format: GameFormat, max_players: u8, room_password: Option<String>, reconnect_timeout_s: Option<u32>, ) -> Self
Config for an embedded Forge room host (e.g. the Tauri desktop app):
reuse the caller’s relay connection, host the engine without taking a
seat, no bot. Deck fields are placeholders — unused when host_plays and
bot_enabled are false.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Config
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnsafeUnpin for Config
impl UnwindSafe for Config
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<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<F, W, T, D> Deserialize<With<T, W>, D> for F
impl<F, W, T, D> Deserialize<With<T, W>, D> for F
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
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>
Gets the layout of the type.