pub struct Client {
    pub client: Client,
}

Fields§

§client: Client

Trait Implementations§

source§

impl Clone for Client

source§

fn clone(&self) -> Self

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl FromClientHook for Client

source§

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>

Unwraps client to get the underlying client hook.
source§

fn as_client_hook(&self) -> &dyn ClientHook

Gets a reference to the underlying client hook.
source§

fn cast_to<T>(self) -> T
where 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

source§

fn init_pointer(_builder: PointerBuilder<'a>, _size: u32) -> Self

source§

fn get_from_pointer( builder: PointerBuilder<'a>, _default: Option<&'a [Word]> ) -> Result<Self>

source§

impl<'a> FromPointerReader<'a> for Client

source§

fn get_from_pointer( reader: &PointerReader<'a>, _default: Option<&'a [Word]> ) -> Result<Self>

source§

impl<_S: Server + 'static> FromServer<_S> for Client

source§

impl HasTypeId for Client

source§

const TYPE_ID: u64 = 11_802_958_618_958_944_489u64

source§

impl SetterInput<Owned> for Client

source§

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 more

Auto Trait Implementations§

§

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> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.