pub struct NoopClient {
pub caller: Caller,
pub session: Option<SessionHandle>,
}Expand description
Liveness-only client for a connection root.
Keeps the root connection alive but intentionally exposes no outbound RPC API.
Use this as the type parameter to establish() when you don’t need a typed client.
Fields§
§caller: CallerThe underlying caller keeping the connection alive.
session: Option<SessionHandle>The session handle, if this client is on a root connection.
Trait Implementations§
Source§impl Clone for NoopClient
impl Clone for NoopClient
Source§fn clone(&self) -> NoopClient
fn clone(&self) -> NoopClient
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 moreSource§impl FromVoxSession for NoopClient
impl FromVoxSession for NoopClient
Source§const SERVICE_NAME: &'static str = "Noop"
const SERVICE_NAME: &'static str = "Noop"
The service name for this client, used for automatic
vox-service metadata.
Generated clients return Some("ServiceName"). NoopClient returns None.fn from_vox_session(caller: Caller, session: Option<SessionHandle>) -> Self
Auto Trait Implementations§
impl Freeze for NoopClient
impl !RefUnwindSafe for NoopClient
impl Send for NoopClient
impl Sync for NoopClient
impl Unpin for NoopClient
impl UnsafeUnpin for NoopClient
impl !UnwindSafe for NoopClient
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