pub struct AwaitPromiseReturnObjectBuilder { /* private fields */ }Expand description
Builder for AwaitPromiseReturnObject.
Implementations§
Source§impl AwaitPromiseReturnObjectBuilder
impl AwaitPromiseReturnObjectBuilder
Sourcepub fn result(&mut self, value: RemoteObject) -> &mut Self
pub fn result(&mut self, value: RemoteObject) -> &mut Self
Promise result. Will contain rejected value if promise was rejected.
Sourcepub fn exception_details(
&mut self,
value: Option<ExceptionDetails>,
) -> &mut Self
pub fn exception_details( &mut self, value: Option<ExceptionDetails>, ) -> &mut Self
Exception details if stack strace is available.
Sourcepub fn build(
&self,
) -> Result<AwaitPromiseReturnObject, AwaitPromiseReturnObjectBuilderError>
pub fn build( &self, ) -> Result<AwaitPromiseReturnObject, AwaitPromiseReturnObjectBuilderError>
Trait Implementations§
Source§impl Clone for AwaitPromiseReturnObjectBuilder
impl Clone for AwaitPromiseReturnObjectBuilder
Source§fn clone(&self) -> AwaitPromiseReturnObjectBuilder
fn clone(&self) -> AwaitPromiseReturnObjectBuilder
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 moreAuto Trait Implementations§
impl Freeze for AwaitPromiseReturnObjectBuilder
impl RefUnwindSafe for AwaitPromiseReturnObjectBuilder
impl Send for AwaitPromiseReturnObjectBuilder
impl Sync for AwaitPromiseReturnObjectBuilder
impl Unpin for AwaitPromiseReturnObjectBuilder
impl UnsafeUnpin for AwaitPromiseReturnObjectBuilder
impl UnwindSafe for AwaitPromiseReturnObjectBuilder
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