pub struct Health { /* private fields */ }Implementations§
Source§impl Health
impl Health
pub fn new( peer: User, channel: u32, every_ms: u64, timeout_ms: u64, now_ms: u64, ) -> Result<Self, Error>
pub fn in_lobby(self, lobby: Lobby) -> Self
pub fn reconnect_window(self, window_ms: u64) -> Self
pub fn peer(&self) -> User
pub fn lost(&self) -> Option<Lost>
pub fn ended(&self) -> Option<Ending>
pub fn heard(&mut self, now_ms: u64) -> Option<Event>
pub fn tick( &mut self, steam: &mut impl SteamApi, now_ms: u64, ) -> Result<Vec<Event>, Error>
pub fn observe(&mut self, event: &Event, now_ms: u64) -> Option<Event>
pub fn leave(&mut self, steam: &mut impl SteamApi) -> Result<(), Error>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Health
impl RefUnwindSafe for Health
impl Send for Health
impl Sync for Health
impl Unpin for Health
impl UnsafeUnpin for Health
impl UnwindSafe for Health
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