pub enum StoreRequest {
Identify {
name: String,
control_handle: StoreControlHandle,
},
CreateAccessor {
read_only: bool,
accessor_request: ServerEnd<StoreAccessorMarker>,
control_handle: StoreControlHandle,
},
}
Expand description
Interface used to interact with a given client’s key/value store
Variants§
Identify
Identify should be called at the beginning of a connection to identify which client service’s store is to be accessed. In the future this will be deprecated in favor of component monikers, and each client will only be able to access its own store.
CreateAccessor
Creates a accessor for interacting with the store. The resulting interface can be used to inspect and modify the state of the store.
Implementations§
Source§impl StoreRequest
impl StoreRequest
pub fn into_identify(self) -> Option<(String, StoreControlHandle)>
pub fn into_create_accessor( self, ) -> Option<(bool, ServerEnd<StoreAccessorMarker>, StoreControlHandle)>
Sourcepub fn method_name(&self) -> &'static str
pub fn method_name(&self) -> &'static str
Name of the method defined in FIDL
Trait Implementations§
Auto Trait Implementations§
impl Freeze for StoreRequest
impl !RefUnwindSafe for StoreRequest
impl Send for StoreRequest
impl Sync for StoreRequest
impl Unpin for StoreRequest
impl !UnwindSafe for StoreRequest
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