aboutsummaryrefslogtreecommitdiff
path: root/src/user.rs
diff options
context:
space:
mode:
authorMatthew Collins <[email protected]>2018-02-27 20:30:40 +0000
committerMatthew Collins <[email protected]>2018-02-27 20:30:40 +0000
commite99c0e0adc490b94b037838757bfa6647f3c3568 (patch)
tree1ab022877d951a111820b5c0a1d35facac3ef6ee /src/user.rs
parentAdd accessors for `SteamId`'s inner values (diff)
downloadsteamworks-rs-e99c0e0adc490b94b037838757bfa6647f3c3568.tar.xz
steamworks-rs-e99c0e0adc490b94b037838757bfa6647f3c3568.zip
Try and make the accessors generic over the client and server
Diffstat (limited to 'src/user.rs')
-rw-r--r--src/user.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/user.rs b/src/user.rs
index fcd3e40..f589c2b 100644
--- a/src/user.rs
+++ b/src/user.rs
@@ -2,12 +2,12 @@
use super::*;
/// Access to the steam user interface
-pub struct User {
+pub struct User<Manager> {
pub(crate) user: *mut sys::ISteamUser,
- pub(crate) _client: Arc<ClientInner>,
+ pub(crate) _inner: Arc<Inner<Manager>>,
}
-impl User {
+impl <Manager> User<Manager> {
/// Returns the steam id of the current user
pub fn steam_id(&self) -> SteamId {
unsafe {