Skip to main content

MemoryHost

Type Alias MemoryHost 

Source
pub type MemoryHost = Host<MemoryStore<HostState>>;
Expand description

A host provider that keeps its state in this process.

Aliased Type§

pub struct MemoryHost { /* private fields */ }

Implementations§

Source§

impl MemoryHost

Source

pub fn new() -> Self

A host with nothing opened against it.

Source

pub fn seeded(state: HostState) -> Self

A host that starts from a scenario.

Source

pub fn state(&self) -> HostState

Everything it knows.

Trait Implementations§

Source§

impl Default for MemoryHost

Source§

fn default() -> Self

Returns the “default value” for a type. Read more