pub struct GenesisCovenantGroup { /* private fields */ }Expand description
A genesis covenant group for bulk covenant binding population.
All listed outputs are bound to the same covenant id, derived from the authorizing input outpoint and this exact ordered output list. @category Consensus
Implementations§
Source§impl GenesisCovenantGroup
impl GenesisCovenantGroup
pub fn ctor(authorizing_input: u16, outputs: NumberArray) -> ClientResult<Self>
pub fn js_set_outputs(&mut self, outputs: NumberArray) -> ClientResult<()>
pub fn js_get_outputs(&self) -> NumberArray
pub fn to_js_object(&self) -> Result<Object, WasmError>
pub fn js_to_string(&self) -> Result<JsString, WasmError>
Trait Implementations§
Source§impl CastFromJs for GenesisCovenantGroup
impl CastFromJs for GenesisCovenantGroup
Source§fn try_ref_from_js_value<'a, R>(
js: &'a R,
) -> Result<<Self as RefFromWasmAbi>::Anchor, Error>
fn try_ref_from_js_value<'a, R>( js: &'a R, ) -> Result<<Self as RefFromWasmAbi>::Anchor, Error>
Obtain safe reference from
JsValueSource§fn try_long_ref_from_js_value<'a, R>(
js: &'a R,
) -> Result<<Self as RefFromWasmAbi>::Anchor, Error>
fn try_long_ref_from_js_value<'a, R>( js: &'a R, ) -> Result<<Self as RefFromWasmAbi>::Anchor, Error>
Obtain safe long reference from
JsValuefn try_ref_from_js_value_as_cast<'a, R>( js_value: &'a R, ) -> Result<Cast<'a, Self>, Error>
fn try_long_ref_from_js_value_as_cast<'a, R>( js: &'a R, ) -> Result<Cast<'a, Self>, Error>
Source§impl Clone for GenesisCovenantGroup
impl Clone for GenesisCovenantGroup
Source§impl Debug for GenesisCovenantGroup
impl Debug for GenesisCovenantGroup
Source§impl<'de> Deserialize<'de> for GenesisCovenantGroup
impl<'de> Deserialize<'de> for GenesisCovenantGroup
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<GenesisCovenantGroup> for JsValue
impl From<GenesisCovenantGroup> for JsValue
Source§fn from(value: GenesisCovenantGroup) -> Self
fn from(value: GenesisCovenantGroup) -> Self
Converts to this type from the input type.
Source§impl From<GenesisCovenantGroup> for GenesisCovenantGroup
impl From<GenesisCovenantGroup> for GenesisCovenantGroup
Source§fn from(inner: CoreGenesisCovenantGroup) -> Self
fn from(inner: CoreGenesisCovenantGroup) -> Self
Converts to this type from the input type.
Source§impl From<GenesisCovenantGroup> for GenesisCovenantGroup
impl From<GenesisCovenantGroup> for GenesisCovenantGroup
Source§fn from(wrapper: GenesisCovenantGroup) -> Self
fn from(wrapper: GenesisCovenantGroup) -> Self
Converts to this type from the input type.
Source§impl FromWasmAbi for GenesisCovenantGroup
impl FromWasmAbi for GenesisCovenantGroup
Source§impl IntoWasmAbi for GenesisCovenantGroup
impl IntoWasmAbi for GenesisCovenantGroup
Source§impl RefFromWasmAbi for GenesisCovenantGroup
impl RefFromWasmAbi for GenesisCovenantGroup
Source§type Anchor = RcRef<GenesisCovenantGroup>
type Anchor = RcRef<GenesisCovenantGroup>
The type that holds the reference to
Self for the duration of the
invocation of the function that has an &Self parameter. This is
required to ensure that the lifetimes don’t persist beyond one function
call, and so that they remain anonymous.Source§impl Serialize for GenesisCovenantGroup
impl Serialize for GenesisCovenantGroup
impl SupportsConstructor for GenesisCovenantGroup
impl SupportsInstanceProperty for GenesisCovenantGroup
impl SupportsStaticProperty for GenesisCovenantGroup
Source§impl TryCastFromJs for GenesisCovenantGroup
impl TryCastFromJs for GenesisCovenantGroup
type Error = Error
Source§fn try_cast_from<'a, R>(value: &'a R) -> Result<Cast<'a, Self>, Self::Error>
fn try_cast_from<'a, R>(value: &'a R) -> Result<Cast<'a, Self>, Self::Error>
Try to cast a JsValue into a Rust object.
This should be user-defined function that
attempts to cast a JsValue into a Rust object
or interpret a source data and create a
temporary struct owned by by the
Cast.Source§fn try_owned_from(value: impl AsRef<JsValue>) -> Result<Self, Self::Error>
fn try_owned_from(value: impl AsRef<JsValue>) -> Result<Self, Self::Error>
Perform a user cast and consume the
Cast container.
This function will return a temporary user-created
object created during [try_cast_from] or a clone of the casted reference.fn try_captured_cast_from( js_value: impl AsRef<JsValue>, ) -> Result<Cast<'static, Self>, Self::Error>
Source§fn resolve<'a, R>(
js: &'a R,
create: impl FnOnce() -> Result<Self, Self::Error>,
) -> Result<Cast<'a, Self>, Self::Error>
fn resolve<'a, R>( js: &'a R, create: impl FnOnce() -> Result<Self, Self::Error>, ) -> Result<Cast<'a, Self>, Self::Error>
Try to cast a JsValue into a Rust object, in cast of failure
invoke a user-supplied closure that can try to create an instance
of the object based on the supplied JsValue.
Source§fn resolve_cast<'a, R>(
js: &'a R,
create: impl FnOnce() -> Result<Cast<'a, Self>, Self::Error>,
) -> Result<Cast<'a, Self>, Self::Error>
fn resolve_cast<'a, R>( js: &'a R, create: impl FnOnce() -> Result<Cast<'a, Self>, Self::Error>, ) -> Result<Cast<'a, Self>, Self::Error>
Try to cast a JsValue into a Rust object, in cast of failure
invoke a user-supplied closure that can try to create an instance
of the object based on the supplied JsValue. Unlike the [
resolve]
function, this function expects create closure to return a Cast.
This is useful when routing the creation of the object to another
function that is capable of creating a compatible Cast wrapper.Source§impl VectorFromWasmAbi for GenesisCovenantGroup
impl VectorFromWasmAbi for GenesisCovenantGroup
type Abi = <Box<[JsValue]> as FromWasmAbi>::Abi
unsafe fn vector_from_abi(js: Self::Abi) -> Box<[GenesisCovenantGroup]>
Source§impl VectorIntoJsValue for GenesisCovenantGroup
impl VectorIntoJsValue for GenesisCovenantGroup
fn vector_into_jsvalue(vector: Box<[GenesisCovenantGroup]>) -> JsValue
Source§impl VectorIntoWasmAbi for GenesisCovenantGroup
impl VectorIntoWasmAbi for GenesisCovenantGroup
type Abi = <Box<[JsValue]> as IntoWasmAbi>::Abi
fn vector_into_abi(vector: Box<[GenesisCovenantGroup]>) -> Self::Abi
Source§impl WasmDescribeVector for GenesisCovenantGroup
impl WasmDescribeVector for GenesisCovenantGroup
Auto Trait Implementations§
impl Freeze for GenesisCovenantGroup
impl RefUnwindSafe for GenesisCovenantGroup
impl Send for GenesisCovenantGroup
impl Sync for GenesisCovenantGroup
impl Unpin for GenesisCovenantGroup
impl UnsafeUnpin for GenesisCovenantGroup
impl UnwindSafe for GenesisCovenantGroup
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T, U> OverflowingInto<U> for Twhere
U: OverflowingFrom<T>,
impl<T, U> OverflowingInto<U> for Twhere
U: OverflowingFrom<T>,
fn overflowing_into(self) -> (U, bool)
Source§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
Source§type Abi = <T as IntoWasmAbi>::Abi
type Abi = <T as IntoWasmAbi>::Abi
Same as
IntoWasmAbi::AbiSource§fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
Same as
IntoWasmAbi::into_abi, except that it may throw and never
return in the case of Err.