pub struct Client<AppObjectId> {
    pub client: Client,
    /* private fields */
}

Fields§

§client: Client

Implementations§

source§

impl<AppObjectId> Client<AppObjectId>

source

pub fn deprecated_publish_request( &self ) -> Request<Owned<AppObjectId>, Owned<AppObjectId>>

source

pub fn deprecated_register_action_request( &self ) -> Request<Owned<AppObjectId>, Owned<AppObjectId>>

source

pub fn share_cap_request( &self ) -> Request<Owned<AppObjectId>, Owned<AppObjectId>>

source

pub fn share_view_request( &self ) -> Request<Owned<AppObjectId>, Owned<AppObjectId>>

source

pub fn restore_request(&self) -> Request<Owned<AppObjectId>, Owned<AppObjectId>>

source

pub fn drop_request(&self) -> Request<Owned<AppObjectId>, Owned<AppObjectId>>

source

pub fn deleted_request(&self) -> Request<Owned<AppObjectId>, Owned<AppObjectId>>

source

pub fn stay_awake_request( &self ) -> Request<Owned<AppObjectId>, Owned<AppObjectId>>

source

pub fn save_request(&self) -> Request<Owned<AppObjectId>, Owned<AppObjectId>>

source

pub fn background_activity_request( &self ) -> Request<Owned<AppObjectId>, Owned<AppObjectId>>

source

pub fn get_identity_id_request( &self ) -> Request<Owned<AppObjectId>, Owned<AppObjectId>>

source

pub fn schedule_request(&self) -> Request<Owned, Owned<AppObjectId>>

Trait Implementations§

source§

impl<AppObjectId> Clone for Client<AppObjectId>

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<AppObjectId> FromClientHook for Client<AppObjectId>

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, AppObjectId> FromPointerBuilder<'a> for Client<AppObjectId>
where AppObjectId: Owned,

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, AppObjectId> FromPointerReader<'a> for Client<AppObjectId>
where AppObjectId: Owned,

source§

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

source§

impl<_S: Server<AppObjectId> + 'static, AppObjectId> FromServer<_S> for Client<AppObjectId>
where AppObjectId: 'static + Owned,

§

type Dispatch = ServerDispatch<_S, AppObjectId>

source§

fn from_server(s: _S) -> ServerDispatch<_S, AppObjectId>

source§

impl<AppObjectId> HasTypeId for Client<AppObjectId>

source§

const TYPE_ID: u64 = 15_160_611_471_801_451_211u64

source§

impl<AppObjectId> SetterInput<Owned<AppObjectId>> for Client<AppObjectId>
where AppObjectId: Owned,

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<AppObjectId> !RefUnwindSafe for Client<AppObjectId>

§

impl<AppObjectId> !Send for Client<AppObjectId>

§

impl<AppObjectId> !Sync for Client<AppObjectId>

§

impl<AppObjectId> Unpin for Client<AppObjectId>
where AppObjectId: Unpin,

§

impl<AppObjectId> !UnwindSafe for Client<AppObjectId>

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.