pub struct AwaitPromiseParams<'a> { /* private fields */ }Expand description
Add handler to promise with given promise object id.
Implementations§
Source§impl<'a> AwaitPromiseParams<'a>
impl<'a> AwaitPromiseParams<'a>
Sourcepub fn builder(
promise_object_id: impl Into<RemoteObjectId<'a>>,
) -> AwaitPromiseParamsBuilder<'a>
pub fn builder( promise_object_id: impl Into<RemoteObjectId<'a>>, ) -> AwaitPromiseParamsBuilder<'a>
Creates a builder for this type with the required parameters:
promise_object_id: Identifier of the promise.
Sourcepub fn promise_object_id(&self) -> &RemoteObjectId<'a>
pub fn promise_object_id(&self) -> &RemoteObjectId<'a>
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<'a> CdpCommand<'a> for AwaitPromiseParams<'a>
impl<'a> CdpCommand<'a> for AwaitPromiseParams<'a>
Source§impl<'a> Clone for AwaitPromiseParams<'a>
impl<'a> Clone for AwaitPromiseParams<'a>
Source§fn clone(&self) -> AwaitPromiseParams<'a>
fn clone(&self) -> AwaitPromiseParams<'a>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'a> Debug for AwaitPromiseParams<'a>
impl<'a> Debug for AwaitPromiseParams<'a>
Source§impl<'a> Default for AwaitPromiseParams<'a>
impl<'a> Default for AwaitPromiseParams<'a>
Source§fn default() -> AwaitPromiseParams<'a>
fn default() -> AwaitPromiseParams<'a>
Returns the “default value” for a type. Read more
Source§impl<'de, 'a> Deserialize<'de> for AwaitPromiseParams<'a>
impl<'de, 'a> Deserialize<'de> for AwaitPromiseParams<'a>
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<'a> Freeze for AwaitPromiseParams<'a>
impl<'a> RefUnwindSafe for AwaitPromiseParams<'a>
impl<'a> Send for AwaitPromiseParams<'a>
impl<'a> Sync for AwaitPromiseParams<'a>
impl<'a> Unpin for AwaitPromiseParams<'a>
impl<'a> UnsafeUnpin for AwaitPromiseParams<'a>
impl<'a> UnwindSafe for AwaitPromiseParams<'a>
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