Struct lnkit::game::Game [−][src]
pub struct Game<Input> { /* fields omitted */ }
Implementations
impl<Input> Game<Input> where
Input: TryFrom<Message> + Send + 'static,
<Input as TryFrom<Message>>::Error: Send,
[src]
impl<Input> Game<Input> where
Input: TryFrom<Message> + Send + 'static,
<Input as TryFrom<Message>>::Error: Send,
[src]pub fn new() -> Self
[src]
pub async fn send<Output>(&self, id: Option<u128>, output: Output) where
Output: Serialize,
[src]
Output: Serialize,
pub async fn next(&self) -> Result<Event<Input>, RecvError>
[src]
pub async fn add_mesh(&self, mesh: Mesh) -> MeshHandle
[src]
pub async fn remove_mesh(&self, entity: u128)
[src]
pub async fn set_shape(&self, entity: u128, shape: Shape)
[src]
pub async fn set_material(&self, entity: u128, material: Material)
[src]
pub async fn update_body<F>(&self, body_handle: RigidBodyHandle, predicate: F) where
F: Fn(&mut RigidBody),
[src]
F: Fn(&mut RigidBody),
pub async fn set_event_handler(
&self,
event_handler: Option<ChannelEventCollector>
)
[src]
&self,
event_handler: Option<ChannelEventCollector>
)
pub async fn start_server_task(self: &Arc<Self>)
[src]
pub async fn stop_server_task(&self)
[src]
pub async fn start_physics_task(self: &Arc<Self>)
[src]
pub async fn stop_physics_task(&self)
[src]
Auto Trait Implementations
impl<Input> !RefUnwindSafe for Game<Input>
impl<Input> !RefUnwindSafe for Game<Input>
impl<Input> !UnwindSafe for Game<Input>
impl<Input> !UnwindSafe for Game<Input>
Blanket Implementations
impl<T, U> Cast<U> for T where
U: FromCast<T>,
impl<T, U> Cast<U> for T where
U: FromCast<T>,
pub fn cast(self) -> U
impl<T> Downcast for T where
T: Any,
impl<T> Downcast for T where
T: Any,
impl<T> FromBits<T> for T
impl<T> FromBits<T> for T
pub fn from_bits(t: T) -> T
impl<T> FromCast<T> for T
impl<T> FromCast<T> for T
pub fn from_cast(t: T) -> T
impl<T, U> IntoBits<U> for T where
U: FromBits<T>,
impl<T, U> IntoBits<U> for T where
U: FromBits<T>,
pub fn into_bits(self) -> U
impl<T> Same<T> for T
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
pub fn to_subset(&self) -> Option<SS>
pub fn is_in_subset(&self) -> bool
pub fn to_subset_unchecked(&self) -> SS
pub fn from_subset(element: &SS) -> SP
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,