pub struct PortFn {
pub js_name: String,
pub rust_name: String,
pub params: Vec<(String, String)>,
pub ret: String,
pub fallible: bool,
pub is_async: bool,
}Expand description
A port function, as declared in port.rs.
Fields§
§js_name: String§rust_name: String§params: Vec<(String, String)>§ret: StringThe success type, () for none.
fallible: boolReturns Result<T, String>; an Err becomes a thrown JS error.
is_async: boolTrait Implementations§
impl Eq for PortFn
impl StructuralPartialEq for PortFn
Auto Trait Implementations§
impl Forget for PortFn
impl Freeze for PortFn
impl Move for PortFn
impl RefUnwindSafe for PortFn
impl Send for PortFn
impl Sync for PortFn
impl Unpin for PortFn
impl UnsafeUnpin for PortFn
impl UnwindSafe for PortFn
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.