pub struct TestClient { /* private fields */ }Implementations§
Source§impl TestClient
impl TestClient
pub fn new<S: Into<String>>(addr: S, mode: ClientMode) -> Self
pub fn player<S: Into<String>>(addr: S) -> Self
pub fn transactor<S: Into<String>>(addr: S) -> Self
pub fn validator<S: Into<String>>(addr: S) -> Self
pub fn handle_updated_context( &mut self, ctx: &GameContext, ) -> Result<Vec<Event>>
pub fn get_mode(&self) -> ClientMode
pub fn get_addr(&self) -> String
pub fn decrypt( &mut self, ctx: &GameContext, random_id: usize, ) -> Result<HashMap<usize, String>>
pub fn secret_state(&self) -> &SecretState
pub fn custom_event<E: CustomEvent>(&self, custom_event: E) -> Event
pub fn answer( &mut self, decision_id: DecisionId, answer: String, ) -> Result<Event>
Auto Trait Implementations§
impl !RefUnwindSafe for TestClient
impl !UnwindSafe for TestClient
impl Freeze for TestClient
impl Send for TestClient
impl Sync for TestClient
impl Unpin for TestClient
impl UnsafeUnpin for TestClient
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