pub struct MykoClient { /* private fields */ }Implementations§
Source§impl MykoClient
impl MykoClient
pub fn new() -> MykoClient
pub fn get_status(&self) -> impl Signal<Item = ConnectionStatus>
pub async fn send_event(&self, event: MEvent) -> Result<(), String>
pub fn get_messages(&self) -> impl Stream<Item = Value>
pub fn set_address(&self, addr: Option<String>)
pub async fn get_connection_status(&self) -> ConnectionStatus
pub fn watch_connection_status(&self) -> impl Stream<Item = ConnectionStatus>
pub fn watch_report<T: MykoReport<U> + Clone + Serialize + ReportId, U: DeserializeOwned>( &self, report: &T, ) -> impl Stream<Item = U>
pub fn watch_query<T: Clone + DeserializeOwned + Eventable<T, PT> + PartialEq + Debug, PT: Clone, Q: QueryId + QueryItemType + Serialize + Clone>( &self, query: Q, ) -> impl Stream<Item = Vec<T>>
Trait Implementations§
Source§impl Clone for MykoClient
impl Clone for MykoClient
Source§fn clone(&self) -> MykoClient
fn clone(&self) -> MykoClient
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for MykoClient
impl !RefUnwindSafe for MykoClient
impl Send for MykoClient
impl Sync for MykoClient
impl Unpin for MykoClient
impl !UnwindSafe for MykoClient
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