pub enum Store2Request {
Identify {
name: String,
control_handle: Store2ControlHandle,
},
CreateAccessor {
read_only: bool,
accessor_request: ServerEnd<StoreAccessorMarker>,
control_handle: Store2ControlHandle,
},
}
Expand description
A copy of |Store| in all but name. Behaves identically to |Store|. See: https://fxbug.dev/42125700
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 Store2Request
impl Store2Request
pub fn into_identify(self) -> Option<(String, Store2ControlHandle)>
pub fn into_create_accessor( self, ) -> Option<(bool, ServerEnd<StoreAccessorMarker>, Store2ControlHandle)>
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 Store2Request
impl !RefUnwindSafe for Store2Request
impl Send for Store2Request
impl Sync for Store2Request
impl Unpin for Store2Request
impl !UnwindSafe for Store2Request
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