pub struct Client { /* private fields */ }
Expand description
Client for sending Data message or MiddlewareCommand
(i.e. MonitorSettings
)
Cheap to clone as it has an internal Atomic reference counter (Arc
) for the Websocket Stream
Implementations§
Source§impl Client
impl Client
pub fn new(ws_sink: SplitSink<WebSocketStream<TcpStream>, Message>) -> Self
Sourcepub async fn set_monitor_settings(
&self,
monitor_settings: MonitorSettings,
) -> Result<(), Error>
pub async fn set_monitor_settings( &self, monitor_settings: MonitorSettings, ) -> Result<(), Error>
Send a MonitorSettings
(MiddlewareCommand
) to the Arduino Serial Plotter UI
through an already established connection.
Trait Implementations§
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