pub struct NetworkTableClient { /* private fields */ }
Implementations§
Source§impl NetworkTableClient
impl NetworkTableClient
Sourcepub async fn new<B: Backend>(
host: &str,
name: &str,
) -> Result<(Self, B::Output), Error>
pub async fn new<B: Backend>( host: &str, name: &str, ) -> Result<(Self, B::Output), Error>
Create a new client using the hostname, client name, and a backend type
Sourcepub fn main_task<T: Timer>(
&self,
) -> impl Future<Output = Result<(), Error>> + 'static
pub fn main_task<T: Timer>( &self, ) -> impl Future<Output = Result<(), Error>> + 'static
This returns a future that should be run on the side, usually, in an async task. This future must remain alive for as long as subscriber and time updates are required
Trait Implementations§
Source§impl Clone for NetworkTableClient
impl Clone for NetworkTableClient
Source§fn clone(&self) -> NetworkTableClient
fn clone(&self) -> NetworkTableClient
Returns a copy 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 NetworkTableClient
impl RefUnwindSafe for NetworkTableClient
impl Send for NetworkTableClient
impl Sync for NetworkTableClient
impl Unpin for NetworkTableClient
impl UnwindSafe for NetworkTableClient
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