aboutsummaryrefslogtreecommitdiff
path: root/src/utils.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/utils.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/utils.rs')
-rw-r--r--src/utils.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/utils.rs b/src/utils.rs
index aa19d46..eb10d8b 100644
--- a/src/utils.rs
+++ b/src/utils.rs
@@ -2,9 +2,9 @@
use super::*;
/// Access to the steam utils interface
-pub struct Utils {
+pub struct Utils<Manager> {
pub(crate) utils: *mut sys::ISteamUtils,
- pub(crate) _client: Arc<ClientInner>,
+ pub(crate) _inner: Arc<Inner<Manager>>,
}
pub enum NotificationPosition {
@@ -14,7 +14,7 @@ pub enum NotificationPosition {
BottomRight,
}
-impl Utils {
+impl <Manager> Utils<Manager> {
/// Returns the app ID of the current process
pub fn app_id(&self) -> AppId {
unsafe {