pub struct Request { /* private fields */ }
Expand description
bitflags for reboot and code restart requests
Implementations§
Source§impl Request
impl Request
pub const REBOOT_ROBORIO: Request
pub const RESTART_CODE: Request
Sourcepub fn from_bits(bits: u8) -> Option<Request>
pub fn from_bits(bits: u8) -> Option<Request>
Convert from underlying bit representation, unless that representation contains bits that do not correspond to a flag.
Sourcepub const fn from_bits_truncate(bits: u8) -> Request
pub const fn from_bits_truncate(bits: u8) -> Request
Convert from underlying bit representation, dropping any bits that do not correspond to flags.
Sourcepub const unsafe fn from_bits_unchecked(bits: u8) -> Request
pub const unsafe fn from_bits_unchecked(bits: u8) -> Request
Convert from underlying bit representation, preserving all bits (even those not corresponding to a defined flag).
Sourcepub const fn intersects(&self, other: Request) -> bool
pub const fn intersects(&self, other: Request) -> bool
Returns true
if there are flags common to both self
and other
.
Trait Implementations§
Source§impl BitAndAssign for Request
impl BitAndAssign for Request
Source§fn bitand_assign(&mut self, other: Request)
fn bitand_assign(&mut self, other: Request)
Disables all flags disabled in the set.
Source§impl BitOrAssign for Request
impl BitOrAssign for Request
Source§fn bitor_assign(&mut self, other: Request)
fn bitor_assign(&mut self, other: Request)
Adds the set of flags.
Source§impl BitXorAssign for Request
impl BitXorAssign for Request
Source§fn bitxor_assign(&mut self, other: Request)
fn bitxor_assign(&mut self, other: Request)
Toggles the set of flags.
Source§impl Extend<Request> for Request
impl Extend<Request> for Request
Source§fn extend<T: IntoIterator<Item = Request>>(&mut self, iterator: T)
fn extend<T: IntoIterator<Item = Request>>(&mut self, iterator: T)
Extends a collection with the contents of an iterator. Read more
Source§fn extend_one(&mut self, item: A)
fn extend_one(&mut self, item: A)
🔬This is a nightly-only experimental API. (
extend_one
)Extends a collection with exactly one element.
Source§fn extend_reserve(&mut self, additional: usize)
fn extend_reserve(&mut self, additional: usize)
🔬This is a nightly-only experimental API. (
extend_one
)Reserves capacity in a collection for the given number of additional elements. Read more
Source§impl FromIterator<Request> for Request
impl FromIterator<Request> for Request
Source§impl Ord for Request
impl Ord for Request
Source§impl PartialOrd for Request
impl PartialOrd for Request
Source§impl SubAssign for Request
impl SubAssign for Request
Source§fn sub_assign(&mut self, other: Request)
fn sub_assign(&mut self, other: Request)
Disables all flags enabled in the set.
impl Copy for Request
impl Eq for Request
impl StructuralPartialEq for Request
Auto Trait Implementations§
impl Freeze for Request
impl RefUnwindSafe for Request
impl Send for Request
impl Sync for Request
impl Unpin for Request
impl UnwindSafe for Request
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