pub struct DesignModeBridge { /* private fields */ }Expand description
Validates picker binding calls for one enable operation.
Implementations§
Source§impl DesignModeBridge
impl DesignModeBridge
pub fn new(nonce: &str) -> Result<Self>
pub fn binding_name(&self) -> String
pub fn world_name(&self) -> String
Sourcepub fn accept(
&mut self,
binding: &str,
payload: &str,
trusted_context: bool,
gesture: &NativeGestureLatch,
now_ms: u64,
) -> Option<DesignModeMarker>
pub fn accept( &mut self, binding: &str, payload: &str, trusted_context: bool, gesture: &NativeGestureLatch, now_ms: u64, ) -> Option<DesignModeMarker>
Decode one Runtime.bindingCalled event. trusted_context is true only when the call
came from the isolated context this bridge created. Select and dismiss need the
binding, context and nonce; a submission also needs a fresh id and consumes one gesture
from gesture. A rejected submission does not advance the id or burn a later gesture.
Trait Implementations§
Source§impl Clone for DesignModeBridge
impl Clone for DesignModeBridge
Auto Trait Implementations§
impl Forget for DesignModeBridge
impl Freeze for DesignModeBridge
impl Move for DesignModeBridge
impl RefUnwindSafe for DesignModeBridge
impl Send for DesignModeBridge
impl Sync for DesignModeBridge
impl Unpin for DesignModeBridge
impl UnsafeUnpin for DesignModeBridge
impl UnwindSafe for DesignModeBridge
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