pub struct SuperChainRegistryManager { /* private fields */ }
Expand description
Directory manager that handles caching and downloading of genesis files
Implementations§
Source§impl SuperChainRegistryManager
impl SuperChainRegistryManager
Sourcepub fn new(base_path: impl Into<PathBuf>) -> Result<Self>
pub fn new(base_path: impl Into<PathBuf>) -> Result<Self>
Create a new registry manager with the given base path
Sourcepub fn dictionary_path(&self) -> PathBuf
pub fn dictionary_path(&self) -> PathBuf
Get the path to the dictionary file
Sourcepub fn genesis_path(&self, network_type: &str, network: &str) -> PathBuf
pub fn genesis_path(&self, network_type: &str, network: &str) -> PathBuf
Get the path to a genesis file for the given network (mainnet
, base
).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SuperChainRegistryManager
impl RefUnwindSafe for SuperChainRegistryManager
impl Send for SuperChainRegistryManager
impl Sync for SuperChainRegistryManager
impl Unpin for SuperChainRegistryManager
impl UnwindSafe for SuperChainRegistryManager
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> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T> WithSubscriber for T
impl<T> WithSubscriber for T
§fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
S: Into<Dispatch>,
§fn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
impl<T> ErasedDestructor for Twhere
T: 'static,
impl<T> MaybeSendSync for T
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...)
attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 24 bytes