waku-org / waku-rust-bindings

Rust wrapper over go-waku ffi
14 stars 6 forks source link

Accessing node handle config from WakuNodeHandle #80

Open petkodes opened 9 months ago

petkodes commented 9 months ago

Hello friends, for Graphcast SDK we would like to be able to access (read) the local Waku node configurations (a WakuNodeConfig struct) directly from a WakuNodeHandle instance.

For instance, here's how we would instantiate a handle:

let node_handle = waku_new(Some(node_config)).unwrap().start().unwrap();

Later on, we would like to be able to call node_handle.filter or node_handle.config.filter or any other relevant field.

Bonus: if you could add the Display trait to WakuNodeHandle that would help a lot with debugging