Struct steamworks::RemotePlaySession
source · pub struct RemotePlaySession<Manager> { /* private fields */ }
Implementations§
source§impl<Manager> RemotePlaySession<Manager>
impl<Manager> RemotePlaySession<Manager>
sourcepub fn user(&self) -> SteamId
pub fn user(&self) -> SteamId
Get the user associated with this Remote Play session. This is either the logged in user or a friend when Remote Playing Together.
sourcepub fn client_name(&self) -> Option<String>
pub fn client_name(&self) -> Option<String>
Gets the client device name for this session. Returns None
if the session has expired
sourcepub fn client_form_factor(&self) -> Option<SteamDeviceFormFactor>
pub fn client_form_factor(&self) -> Option<SteamDeviceFormFactor>
Gets the client device form factor for this session. Returns None
if the session has expired or if the form
factor is unknown
sourcepub fn client_resolution(&self) -> Option<(u32, u32)>
pub fn client_resolution(&self) -> Option<(u32, u32)>
Gets the client device resolution for this session. Returns None
if the session has expired
Auto Trait Implementations§
impl<Manager> RefUnwindSafe for RemotePlaySession<Manager>where
Manager: RefUnwindSafe,
impl<Manager> !Send for RemotePlaySession<Manager>
impl<Manager> !Sync for RemotePlaySession<Manager>
impl<Manager> Unpin for RemotePlaySession<Manager>
impl<Manager> UnwindSafe for RemotePlaySession<Manager>where
Manager: RefUnwindSafe,
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