Struct sandstorm::grain_capnp::sandstorm_api::Client
source · pub struct Client<AppObjectId> {
pub client: Client,
/* private fields */
}
Fields§
§client: Client
Implementations§
source§impl<AppObjectId> Client<AppObjectId>
impl<AppObjectId> Client<AppObjectId>
pub fn deprecated_publish_request( &self ) -> Request<Owned<AppObjectId>, Owned<AppObjectId>>
pub fn deprecated_register_action_request( &self ) -> Request<Owned<AppObjectId>, Owned<AppObjectId>>
pub fn restore_request(&self) -> Request<Owned<AppObjectId>, Owned<AppObjectId>>
pub fn drop_request(&self) -> Request<Owned<AppObjectId>, Owned<AppObjectId>>
pub fn deleted_request(&self) -> Request<Owned<AppObjectId>, Owned<AppObjectId>>
pub fn stay_awake_request( &self ) -> Request<Owned<AppObjectId>, Owned<AppObjectId>>
pub fn save_request(&self) -> Request<Owned<AppObjectId>, Owned<AppObjectId>>
pub fn background_activity_request( &self ) -> Request<Owned<AppObjectId>, Owned<AppObjectId>>
pub fn get_identity_id_request( &self ) -> Request<Owned<AppObjectId>, Owned<AppObjectId>>
pub fn schedule_request(&self) -> Request<Owned, Owned<AppObjectId>>
Trait Implementations§
source§impl<AppObjectId> FromClientHook for Client<AppObjectId>
impl<AppObjectId> FromClientHook for Client<AppObjectId>
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, AppObjectId> FromPointerBuilder<'a> for Client<AppObjectId>where
AppObjectId: Owned,
impl<'a, AppObjectId> FromPointerBuilder<'a> for Client<AppObjectId>where
AppObjectId: Owned,
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, AppObjectId> FromPointerReader<'a> for Client<AppObjectId>where
AppObjectId: Owned,
impl<'a, AppObjectId> FromPointerReader<'a> for Client<AppObjectId>where
AppObjectId: Owned,
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,
impl<_S: Server<AppObjectId> + 'static, AppObjectId> FromServer<_S> for Client<AppObjectId>where
AppObjectId: 'static + Owned,
type Dispatch = ServerDispatch<_S, AppObjectId>
fn from_server(s: _S) -> ServerDispatch<_S, AppObjectId>
source§impl<AppObjectId> SetterInput<Owned<AppObjectId>> for Client<AppObjectId>where
AppObjectId: Owned,
impl<AppObjectId> SetterInput<Owned<AppObjectId>> for Client<AppObjectId>where
AppObjectId: Owned,
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<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> 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