#[non_exhaustive]pub struct SetOptions {
pub allow_not_ready: bool,
pub unchecked: bool,
}Available on crate feature
alloc only.Expand description
Options for Controller::set. Start from
SetOptions::default and set the fields or chain the setters.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.allow_not_ready: boolSend even when the device’s effective state is not ready.
unchecked: boolSkip the payload check.
Implementations§
Source§impl SetOptions
impl SetOptions
Trait Implementations§
Source§impl Clone for SetOptions
impl Clone for SetOptions
impl Copy for SetOptions
Source§impl Debug for SetOptions
impl Debug for SetOptions
Source§impl Default for SetOptions
impl Default for SetOptions
impl Eq for SetOptions
Source§impl Hash for SetOptions
impl Hash for SetOptions
Source§impl PartialEq for SetOptions
impl PartialEq for SetOptions
impl StructuralPartialEq for SetOptions
Auto Trait Implementations§
impl Freeze for SetOptions
impl RefUnwindSafe for SetOptions
impl Send for SetOptions
impl Sync for SetOptions
impl Unpin for SetOptions
impl UnsafeUnpin for SetOptions
impl UnwindSafe for SetOptions
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