Struct backroll::GameInput [−][src]
pub struct GameInput<T> { /* fields omitted */ }
Implementations
impl<T: Default> GameInput<T>
[src]
impl<T: Default> GameInput<T>
[src]pub fn get(&self, player: BackrollPlayerHandle) -> Result<&T, BackrollError>
[src]
pub fn get(&self, player: BackrollPlayerHandle) -> Result<&T, BackrollError>
[src]Gets the input for a specific player. Returns InvalidPlayer if the provided player handle does not correspond to a valid player.
pub fn is_disconnected(
&self,
player: BackrollPlayerHandle
) -> Result<bool, BackrollError>
[src]
pub fn is_disconnected(
&self,
player: BackrollPlayerHandle
) -> Result<bool, BackrollError>
[src]Checks if a given player is currently disconnected. Returns InvalidPlayer if the provided player handle does not correspond to a valid player.
Trait Implementations
impl<T: Eq> Eq for GameInput<T>
[src]
impl<T> StructuralEq for GameInput<T>
[src]
impl<T> StructuralPartialEq for GameInput<T>
[src]
Auto Trait Implementations
impl<T> RefUnwindSafe for GameInput<T> where
T: RefUnwindSafe,
T: RefUnwindSafe,
impl<T> Send for GameInput<T> where
T: Send,
T: Send,
impl<T> Sync for GameInput<T> where
T: Sync,
T: Sync,
impl<T> Unpin for GameInput<T> where
T: Unpin,
T: Unpin,
impl<T> UnwindSafe for GameInput<T> where
T: UnwindSafe,
T: UnwindSafe,
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> Instrument for T
[src]
impl<T> Instrument for T
[src]fn instrument(self, span: Span) -> Instrumented<Self>
[src]
fn instrument(self, span: Span) -> Instrumented<Self>
[src]Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
fn in_current_span(self) -> Instrumented<Self>
[src]
fn in_current_span(self) -> Instrumented<Self>
[src]impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,