Struct abstract_boot::OS
source · pub struct OS<Chain: BootEnvironment> {
pub manager: Manager<Chain>,
pub proxy: Proxy<Chain>,
}
Fields§
§manager: Manager<Chain>
§proxy: Proxy<Chain>
Implementations§
source§impl<Chain: BootEnvironment> OS<Chain>
impl<Chain: BootEnvironment> OS<Chain>
pub fn new(chain: &Chain, os_id: Option<u32>) -> Self
pub fn upload(&mut self) -> Result<(), BootError>
pub fn install_module<TInitMsg: Serialize>(
&mut self,
module_id: &str,
init_msg: &TInitMsg
) -> Result<(), BootError>
sourcepub fn expect_modules(
&self,
module_addrs: Vec<String>
) -> Result<Vec<ManagerModuleInfo>, BootError>
pub fn expect_modules(
&self,
module_addrs: Vec<String>
) -> Result<Vec<ManagerModuleInfo>, BootError>
Assert that the OS has the expected modules with the provided expected_module_addrs installed.
Also checks that the proxy’s configuration includes the expected module addresses.
Note that the proxy is automatically included in the assertions and should not (but can) be included in the expected list.
Returns the Vec
Auto Trait Implementations§
impl<Chain> !RefUnwindSafe for OS<Chain>
impl<Chain> !Send for OS<Chain>
impl<Chain> !Sync for OS<Chain>
impl<Chain> Unpin for OS<Chain>where
Chain: Unpin,
impl<Chain> !UnwindSafe for OS<Chain>
Blanket Implementations§
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