pub struct Switch<'a>(/* private fields */);Implementations§
Source§impl<'a> Switch<'a>
impl<'a> Switch<'a>
pub fn state(&self) -> Option<BinaryState>
pub fn command(&self) -> Option<BinaryState>
pub fn toggle(&mut self) -> BinaryState
pub fn set(&mut self, state: BinaryState)
pub async fn wait(&mut self) -> BinaryState
Auto Trait Implementations§
impl<'a> Freeze for Switch<'a>
impl<'a> !RefUnwindSafe for Switch<'a>
impl<'a> !Send for Switch<'a>
impl<'a> !Sync for Switch<'a>
impl<'a> Unpin for Switch<'a>
impl<'a> !UnwindSafe for Switch<'a>
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