Trait ethcore_light::net::EventContext [] [src]

pub trait EventContext: BasicContext {
    fn peer(&self) -> PeerId;
    fn as_basic(&self) -> &BasicContext;
}

Context for a protocol event which has a peer ID attached.

Required Methods

Get the peer relevant to the event e.g. message sender, disconnected/connected peer.

Treat the event context as a basic context.

Implementors