pub struct AwaitPromise {
pub method: AwaitPromiseMethod,
pub params: AwaitPromiseParams,
}Expand description
Add handler to promise with given promise object id. awaitPromise
Fields§
§method: AwaitPromiseMethod§params: AwaitPromiseParamsImplementations§
Source§impl AwaitPromise
impl AwaitPromise
pub fn builder() -> AwaitPromiseBuilder
Source§impl AwaitPromise
impl AwaitPromise
pub const IDENTIFIER: &'static str = "Runtime.awaitPromise"
pub fn identifier(&self) -> &'static str
Trait Implementations§
Source§impl Clone for AwaitPromise
impl Clone for AwaitPromise
Source§fn clone(&self) -> AwaitPromise
fn clone(&self) -> AwaitPromise
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 CommandResult for AwaitPromise
impl CommandResult for AwaitPromise
type Result = AwaitPromiseResult
fn result_from_value(result: Value) -> Result<Self::Result>
Source§impl Debug for AwaitPromise
impl Debug for AwaitPromise
Source§impl<'de> Deserialize<'de> for AwaitPromise
impl<'de> Deserialize<'de> for AwaitPromise
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
Source§impl From<AwaitPromise> for Command
impl From<AwaitPromise> for Command
Source§fn from(v: AwaitPromise) -> Self
fn from(v: AwaitPromise) -> Self
Converts to this type from the input type.
Source§impl From<AwaitPromise> for JsProtocolCommands
impl From<AwaitPromise> for JsProtocolCommands
Source§fn from(v: AwaitPromise) -> Self
fn from(v: AwaitPromise) -> Self
Converts to this type from the input type.
Source§impl From<AwaitPromise> for RuntimeCommands
impl From<AwaitPromise> for RuntimeCommands
Source§fn from(v: AwaitPromise) -> Self
fn from(v: AwaitPromise) -> Self
Converts to this type from the input type.
Source§impl PartialEq for AwaitPromise
impl PartialEq for AwaitPromise
Source§impl Serialize for AwaitPromise
impl Serialize for AwaitPromise
Source§impl TryFrom<Command> for AwaitPromise
impl TryFrom<Command> for AwaitPromise
Source§impl TryFrom<JsProtocolCommands> for AwaitPromise
impl TryFrom<JsProtocolCommands> for AwaitPromise
Source§type Error = JsProtocolCommands
type Error = JsProtocolCommands
The type returned in the event of a conversion error.
Source§fn try_from(
e: JsProtocolCommands,
) -> Result<Self, <AwaitPromise as TryFrom<JsProtocolCommands>>::Error>
fn try_from( e: JsProtocolCommands, ) -> Result<Self, <AwaitPromise as TryFrom<JsProtocolCommands>>::Error>
Performs the conversion.
Source§impl TryFrom<RuntimeCommands> for AwaitPromise
impl TryFrom<RuntimeCommands> for AwaitPromise
Source§type Error = RuntimeCommands
type Error = RuntimeCommands
The type returned in the event of a conversion error.
Source§fn try_from(
e: RuntimeCommands,
) -> Result<Self, <AwaitPromise as TryFrom<RuntimeCommands>>::Error>
fn try_from( e: RuntimeCommands, ) -> Result<Self, <AwaitPromise as TryFrom<RuntimeCommands>>::Error>
Performs the conversion.
impl StructuralPartialEq for AwaitPromise
Auto Trait Implementations§
impl Freeze for AwaitPromise
impl RefUnwindSafe for AwaitPromise
impl Send for AwaitPromise
impl Sync for AwaitPromise
impl Unpin for AwaitPromise
impl UnsafeUnpin for AwaitPromise
impl UnwindSafe for AwaitPromise
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