[][src]Struct physx::simulation_event_callback::PxSimulationEventCallback

#[repr(transparent)]pub struct PxSimulationEventCallback<L, S, D, OC, OT, OCB, OWS, OA> where
    L: ArticulationLink,
    S: RigidStatic,
    D: RigidDynamic,
    OC: CollisionCallback,
    OT: TriggerCallback,
    OCB: ConstraintBreakCallback,
    OWS: WakeSleepCallback<L, S, D>,
    OA: AdvanceCallback<L, D>, 
{ /* fields omitted */ }

A new type wrapper for PxSimulationEventCallback. Parametrized by the ArticulationLink, RigidStatic, and RigidDynamic actors the callbacks expect, and the Collision, Trigger, ConstraintBreak, WakeSleep, and Advance Callbacks themselves.

Implementations

impl<L, S, D, OC, OT, OCB, OWS, OA> PxSimulationEventCallback<L, S, D, OC, OT, OCB, OWS, OA> where
    L: ArticulationLink,
    S: RigidStatic,
    D: RigidDynamic,
    OC: CollisionCallback,
    OT: TriggerCallback,
    OCB: ConstraintBreakCallback,
    OWS: WakeSleepCallback<L, S, D>,
    OA: AdvanceCallback<L, D>, 
[src]

pub fn new(
    on_collide: Option<OC>,
    on_trigger: Option<OT>,
    on_constraint_break: Option<OCB>,
    on_wake_sleep: Option<OWS>,
    on_advance: Option<OA>
) -> Option<Owner<PxSimulationEventCallback<L, S, D, OC, OT, OCB, OWS, OA>>> where
    L: ArticulationLink,
    S: RigidStatic,
    D: RigidDynamic,
    OC: CollisionCallback,
    OT: TriggerCallback,
    OCB: ConstraintBreakCallback,
    OWS: WakeSleepCallback<L, S, D>,
    OA: AdvanceCallback<L, D>, 
[src]

Create a new simulation event callback.

Trait Implementations

impl<L, S, D, OC, OT, OCB, OWS, OA> Class<PxSimulationEventCallback> for PxSimulationEventCallback<L, S, D, OC, OT, OCB, OWS, OA> where
    L: ArticulationLink,
    S: RigidStatic,
    D: RigidDynamic,
    OC: CollisionCallback,
    OT: TriggerCallback,
    OCB: ConstraintBreakCallback,
    OWS: WakeSleepCallback<L, S, D>,
    OA: AdvanceCallback<L, D>, 
[src]

impl<L, S, D, OC, OT, OCB, OWS, OA> Drop for PxSimulationEventCallback<L, S, D, OC, OT, OCB, OWS, OA> where
    L: ArticulationLink,
    S: RigidStatic,
    D: RigidDynamic,
    OC: CollisionCallback,
    OT: TriggerCallback,
    OCB: ConstraintBreakCallback,
    OWS: WakeSleepCallback<L, S, D>,
    OA: AdvanceCallback<L, D>, 
[src]

Auto Trait Implementations

impl<L, S, D, OC, OT, OCB, OWS, OA> RefUnwindSafe for PxSimulationEventCallback<L, S, D, OC, OT, OCB, OWS, OA> where
    D: RefUnwindSafe,
    L: RefUnwindSafe,
    OA: RefUnwindSafe,
    OC: RefUnwindSafe,
    OCB: RefUnwindSafe,
    OT: RefUnwindSafe,
    OWS: RefUnwindSafe,
    S: RefUnwindSafe
[src]

impl<L, S, D, OC, OT, OCB, OWS, OA> !Send for PxSimulationEventCallback<L, S, D, OC, OT, OCB, OWS, OA>[src]

impl<L, S, D, OC, OT, OCB, OWS, OA> !Sync for PxSimulationEventCallback<L, S, D, OC, OT, OCB, OWS, OA>[src]

impl<L, S, D, OC, OT, OCB, OWS, OA> Unpin for PxSimulationEventCallback<L, S, D, OC, OT, OCB, OWS, OA> where
    OA: Unpin,
    OC: Unpin,
    OCB: Unpin,
    OT: Unpin,
    OWS: Unpin
[src]

impl<L, S, D, OC, OT, OCB, OWS, OA> UnwindSafe for PxSimulationEventCallback<L, S, D, OC, OT, OCB, OWS, OA> where
    D: RefUnwindSafe,
    L: RefUnwindSafe,
    OA: UnwindSafe,
    OC: UnwindSafe,
    OCB: UnwindSafe,
    OT: UnwindSafe,
    OWS: UnwindSafe,
    S: RefUnwindSafe
[src]

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> From<T> for T[src]

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

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.