pub trait Connector {
// Required methods
fn connected<'life0, 'life1, 'async_trait>(
&'life0 self,
id: &'life1 Id
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn disconnected<'life0, 'life1, 'async_trait>(
&'life0 self,
id: &'life1 Id
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
}
Expand description
snow.validators.Connector
ref. https://pkg.go.dev/github.com/ava-labs/avalanchego/snow/validators#Connector