pub struct AwaitPromiseCommand { /* private fields */ }Available on crate feature
Runtime only.Expand description
Add handler to promise with given promise object id.
Implementations§
Source§impl AwaitPromiseCommand
impl AwaitPromiseCommand
pub fn new( promise_object_id: RemoteObjectId, return_by_value: Option<bool>, generate_preview: Option<bool>, ) -> Self
Sourcepub fn promise_object_id(&self) -> &RemoteObjectId
pub fn promise_object_id(&self) -> &RemoteObjectId
Identifier of the promise.
Sourcepub fn return_by_value(&self) -> Option<&bool>
pub fn return_by_value(&self) -> Option<&bool>
Whether the result is expected to be a JSON object that should be sent by value.
Sourcepub fn generate_preview(&self) -> Option<&bool>
pub fn generate_preview(&self) -> Option<&bool>
Whether preview should be generated for the result.
Trait Implementations§
Source§impl Clone for AwaitPromiseCommand
impl Clone for AwaitPromiseCommand
Source§fn clone(&self) -> AwaitPromiseCommand
fn clone(&self) -> AwaitPromiseCommand
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Command for AwaitPromiseCommand
impl Command for AwaitPromiseCommand
Source§impl Debug for AwaitPromiseCommand
impl Debug for AwaitPromiseCommand
Source§impl<'de> Deserialize<'de> for AwaitPromiseCommand
impl<'de> Deserialize<'de> for AwaitPromiseCommand
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for AwaitPromiseCommand
impl RefUnwindSafe for AwaitPromiseCommand
impl Send for AwaitPromiseCommand
impl Sync for AwaitPromiseCommand
impl Unpin for AwaitPromiseCommand
impl UnwindSafe for AwaitPromiseCommand
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