pub struct Client { /* private fields */ }Implementations§
Source§impl Client
impl Client
pub fn new(api_key: impl Into<String>) -> Self
pub async fn get_all_events( &self, since: Option<u64>, limit: Option<u64>, ) -> Fallible<Vec<Event>>
pub async fn get_events( &self, since: Option<u64>, limit: Option<u64>, events: impl AsRef<[EventType]>, ) -> Fallible<Vec<Event>>
pub fn subscribe_to(self, events: impl Into<Vec<EventType>>) -> EventStream
pub fn subscribe_to_all(self) -> EventStream
pub async fn browse(&self, pattern: Option<String>) -> Fallible<Vec<String>>
pub async fn get_connections(&self) -> Fallible<Connections>
pub async fn get_discovery_cache(&self) -> Fallible<Discovery>
pub async fn get_log(&self, since: Option<Timestamp>) -> Fallible<Log>
pub async fn get_errors(&self) -> Fallible<Error>
pub async fn clear_errors(&self) -> Fallible<()>
pub async fn get_loglevels_info(&self) -> Fallible<LogLevelsInfo>
pub async fn get_paths(&self) -> Fallible<HashMap<String, String>>
pub async fn ping(&self) -> Fallible<Ping>
pub async fn status(&self) -> Fallible<Status>
pub async fn get_upgrade_info(&self) -> Fallible<UpgradeInfo>
pub async fn get_version_info(&self) -> Fallible<VersionInfo>
pub async fn get_cluster_pending_devices(&self) -> Fallible<PendingDevices>
Auto Trait Implementations§
impl !Freeze for Client
impl !RefUnwindSafe for Client
impl Send for Client
impl Sync for Client
impl Unpin for Client
impl UnsafeUnpin for Client
impl !UnwindSafe for Client
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