pub struct SwitchBot { /* private fields */ }Implementations§
Source§impl SwitchBot
impl SwitchBot
pub fn new() -> Self
pub fn new_with_authentication(token: &str, secret: &str) -> Self
pub fn set_authentication(&mut self, token: &str, secret: &str)
pub fn devices(&self) -> &DeviceList
pub async fn load_devices(&mut self) -> Result<()>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SwitchBot
impl !RefUnwindSafe for SwitchBot
impl !Send for SwitchBot
impl !Sync for SwitchBot
impl Unpin for SwitchBot
impl !UnwindSafe for SwitchBot
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