pub enum BridgeOp {
Get(Vec<Key>),
Update(StateChange),
Call(Call),
ListKeys {
prefix: Option<String>,
},
ListMethods {
prefix: Option<String>,
},
}Expand description
An operation a remote client asks the device to perform. Mirrors
studio-bridge’s AroraOp.
Variants§
Get(Vec<Key>)
Read the given keys.
Update(StateChange)
Apply a state change.
Call(Call)
Call a function.
ListKeys
Enumerate store keys under an optional path prefix — introspection for
the live-edit surface. Replies with a CallResult whose ret is an
ArrayValue of the matching key paths as Strings.
ListMethods
Enumerate callable module methods under an optional name prefix. Replies
with a CallResult whose ret is an ArrayValue of method names as
Strings.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for BridgeOp
impl RefUnwindSafe for BridgeOp
impl Send for BridgeOp
impl Sync for BridgeOp
impl Unpin for BridgeOp
impl UnsafeUnpin for BridgeOp
impl UnwindSafe for BridgeOp
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