Struct ClientServer
pub struct ClientServer {
pub name: Option<String>,
pub address: Option<String>,
pub integrated_local: bool,
pub save_folder: Option<String>,
}Expand description
The connected server, not the reconnect target of an earlier session.
Fields§
§name: Option<String>The integrated world’s display name. External connections do not retain
a server display name; this is None, never the connecting player’s name.
address: Option<String>The joined address, with friend-invite secrets redacted. Memory
connections have no address (None), not a made-up socket address.
integrated_local: boolThis window owns the connected integrated server. A loopback address alone does not make this true; a splitscreen guest does not own it.
save_folder: Option<String>Folder name relative to the instance’s saves directory for the owned
integrated world. Renaming the world in-game leaves this key unchanged.
External connections and splitscreen guests return None.
Trait Implementations§
§impl Clone for ClientServer
impl Clone for ClientServer
§fn clone(&self) -> ClientServer
fn clone(&self) -> ClientServer
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 more§impl Debug for ClientServer
impl Debug for ClientServer
impl Eq for ClientServer
§impl PartialEq for ClientServer
impl PartialEq for ClientServer
impl StructuralPartialEq for ClientServer
Auto Trait Implementations§
impl Freeze for ClientServer
impl RefUnwindSafe for ClientServer
impl Send for ClientServer
impl Sync for ClientServer
impl Unpin for ClientServer
impl UnsafeUnpin for ClientServer
impl UnwindSafe for ClientServer
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