[−][src]Struct prongs::backend_gilrs::SchemaGilrs
Methods
impl<TUserAction> SchemaGilrs<TUserAction> where
TUserAction: Clone + Serialize,
[src]
impl<TUserAction> SchemaGilrs<TUserAction> where
TUserAction: Clone + Serialize,
pub fn new(name: &str) -> Self
[src]
pub fn new(name: &str) -> Self
pub fn assign_controller(&mut self, event: &Event, iaf: InputTypeFlags) -> bool
[src]
pub fn assign_controller(&mut self, event: &Event, iaf: InputTypeFlags) -> bool
pub fn assign_input(
&mut self,
event: &Event,
action: TUserAction,
iaf: InputTypeFlags
) -> bool
[src]
pub fn assign_input(
&mut self,
event: &Event,
action: TUserAction,
iaf: InputTypeFlags
) -> bool
pub fn process_event(
&mut self,
event: &Event
) -> Option<ProcessingResult<TUserAction>>
[src]
pub fn process_event(
&mut self,
event: &Event
) -> Option<ProcessingResult<TUserAction>>
pub fn set_player_id(&mut self, player_id: Option<usize>)
[src]
pub fn set_player_id(&mut self, player_id: Option<usize>)
pub fn player_id(&self) -> Option<usize>
[src]
pub fn player_id(&self) -> Option<usize>
pub fn controller_id(&self) -> Option<usize>
[src]
pub fn controller_id(&self) -> Option<usize>
Trait Implementations
impl<TUserAction> Serialize for SchemaGilrs<TUserAction> where
TUserAction: Clone + Serialize,
TUserAction: Serialize,
[src]
impl<TUserAction> Serialize for SchemaGilrs<TUserAction> where
TUserAction: Clone + Serialize,
TUserAction: Serialize,
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
impl<'de, TUserAction> Deserialize<'de> for SchemaGilrs<TUserAction> where
TUserAction: Clone + Serialize,
TUserAction: Deserialize<'de>,
[src]
impl<'de, TUserAction> Deserialize<'de> for SchemaGilrs<TUserAction> where
TUserAction: Clone + Serialize,
TUserAction: Deserialize<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Auto Trait Implementations
impl<TUserAction> Send for SchemaGilrs<TUserAction> where
TUserAction: Send,
impl<TUserAction> Send for SchemaGilrs<TUserAction> where
TUserAction: Send,
impl<TUserAction> Sync for SchemaGilrs<TUserAction> where
TUserAction: Sync,
impl<TUserAction> Sync for SchemaGilrs<TUserAction> where
TUserAction: Sync,
Blanket Implementations
impl<T, U> Into for T where
U: From<T>,
[src]
impl<T, U> Into for T where
U: From<T>,
impl<T> From for T
[src]
impl<T> From for T
impl<T, U> TryFrom for T where
T: From<U>,
[src]
impl<T, U> TryFrom for T where
T: From<U>,
type Error = !
🔬 This is a nightly-only experimental API. (
try_from
)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
impl<T> Borrow for T where
T: ?Sized,
[src]
impl<T> Borrow for T where
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
impl<T> Any for T where
T: 'static + ?Sized,
fn get_type_id(&self) -> TypeId
[src]
fn get_type_id(&self) -> TypeId
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
🔬 This is a nightly-only experimental API. (
try_from
)The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
impl<T> BorrowMut for T where
T: ?Sized,
[src]
impl<T> BorrowMut for T where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
fn borrow_mut(&mut self) -> &mut T
impl<T> DeserializeOwned for T where
T: Deserialize<'de>,
[src]
impl<T> DeserializeOwned for T where
T: Deserialize<'de>,