pub struct Client { /* private fields */ }Implementations§
Source§impl Client
impl Client
pub fn new(api_key: impl Into<String>) -> Self
pub fn get_all_events( &self, since: Option<u64>, limit: Option<u64>, ) -> Fallible<Vec<Event>>
pub 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 fn browse(&self, pattern: Option<String>) -> Fallible<Vec<String>>
pub fn get_connections(&self) -> Fallible<Connections>
pub fn get_discovery_cache(&self) -> Fallible<Discovery>
pub fn get_log(&self, since: Option<Timestamp>) -> Fallible<Log>
pub fn get_errors(&self) -> Fallible<Error>
pub fn clear_errors(&self) -> Fallible<()>
pub fn get_loglevels_info(&self) -> Fallible<LogLevelsInfo>
pub fn get_paths(&self) -> Fallible<HashMap<String, String>>
pub fn ping(&self) -> Fallible<Ping>
pub fn status(&self) -> Fallible<Status>
pub fn get_upgrade_info(&self) -> Fallible<UpgradeInfo>
pub fn get_version_info(&self) -> Fallible<VersionInfo>
pub 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 !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