Trait bitcoin_sam::Handler

source ·
pub trait Handler: Disconnect { }
Expand description

| Generic interface for managing an event | handler or callback function registered with | another interface. Has a single disconnect | method to cancel the registration and prevent | any future notifications.

Trait Implementations§

source§

impl From<Connection> for Box<dyn Handler>

source§

fn from(connection: Connection) -> Box<dyn Handler>

| Return handler wrapping a boost signal | connection. |

source§

impl From<fn()> for Box<dyn Handler>

source§

fn from(cleanup: CleanupHandlerFn) -> Box<dyn Handler>

| Return handler wrapping a cleanup function. |

Implementors§