pub struct ClientContext {
pub http_client: Client,
pub base_url: Url,
pub association: Option<String>,
pub tunnel_port: Option<u16>,
}Expand description
Shared context
Fields§
§http_client: ClientHTTP client for the client to make requests with
base_url: UrlBase URL of the connected server
association: Option<String>Optional association token
tunnel_port: Option<u16>Optional tunnel port for tunnel V2 if available
Auto Trait Implementations§
impl Freeze for ClientContext
impl !RefUnwindSafe for ClientContext
impl Send for ClientContext
impl Sync for ClientContext
impl Unpin for ClientContext
impl !UnwindSafe for ClientContext
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