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]

pub fn new() -> Self[src]

pub async fn send<Output>(&self, id: Option<u128>, output: Output) where
    Output: Serialize
[src]

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]

pub async fn set_event_handler(
    &self,
    event_handler: Option<ChannelEventCollector>
)
[src]

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> Send for Game<Input> where
    Input: Send

impl<Input> Sync for Game<Input> where
    Input: Send

impl<Input> Unpin for Game<Input>

impl<Input> !UnwindSafe for Game<Input>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T, U> Cast<U> for T where
    U: FromCast<T>, 

impl<T> Downcast for T where
    T: Any

impl<T> DowncastSync for T where
    T: Any + Send + Sync

impl<T> From<T> for T[src]

impl<T> FromBits<T> for T

impl<T> FromCast<T> for T

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> IntoBits<U> for T where
    U: FromBits<T>, 

impl<T> Pointable for T

type Init = T

The type for initializers.

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<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,