Function set_parameters_with_logging_hooks

Source
pub async fn set_parameters_with_logging_hooks<IterTy, TcpSessionHook, ConnectionEstablishedHook, WriteFinishedHook, ReadFinishedHook, SetNewValueHook, WriteSetFinishedHook>(
    parameters_to_set: IterTy,
    mion_addr: Ipv4Addr,
    parameter_port: Option<u16>,
    timeout: Option<Duration>,
    tcp_session_logging_hook: TcpSessionHook,
    connection_established_logging_hook: ConnectionEstablishedHook,
    write_finished_hook: WriteFinishedHook,
    read_finished_hook: ReadFinishedHook,
    set_new_value_hook: SetNewValueHook,
    write_set_finished_hook: WriteSetFinishedHook,
) -> Result<(SetMionParametersResponse, FnvHashMap<usize, u8>), CatBridgeError>
where IterTy: Iterator<Item = (ParameterLocationSpecification, u8)>, TcpSessionHook: Fn(u128) + Clone + Send + 'static, ConnectionEstablishedHook: Fn(Ipv4Addr) + Clone + Send + 'static, WriteFinishedHook: Fn(usize) + Clone + Send + 'static, ReadFinishedHook: Fn(usize) + Clone + Send + 'static, SetNewValueHook: Fn(u8, u8, usize) + Clone + Send + 'static, WriteSetFinishedHook: Fn(usize) + Clone + Send + 'static,
Expand description

Set one or more parameters for the parameter space of a MION bridge.

These are the parameters you can access from the normal CLI tools:

  • mionps.exe
  • mionparameterspace.exe

It’s unclear what many of these parameters are, but we know it contains at least certain values like the SDK version, NAND Mode, etc.

This is the function that allows you to specify EXTRA logging hooks (e.g. those that aren’t written to tracing, for like when you need to manually recreate a CLI with old hacky println!).

You probably want set_parameters.

§Errors

See set_parameters.