pub struct AutoReply {
pub mode: AutoMode,
pub changed: bool,
}Expand description
Reply from an AutoSource call. mode is the effective mode
after the adapter acted (so On returns AutoMode::On on
success, AutoMode::Off on adapter-side refusal), and
changed is true when the call flipped the mode. The
dispatcher renders different lines for the two cases so the
operator is never left guessing whether the toggle actually
did something.
Fields§
§mode: AutoMode§changed: boolTrait Implementations§
impl Copy for AutoReply
impl Eq for AutoReply
impl StructuralPartialEq for AutoReply
Auto Trait Implementations§
impl Freeze for AutoReply
impl RefUnwindSafe for AutoReply
impl Send for AutoReply
impl Sync for AutoReply
impl Unpin for AutoReply
impl UnsafeUnpin for AutoReply
impl UnwindSafe for AutoReply
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