pub struct AnyClient(/* private fields */);Available on crate features
remote-access or websocket only.Expand description
A client handle abstracted over the transport that delivered the request.
Implementations§
Source§impl AnyClient
impl AnyClient
Sourcepub fn send_error(&self, message: impl Into<String>)
pub fn send_error(&self, message: impl Into<String>)
Send a generic error status to this client.
Sourcepub fn send_warning(&self, message: impl Into<String>)
pub fn send_warning(&self, message: impl Into<String>)
Send a generic warning status to this client.
Sourcepub fn as_websocket(&self) -> Option<&Client>
Available on crate feature websocket only.
pub fn as_websocket(&self) -> Option<&Client>
websocket only.If this client is a WebSocket client, returns a reference to it.
Sourcepub fn as_remote_access(&self) -> Option<&Client>
Available on crate feature remote-access only.
pub fn as_remote_access(&self) -> Option<&Client>
remote-access only.If this client is a remote-access participant, returns a reference to it.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for AnyClient
impl !UnwindSafe for AnyClient
impl Freeze for AnyClient
impl Send for AnyClient
impl Sync for AnyClient
impl Unpin for AnyClient
impl UnsafeUnpin for AnyClient
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
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> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
Source§impl<T, U> SaturatingInto<T> for Uwhere
T: SaturatingFrom<U>,
impl<T, U> SaturatingInto<T> for Uwhere
T: SaturatingFrom<U>,
Source§fn saturating_into(self) -> T
fn saturating_into(self) -> T
Performs the conversion.