pub struct Client {
pub client: Client,
}
Fields§
§client: Client
Implementations§
Trait Implementations§
Source§impl FromClientHook for Client
impl FromClientHook for Client
Source§fn new(hook: Box<dyn ClientHook>) -> Self
fn new(hook: Box<dyn ClientHook>) -> Self
Wraps a client hook to create a new client.
Source§fn into_client_hook(self) -> Box<dyn ClientHook>
fn into_client_hook(self) -> Box<dyn ClientHook>
Unwraps client to get the underlying client hook.
Source§fn as_client_hook(&self) -> &dyn ClientHook
fn as_client_hook(&self) -> &dyn ClientHook
Gets a reference to the underlying client hook.
Source§fn cast_to<T>(self) -> Twhere
T: FromClientHook,
Self: Sized,
fn cast_to<T>(self) -> Twhere
T: FromClientHook,
Self: Sized,
Casts
self
to another instance of FromClientHook
. This always succeeds,
but if the underlying capability does not actually implement T
’s interface,
then method calls will fail with “unimplemented” errors.Source§impl<'a> FromPointerBuilder<'a> for Client
impl<'a> FromPointerBuilder<'a> for Client
fn init_pointer(_builder: PointerBuilder<'a>, _size: u32) -> Self
fn get_from_pointer( builder: PointerBuilder<'a>, _default: Option<&'a [Word]>, ) -> Result<Self>
Source§impl<'a> FromPointerReader<'a> for Client
impl<'a> FromPointerReader<'a> for Client
fn get_from_pointer( reader: &PointerReader<'a>, _default: Option<&'a [Word]>, ) -> Result<Self>
Source§impl<_S: Server + 'static> FromServer<_S> for Client
impl<_S: Server + 'static> FromServer<_S> for Client
type Dispatch = ServerDispatch<_S>
fn from_server(s: _S) -> ServerDispatch<_S>
Source§impl SetterInput<Owned> for Client
impl SetterInput<Owned> for Client
Source§fn set_pointer_builder(
pointer: PointerBuilder<'_>,
from: Self,
_canonicalize: bool,
) -> Result<()>
fn set_pointer_builder( pointer: PointerBuilder<'_>, from: Self, _canonicalize: bool, ) -> Result<()>
Copies the values from
input
into builder
, where builder
represents the backing memory of a <Receiver as Owned>::Builder
. Read moreAuto Trait Implementations§
impl Freeze for Client
impl !RefUnwindSafe for Client
impl !Send for Client
impl !Sync for Client
impl Unpin for Client
impl !UnwindSafe for Client
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