diff options
| author | Matthew Collins <[email protected]> | 2018-02-27 20:30:40 +0000 |
|---|---|---|
| committer | Matthew Collins <[email protected]> | 2018-02-27 20:30:40 +0000 |
| commit | e99c0e0adc490b94b037838757bfa6647f3c3568 (patch) | |
| tree | 1ab022877d951a111820b5c0a1d35facac3ef6ee /src/user.rs | |
| parent | Add accessors for `SteamId`'s inner values (diff) | |
| download | steamworks-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.rs | 6 |
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 { |