pub struct Hub { /* private fields */ }Implementations§
Source§impl Hub
impl Hub
pub fn new() -> Self
pub fn client(&self, user: User) -> Fake
pub fn set_server_time(&self, seconds: Option<u64>)
pub fn befriend(&self, a: User, b: User)
pub fn set_loss(&self, seed: u64, per_mille: u32)
pub fn invite(&self, from: User, to: User, lobby: Lobby)
pub fn fail_session(&self, a: User, b: User, reason: Option<i32>)
pub fn attached(&self, board: Board, user: User) -> Option<Ugc>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Hub
impl RefUnwindSafe for Hub
impl Send for Hub
impl Sync for Hub
impl Unpin for Hub
impl UnsafeUnpin for Hub
impl UnwindSafe for Hub
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