Closed TheBlueMatt closed 3 years ago
❌ Deploy Preview for ldk-docs-preview failed.
🔨 Explore the source changes: 15c251fb268223baaf4984b50fe2306af0489535
🔍 Inspect the deploy log: https://app.netlify.com/sites/ldk-docs-preview/deploys/60fc5db2d46c3a00073483c0
The constructor takes an Option
, the struct is parameterized by the thing inside the option (which must be Deref
), so this should work. See https://docs.rs/lightning/0.0.99/lightning/chain/chainmonitor/struct.ChainMonitor.html#method.new
I think
Option<Box<dyn Filter>>
isn't allowed because it doesn't implementDeref
.I think
Option<Box<dyn Filter>>
isn't allowed because it doesn't implementDeref
.
UPDATE: My confusion over ChainMonitor::new(...)
accepting Option<Box<dyn Filter>>
and Box<dyn Filter>
. This is all good.
I think
Box<dyn>
is maybe the simplest to understand for new Rust users. We could also useArc<dyn>
or simply&dyn
.Addresses the issue noted at https://github.com/lightningdevkit/lightningdevkit.org/discussions/55#discussioncomment-1044139