Struct lumina_node_wasm::node::WasmNodeConfig
source · pub struct WasmNodeConfig {
pub network: Network,
pub bootnodes: Vec<String>,
}
Expand description
Config for the lumina wasm node.
Fields§
§network: Network
A network to connect to.
bootnodes: Vec<String>
A list of bootstrap peers to connect to.
Implementations§
source§impl WasmNodeConfig
impl WasmNodeConfig
sourcepub fn default(network: Network) -> WasmNodeConfig
pub fn default(network: Network) -> WasmNodeConfig
Get the configuration with default bootnodes for provided network
Trait Implementations§
source§impl Debug for WasmNodeConfig
impl Debug for WasmNodeConfig
source§impl<'de> Deserialize<'de> for WasmNodeConfig
impl<'de> Deserialize<'de> for WasmNodeConfig
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<WasmNodeConfig> for JsValue
impl From<WasmNodeConfig> for JsValue
source§fn from(value: WasmNodeConfig) -> Self
fn from(value: WasmNodeConfig) -> Self
Converts to this type from the input type.
source§impl FromWasmAbi for WasmNodeConfig
impl FromWasmAbi for WasmNodeConfig
source§impl IntoWasmAbi for WasmNodeConfig
impl IntoWasmAbi for WasmNodeConfig
source§impl LongRefFromWasmAbi for WasmNodeConfig
impl LongRefFromWasmAbi for WasmNodeConfig
source§impl OptionFromWasmAbi for WasmNodeConfig
impl OptionFromWasmAbi for WasmNodeConfig
source§impl OptionIntoWasmAbi for WasmNodeConfig
impl OptionIntoWasmAbi for WasmNodeConfig
source§impl RefFromWasmAbi for WasmNodeConfig
impl RefFromWasmAbi for WasmNodeConfig
§type Anchor = RcRef<WasmNodeConfig>
type Anchor = RcRef<WasmNodeConfig>
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 RefMutFromWasmAbi for WasmNodeConfig
impl RefMutFromWasmAbi for WasmNodeConfig
source§impl Serialize for WasmNodeConfig
impl Serialize for WasmNodeConfig
source§impl TryFromJsValue for WasmNodeConfig
impl TryFromJsValue for WasmNodeConfig
source§impl VectorFromWasmAbi for WasmNodeConfig
impl VectorFromWasmAbi for WasmNodeConfig
type Abi = <Box<[JsValue]> as FromWasmAbi>::Abi
unsafe fn vector_from_abi(js: Self::Abi) -> Box<[WasmNodeConfig]>
source§impl VectorIntoJsValue for WasmNodeConfig
impl VectorIntoJsValue for WasmNodeConfig
fn vector_into_jsvalue(vector: Box<[WasmNodeConfig]>) -> JsValue
source§impl VectorIntoWasmAbi for WasmNodeConfig
impl VectorIntoWasmAbi for WasmNodeConfig
type Abi = <Box<[JsValue]> as IntoWasmAbi>::Abi
fn vector_into_abi(vector: Box<[WasmNodeConfig]>) -> Self::Abi
source§impl WasmDescribeVector for WasmNodeConfig
impl WasmDescribeVector for WasmNodeConfig
Auto Trait Implementations§
impl Freeze for WasmNodeConfig
impl RefUnwindSafe for WasmNodeConfig
impl Send for WasmNodeConfig
impl Sync for WasmNodeConfig
impl Unpin for WasmNodeConfig
impl UnwindSafe for WasmNodeConfig
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> 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> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
§type Abi = <T as IntoWasmAbi>::Abi
type Abi = <T as IntoWasmAbi>::Abi
Same as
IntoWasmAbi::Abi
source§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
.