[][src]Trait adbfbinlib::net::sm::StateMachineContext

pub trait StateMachineContext {
    fn is_allowed(&mut self, event_data: &UpdateData) -> bool;
fn known(&mut self, event_data: &PeerId) -> bool;
fn not_known(&mut self, event_data: &NewPeerData) -> bool;
fn update_peer(&mut self, event_data: &UpdateData);
fn remove_peer(&mut self, event_data: &PeerId);
fn process_new_peer(&mut self, event_data: &NewPeerData); }

This trait outlines the guards and actions that need to be implemented for the state machine.

Required methods

fn is_allowed(&mut self, event_data: &UpdateData) -> bool[src]

fn known(&mut self, event_data: &PeerId) -> bool[src]

fn not_known(&mut self, event_data: &NewPeerData) -> bool[src]

fn update_peer(&mut self, event_data: &UpdateData)[src]

fn remove_peer(&mut self, event_data: &PeerId)[src]

fn process_new_peer(&mut self, event_data: &NewPeerData)[src]

Loading content...

Implementors

impl StateMachineContext for AdbfStateChart[src]

Loading content...