Struct components::engine::d2::platform::DummyMotion
source · [−]pub struct DummyMotion {
pub acceleration: Signal1<Acceleration>,
pub acceleration_including_gravity: Signal1<Acceleration>,
pub attitude: Signal1<Attitude>,
}
Fields
acceleration: Signal1<Acceleration>
acceleration_including_gravity: Signal1<Acceleration>
attitude: Signal1<Attitude>
Implementations
sourceimpl DummyMotion
impl DummyMotion
pub fn new() -> DummyMotion
Trait Implementations
sourceimpl MotionSystem for DummyMotion
impl MotionSystem for DummyMotion
sourcefn acceleration(&self) -> &Signal1<Acceleration>
fn acceleration(&self) -> &Signal1<Acceleration>
Periodically emits the device’s current linear acceleration, excluding the pull of gravity. This will only be emitted if the device has a gyroscope. Read more
sourcefn acceleration_including_gravity(&self) -> &Signal1<Acceleration>
fn acceleration_including_gravity(&self) -> &Signal1<Acceleration>
Periodically emits the devices’s current linear acceleration, including the pull of gravity.
sourcefn is_acceleration_supported(&self) -> bool
fn is_acceleration_supported(&self) -> bool
Whether device acceleration events are supported. If true, the acceleration and/or accelerationIncludingGravity signals will be emitted. Read more
sourcefn is_attitude_supported(&self) -> bool
fn is_attitude_supported(&self) -> bool
Whether device orientation (attitude) events are supported.
Auto Trait Implementations
impl !RefUnwindSafe for DummyMotion
impl !Send for DummyMotion
impl !Sync for DummyMotion
impl Unpin for DummyMotion
impl !UnwindSafe for DummyMotion
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<'a, T, C, M> Inspect<'a, C, &'a C, M> for T
impl<'a, T, C, M> Inspect<'a, C, &'a C, M> for T
impl<'a, T, C, M> Inspect<'a, C, &'a mut C, M> for T
impl<'a, T, C, M> Inspect<'a, C, &'a mut C, M> for T
impl<Fr, To> IntoColor<To> for Fr where
To: FromColor<Fr>,
impl<Fr, To> IntoColor<To> for Fr where
To: FromColor<Fr>,
fn into_color(self) -> To
fn into_color(self) -> To
Convert into color
impl<T> Pointable for T
impl<T> Pointable for T
impl<T> SetParameter for T
impl<T> SetParameter for T
fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
T: Parameter<Self>,
fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
T: Parameter<Self>,
Sets value
as a parameter of self
.