pub enum StakeDistributionKind {
SingleKey,
BootstrapEra,
}Variants§
Trait Implementations§
Source§impl From<StakeDistributionKind> for JsValue
impl From<StakeDistributionKind> for JsValue
Source§fn from(value: StakeDistributionKind) -> Self
fn from(value: StakeDistributionKind) -> Self
Converts to this type from the input type.
Source§impl FromWasmAbi for StakeDistributionKind
impl FromWasmAbi for StakeDistributionKind
Source§impl IntoWasmAbi for StakeDistributionKind
impl IntoWasmAbi for StakeDistributionKind
Source§impl TryFromJsValue for StakeDistributionKind
impl TryFromJsValue for StakeDistributionKind
Source§fn try_from_js_value(
value: JsValue,
) -> Result<Self, <StakeDistributionKind as TryFromJsValue>::Error>
fn try_from_js_value( value: JsValue, ) -> Result<Self, <StakeDistributionKind as TryFromJsValue>::Error>
Performs the conversion.
Source§impl VectorFromWasmAbi for StakeDistributionKind
impl VectorFromWasmAbi for StakeDistributionKind
type Abi = <Box<[JsValue]> as FromWasmAbi>::Abi
unsafe fn vector_from_abi(js: Self::Abi) -> Box<[StakeDistributionKind]>
Source§impl VectorIntoJsValue for StakeDistributionKind
impl VectorIntoJsValue for StakeDistributionKind
fn vector_into_jsvalue(vector: Box<[StakeDistributionKind]>) -> JsValue
Source§impl VectorIntoWasmAbi for StakeDistributionKind
impl VectorIntoWasmAbi for StakeDistributionKind
type Abi = <Box<[JsValue]> as IntoWasmAbi>::Abi
fn vector_into_abi(vector: Box<[StakeDistributionKind]>) -> Self::Abi
Source§impl WasmDescribeVector for StakeDistributionKind
impl WasmDescribeVector for StakeDistributionKind
Auto Trait Implementations§
impl Freeze for StakeDistributionKind
impl RefUnwindSafe for StakeDistributionKind
impl Send for StakeDistributionKind
impl Sync for StakeDistributionKind
impl Unpin for StakeDistributionKind
impl UnwindSafe for StakeDistributionKind
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> 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> 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.