Struct ibc_relayer::config::Config
source · pub struct Config {
pub global: GlobalConfig,
pub mode: ModeConfig,
pub rest: RestConfig,
pub telemetry: TelemetryConfig,
pub chains: Vec<ChainConfig>,
pub tracing_server: TracingServerConfig,
}
Fields§
§global: GlobalConfig
§mode: ModeConfig
§rest: RestConfig
§telemetry: TelemetryConfig
§chains: Vec<ChainConfig>
§tracing_server: TracingServerConfig
Implementations§
source§impl Config
impl Config
pub fn has_chain(&self, id: &ChainId) -> bool
pub fn find_chain(&self, id: &ChainId) -> Option<&ChainConfig>
pub fn find_chain_mut(&mut self, id: &ChainId) -> Option<&mut ChainConfig>
sourcepub fn packets_on_channel_allowed(
&self,
chain_id: &ChainId,
port_id: &PortId,
channel_id: &ChannelId
) -> bool
pub fn packets_on_channel_allowed( &self, chain_id: &ChainId, port_id: &PortId, channel_id: &ChannelId ) -> bool
pub fn chains_map(&self) -> BTreeMap<&ChainId, &ChainConfig>
Trait Implementations§
source§impl<'de> Deserialize<'de> for Config
impl<'de> Deserialize<'de> for Config
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
Auto Trait Implementations§
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnwindSafe for Config
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
§impl<T> FutureExt for T
impl<T> FutureExt for T
§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
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> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request