pub trait WorkspaceExt: Workspace {
// Provided methods
fn network(&self) -> Result<&NetworkClient> { ... }
fn io(&self) -> Result<&IoClient> { ... }
fn storage(&self) -> Result<&StorageClient> { ... }
}Expand description
Extension trait providing ergonomic service access for workspaces.
Any type implementing Workspace automatically gets these helper methods.
Provided Methods§
Sourcefn network(&self) -> Result<&NetworkClient>
fn network(&self) -> Result<&NetworkClient>
Access the network client with clean syntax.
Sourcefn storage(&self) -> Result<&StorageClient>
fn storage(&self) -> Result<&StorageClient>
Access the storage client with clean syntax.