pub struct UnifiClient { /* private fields */ }Implementations§
Source§impl UnifiClient
impl UnifiClient
pub fn new(host: &str, api_key: &str) -> Result<Self, ApiError>
pub async fn list_clients(&mut self) -> Result<Vec<Client>, ApiError>
pub async fn get_client_detail( &self, mac: &str, ) -> Result<LegacyClient, ApiError>
pub async fn set_fixed_ip( &self, mac: &str, ip: &str, name: Option<&str>, ) -> Result<(), ApiError>
pub async fn block_client(&self, mac: &str) -> Result<(), ApiError>
pub async fn unblock_client(&self, mac: &str) -> Result<(), ApiError>
pub async fn kick_client(&self, mac: &str) -> Result<(), ApiError>
pub async fn list_devices(&mut self) -> Result<Vec<Device>, ApiError>
pub async fn restart_device(&self, mac: &str) -> Result<(), ApiError>
pub async fn locate_device( &self, mac: &str, enable: bool, ) -> Result<(), ApiError>
pub async fn list_networks(&mut self) -> Result<Vec<Network>, ApiError>
pub async fn get_health(&self) -> Result<Vec<HealthSubsystem>, ApiError>
pub async fn get_sysinfo(&self) -> Result<SysInfo, ApiError>
Auto Trait Implementations§
impl Freeze for UnifiClient
impl !RefUnwindSafe for UnifiClient
impl Send for UnifiClient
impl Sync for UnifiClient
impl Unpin for UnifiClient
impl UnsafeUnpin for UnifiClient
impl !UnwindSafe for UnifiClient
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