pub struct AwaitPromiseParams {
pub promiseObjectId: RemoteObjectId,
pub returnByValue: Option<bool>,
pub generatePreview: Option<bool>,
}Expand description
Add handler to promise with given promise object id.
Fields§
§promiseObjectId: RemoteObjectIdIdentifier of the promise.
returnByValue: Option<bool>Whether the result is expected to be a JSON object that should be sent by value.
generatePreview: Option<bool>Whether preview should be generated for the result.
Trait Implementations§
Source§impl Clone for AwaitPromiseParams
impl Clone for AwaitPromiseParams
Source§fn clone(&self) -> AwaitPromiseParams
fn clone(&self) -> AwaitPromiseParams
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 Debug for AwaitPromiseParams
impl Debug for AwaitPromiseParams
Source§impl Default for AwaitPromiseParams
impl Default for AwaitPromiseParams
Source§fn default() -> AwaitPromiseParams
fn default() -> AwaitPromiseParams
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for AwaitPromiseParams
impl<'de> Deserialize<'de> for AwaitPromiseParams
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 AwaitPromiseParams
impl RefUnwindSafe for AwaitPromiseParams
impl Send for AwaitPromiseParams
impl Sync for AwaitPromiseParams
impl Unpin for AwaitPromiseParams
impl UnsafeUnpin for AwaitPromiseParams
impl UnwindSafe for AwaitPromiseParams
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