pub struct NakamaState {
pub socket: Option<Socket>,
pub username: Option<String>,
pub token: Option<String>,
pub refresh_token: Option<String>,
pub leaderboards: HashMap<String, Rc<ApiLeaderboardRecordList>>,
pub match_id: Option<String>,
pub rpc_response: Option<String>,
pub error: Option<String>,
pub next_request: Option<Box<dyn AsyncRequestTick>>,
/* private fields */
}Fields§
§socket: Option<Socket>§username: Option<String>§token: Option<String>§refresh_token: Option<String>§leaderboards: HashMap<String, Rc<ApiLeaderboardRecordList>>Stores the last received leaderboard record list for each leaderboard
match_id: Option<String>§rpc_response: Option<String>§error: Option<String>§next_request: Option<Box<dyn AsyncRequestTick>>Implementations§
Source§impl NakamaState
impl NakamaState
pub fn reset(&mut self)
pub fn make_request<T, F>(&mut self, request: RestRequest<T>, on_success: F)
Auto Trait Implementations§
impl !Freeze for NakamaState
impl !RefUnwindSafe for NakamaState
impl !Send for NakamaState
impl !Sync for NakamaState
impl Unpin for NakamaState
impl !UnwindSafe for NakamaState
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