Struct boot_core::DaemonState
source · pub struct DaemonState {
pub json_file_path: String,
pub kind: NetworkKind,
pub id: String,
pub grpc_channel: Channel,
pub chain: ChainInfo<'static>,
pub gas_denom: Denom,
pub gas_price: f64,
pub lcd_url: Option<String>,
pub fcd_url: Option<String>,
}Fields
json_file_path: Stringkind: NetworkKindWhat kind of network
id: StringIdentifier for the network ex. columbus-2
grpc_channel: ChannelgRPC channel
chain: ChainInfo<'static>Underlying chain details
gas_denom: DenomMax gas and denom info
gas_price: f64gas price
lcd_url: Option<String>Optional urls for custom functionality
fcd_url: Option<String>Implementations
sourceimpl DaemonState
impl DaemonState
pub async fn new(
network: NetworkInfo<'static>
) -> Result<DaemonState, BootError>
pub fn check_file_validity(&self)
Trait Implementations
sourceimpl Clone for DaemonState
impl Clone for DaemonState
sourcefn clone(&self) -> DaemonState
fn clone(&self) -> DaemonState
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations
impl !RefUnwindSafe for DaemonState
impl Send for DaemonState
impl Sync for DaemonState
impl Unpin for DaemonState
impl !UnwindSafe for DaemonState
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
sourcefn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request