pub struct HServerClient { /* private fields */ }Expand description
Client for the HPortalSys service mounted in LazyCat applications.
Implementations§
Source§impl HServerClient
impl HServerClient
Sourcepub async fn connect() -> Result<Self, Error>
pub async fn connect() -> Result<Self, Error>
Connect to the application HPortalSys Unix socket.
§Errors
Returns an error when the mounted portal socket cannot be reached.
Sourcepub const fn from_channel(channel: Channel) -> Self
pub const fn from_channel(channel: Channel) -> Self
Construct a wrapper around an existing tonic channel.
Sourcepub fn client(&self) -> GeneratedHPortalSysClient<Channel>
pub fn client(&self) -> GeneratedHPortalSysClient<Channel>
Create a generated client exposing every HPortalSys RPC.
Sourcepub async fn remote_socks_endpoint(
&self,
location: impl Into<RemoteLocation>,
) -> Result<RemoteSocksEndpoint, Error>
pub async fn remote_socks_endpoint( &self, location: impl Into<RemoteLocation>, ) -> Result<RemoteSocksEndpoint, Error>
Resolve a validated RemoteSocks endpoint for a local or remote target.
Empty string targets select RemoteLocation::Local; non-empty strings
select RemoteLocation::Remote, matching the official Go SDK.
§Errors
Returns an error when HPortalSys rejects the request or returns an
unsupported or malformed SOCKS URL.
Trait Implementations§
Source§impl Clone for HServerClient
impl Clone for HServerClient
Auto Trait Implementations§
impl !RefUnwindSafe for HServerClient
impl !UnwindSafe for HServerClient
impl Freeze for HServerClient
impl Send for HServerClient
impl Sync for HServerClient
impl Unpin for HServerClient
impl UnsafeUnpin for HServerClient
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request