Struct ClientRouter
pub struct ClientRouter {
pub uri: String,
pub timeout_s: f64,
/* private fields */
}Expand description
Base client router for the REST API.
Fields§
§uri: StringThe fully qualified router URI ({uri}/{prefix}/).
timeout_s: f64The request timeout in seconds.
Implementations§
§impl ClientRouter
impl ClientRouter
pub fn new(uri: &str, prefix: &str, timeout_s: f64, http: Client) -> Self
pub fn new(uri: &str, prefix: &str, timeout_s: f64, http: Client) -> Self
Creates a new router rooted at uri with the given prefix.
The http client is shared with all other routers of the same
VisuClient.
Trait Implementations§
§impl Clone for ClientRouter
impl Clone for ClientRouter
§fn clone(&self) -> ClientRouter
fn clone(&self) -> ClientRouter
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 ClientRouter
impl !RefUnwindSafe for ClientRouter
impl Send for ClientRouter
impl Sync for ClientRouter
impl Unpin for ClientRouter
impl !UnwindSafe for ClientRouter
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