pub struct NavClient { /* private fields */ }Expand description
A client for the Scarab Navigation Protocol. It handles connection management and message buffering in a background task.
Implementations§
Sourcepub fn new() -> Self
pub fn new() -> Self
Create a new NavClient.
It attempts to connect to the socket at SCARAB_NAV_SOCKET.
If the env var is not set, it logs a warning and returns a dummy client (no-op).
pub fn update(&self, layout: UpdateLayout)
Trait Implementations§
Auto Trait Implementations§
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