necoherence/network_host

Types

pub type AdapterPorts {
  AdapterPorts(
    start: fn(network_effect.SendCommand) -> StartResult,
  )
}

Constructors

pub type Execution {
  Execution(
    handle: network_effect.ExecutionHandle,
    observe: fn() -> Result(network_effect.HostObservation, Nil),
  )
}

Constructors

Values

pub fn handle(
  execution: Execution,
) -> network_effect.ExecutionHandle
pub fn observe(
  execution: Execution,
) -> Result(network_effect.HostObservation, Nil)
pub fn start_with_ports(
  command: network_effect.SendCommand,
  ports: AdapterPorts,
) -> StartResult
✨ Search Document