pub struct MemoryRelay(/* private fields */);Expand description
A relay in this process.
Implementations§
Source§impl MemoryRelay
impl MemoryRelay
Sourcepub fn new(seed: u64) -> MemoryRelay
pub fn new(seed: u64) -> MemoryRelay
An empty relay; seed starts its room codes.
Sourcepub fn with_store(seed: u64, store: Box<dyn Store>) -> MemoryRelay
pub fn with_store(seed: u64, store: Box<dyn Store>) -> MemoryRelay
An empty relay that keeps rooms’ towns in store.
Sourcepub fn connect(&self) -> MemoryConnection
pub fn connect(&self) -> MemoryConnection
A new game’s connection to it.
Trait Implementations§
Source§impl Clone for MemoryRelay
impl Clone for MemoryRelay
Source§fn clone(&self) -> MemoryRelay
fn clone(&self) -> MemoryRelay
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 moreAuto Trait Implementations§
impl !RefUnwindSafe for MemoryRelay
impl !Send for MemoryRelay
impl !Sync for MemoryRelay
impl !UnwindSafe for MemoryRelay
impl Freeze for MemoryRelay
impl Unpin for MemoryRelay
impl UnsafeUnpin for MemoryRelay
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