Struct steamworks::SingleClient
source · pub struct SingleClient<Manager = ClientManager> { /* private fields */ }
Expand description
Allows access parts of the steam api that can only be called on a single thread at any given time.
Implementations§
source§impl<M> SingleClient<M>where
M: Manager,
impl<M> SingleClient<M>where
M: Manager,
sourcepub fn run_callbacks(&self)
pub fn run_callbacks(&self)
Runs any currently pending callbacks
This runs all currently pending callbacks on the current thread.
This should be called frequently (e.g. once per a frame) in order to reduce the latency between recieving events.
Trait Implementations§
Auto Trait Implementations§
impl<Manager> RefUnwindSafe for SingleClient<Manager>where
Manager: RefUnwindSafe,
impl<Manager = ClientManager> !Sync for SingleClient<Manager>
impl<Manager> Unpin for SingleClient<Manager>
impl<Manager> UnwindSafe for SingleClient<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