pub struct NetOptions {
pub allow_relay: bool,
}Expand description
How to open the coop network.
Fields§
§allow_relay: boolWhether a link may fall back to Arcane’s TURN relay when no direct
path exists. false keeps every link direct: a pair of players that
cannot connect directly gets NetEvent::RelayRefused instead.
Trait Implementations§
Source§impl Clone for NetOptions
impl Clone for NetOptions
impl Copy for NetOptions
Source§impl Debug for NetOptions
impl Debug for NetOptions
Source§impl Default for NetOptions
impl Default for NetOptions
impl Eq for NetOptions
Source§impl PartialEq for NetOptions
impl PartialEq for NetOptions
impl StructuralPartialEq for NetOptions
Auto Trait Implementations§
impl Freeze for NetOptions
impl RefUnwindSafe for NetOptions
impl Send for NetOptions
impl Sync for NetOptions
impl Unpin for NetOptions
impl UnsafeUnpin for NetOptions
impl UnwindSafe for NetOptions
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