pub struct Promise {
pub resolved: Reference,
pub rejected: Reference,
pub next: Reference,
}
Fields§
§resolved: Reference
§rejected: Reference
§next: Reference
Implementations§
Source§impl Promise
impl Promise
pub fn new__intuicio_function(context: &mut Context, registry: &Registry)
pub fn new__define_signature(registry: &Registry) -> FunctionSignature
pub fn new__define_function(registry: &Registry) -> Function
pub fn then__intuicio_function(context: &mut Context, registry: &Registry)
pub fn then__define_signature(registry: &Registry) -> FunctionSignature
pub fn then__define_function(registry: &Registry) -> Function
pub fn resolve__intuicio_function(context: &mut Context, registry: &Registry)
pub fn resolve__define_signature(registry: &Registry) -> FunctionSignature
pub fn resolve__define_function(registry: &Registry) -> Function
pub fn reject__intuicio_function(context: &mut Context, registry: &Registry)
pub fn reject__define_signature(registry: &Registry) -> FunctionSignature
pub fn reject__define_function(registry: &Registry) -> Function
Source§impl Promise
impl Promise
pub fn new( registry: &Registry, resolved: Reference, rejected: Reference, ) -> Reference
pub fn then(promise: Reference, then: Reference) -> Reference
pub fn resolve( context: &mut Context, registry: &Registry, promise: Reference, value: Reference, ) -> Reference
pub fn reject( context: &mut Context, registry: &Registry, promise: Reference, value: Reference, ) -> Reference
Trait Implementations§
Source§impl IntuicioStruct for Promise
impl IntuicioStruct for Promise
fn define_struct(registry: &Registry) -> Struct
Auto Trait Implementations§
impl Freeze for Promise
impl !RefUnwindSafe for Promise
impl !Send for Promise
impl !Sync for Promise
impl Unpin for Promise
impl !UnwindSafe for Promise
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