pub struct TypeMask(/* private fields */);Expand description
Builds a type_mask for a SET_POSITION_TARGET_* message.
A set bit tells the vehicle to ignore that dimension, so the builder starts from
ignore_all and each use_* method clears the ignore bits for the
dimensions the setpoint provides.
Implementations§
Source§impl TypeMask
impl TypeMask
Sourcepub fn ignore_all() -> Self
pub fn ignore_all() -> Self
Sourcepub fn use_position(self) -> Self
pub fn use_position(self) -> Self
Sourcepub fn use_velocity(self) -> Self
pub fn use_velocity(self) -> Self
Sourcepub fn use_acceleration(self) -> Self
pub fn use_acceleration(self) -> Self
Sourcepub fn use_yaw_rate(self) -> Self
pub fn use_yaw_rate(self) -> Self
Trait Implementations§
impl Copy for TypeMask
impl Eq for TypeMask
impl StructuralPartialEq for TypeMask
Auto Trait Implementations§
impl Freeze for TypeMask
impl RefUnwindSafe for TypeMask
impl Send for TypeMask
impl Sync for TypeMask
impl Unpin for TypeMask
impl UnsafeUnpin for TypeMask
impl UnwindSafe for TypeMask
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more