WorkspaceExt

Trait WorkspaceExt 

Source
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§

Source

fn network(&self) -> Result<&NetworkClient>

Access the network client with clean syntax.

Source

fn io(&self) -> Result<&IoClient>

Access the IO client with clean syntax.

Source

fn storage(&self) -> Result<&StorageClient>

Access the storage client with clean syntax.

Implementors§