pub enum FeaturesControl {
Neighbours(Control),
Data(Control),
RouterSync(Control),
Vpn(Control),
DhtKv(Control),
PubSub(Control),
Alias(Control),
Socket(Control),
}Variants§
Neighbours(Control)
Data(Control)
RouterSync(Control)
Vpn(Control)
DhtKv(Control)
PubSub(Control)
Alias(Control)
Socket(Control)
Implementations§
Source§impl FeaturesControl
impl FeaturesControl
pub fn to_feature(&self) -> Features
Trait Implementations§
Source§impl Clone for FeaturesControl
impl Clone for FeaturesControl
Source§fn clone(&self) -> FeaturesControl
fn clone(&self) -> FeaturesControl
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for FeaturesControl
impl Debug for FeaturesControl
Source§impl From<Control> for FeaturesControl
impl From<Control> for FeaturesControl
Source§impl From<Control> for FeaturesControl
impl From<Control> for FeaturesControl
Source§impl From<Control> for FeaturesControl
impl From<Control> for FeaturesControl
Source§impl From<Control> for FeaturesControl
impl From<Control> for FeaturesControl
Source§impl From<Control> for FeaturesControl
impl From<Control> for FeaturesControl
Source§impl From<Control> for FeaturesControl
impl From<Control> for FeaturesControl
Source§impl From<Control> for FeaturesControl
impl From<Control> for FeaturesControl
Source§impl From<Control> for FeaturesControl
impl From<Control> for FeaturesControl
Source§impl PartialEq for FeaturesControl
impl PartialEq for FeaturesControl
Source§impl<UserData, SC, SE, TC: Debug, TW: Debug> Service<UserData, FeaturesControl, FeaturesEvent, SC, SE, TC, TW> for Manual2DiscoveryService<UserData, SC, SE, TC, TW>
impl<UserData, SC, SE, TC: Debug, TW: Debug> Service<UserData, FeaturesControl, FeaturesEvent, SC, SE, TC, TW> for Manual2DiscoveryService<UserData, SC, SE, TC, TW>
fn is_service_empty(&self) -> bool
fn service_id(&self) -> u8
fn service_name(&self) -> &str
fn on_input( &mut self, _ctx: &ServiceCtx, _now: u64, input: ServiceInput<UserData, FeaturesEvent, SC, TC>, )
fn on_shutdown(&mut self, _ctx: &ServiceCtx, _now: u64)
fn pop_output2( &mut self, _now: u64, ) -> Option<ServiceOutput<UserData, FeaturesControl, SE, TW>>
Source§impl<UserData, SC, SE, TC: Debug, TW: Debug> Service<UserData, FeaturesControl, FeaturesEvent, SC, SE, TC, TW> for ManualDiscoveryService<UserData, SC, SE, TC, TW>
impl<UserData, SC, SE, TC: Debug, TW: Debug> Service<UserData, FeaturesControl, FeaturesEvent, SC, SE, TC, TW> for ManualDiscoveryService<UserData, SC, SE, TC, TW>
fn is_service_empty(&self) -> bool
fn service_id(&self) -> u8
fn service_name(&self) -> &str
fn on_input( &mut self, _ctx: &ServiceCtx, now: u64, input: ServiceInput<UserData, FeaturesEvent, SC, TC>, )
fn on_shutdown(&mut self, _ctx: &ServiceCtx, _now: u64)
fn pop_output2( &mut self, _now: u64, ) -> Option<ServiceOutput<UserData, FeaturesControl, SE, TW>>
Source§impl<UserData: Copy + Eq, SC, SE, TC, TW, Info> Service<UserData, FeaturesControl, FeaturesEvent, SC, SE, TC, TW> for VisualizationService<UserData, SC, SE, TC, TW, Info>
impl<UserData: Copy + Eq, SC, SE, TC, TW, Info> Service<UserData, FeaturesControl, FeaturesEvent, SC, SE, TC, TW> for VisualizationService<UserData, SC, SE, TC, TW, Info>
fn is_service_empty(&self) -> bool
fn service_id(&self) -> u8
fn service_name(&self) -> &str
fn on_input( &mut self, _ctx: &ServiceCtx, now: u64, input: ServiceInput<UserData, FeaturesEvent, SC, TC>, )
fn on_shutdown(&mut self, _ctx: &ServiceCtx, _now: u64)
fn pop_output2( &mut self, _now: u64, ) -> Option<ServiceOutput<UserData, FeaturesControl, SE, TW>>
Source§impl<UserData, SC, SE, TC, TW> ServiceBuilder<UserData, FeaturesControl, FeaturesEvent, SC, SE, TC, TW> for Manual2DiscoveryServiceBuilder<UserData, SC, SE, TC, TW>
impl<UserData, SC, SE, TC, TW> ServiceBuilder<UserData, FeaturesControl, FeaturesEvent, SC, SE, TC, TW> for Manual2DiscoveryServiceBuilder<UserData, SC, SE, TC, TW>
fn service_id(&self) -> u8
fn service_name(&self) -> &str
fn create( &self, ) -> Box<dyn Service<UserData, FeaturesControl, FeaturesEvent, SC, SE, TC, TW>>
fn create_worker( &self, ) -> Box<dyn ServiceWorker<UserData, FeaturesControl, FeaturesEvent, SC, SE, TC, TW>>
fn discoverable(&self) -> bool
Source§impl<UserData, SC, SE, TC, TW> ServiceBuilder<UserData, FeaturesControl, FeaturesEvent, SC, SE, TC, TW> for ManualDiscoveryServiceBuilder<UserData, SC, SE, TC, TW>
impl<UserData, SC, SE, TC, TW> ServiceBuilder<UserData, FeaturesControl, FeaturesEvent, SC, SE, TC, TW> for ManualDiscoveryServiceBuilder<UserData, SC, SE, TC, TW>
fn service_id(&self) -> u8
fn service_name(&self) -> &str
fn create( &self, ) -> Box<dyn Service<UserData, FeaturesControl, FeaturesEvent, SC, SE, TC, TW>>
fn create_worker( &self, ) -> Box<dyn ServiceWorker<UserData, FeaturesControl, FeaturesEvent, SC, SE, TC, TW>>
fn discoverable(&self) -> bool
Source§impl<UserData, SC, SE, TC, TW, Info> ServiceBuilder<UserData, FeaturesControl, FeaturesEvent, SC, SE, TC, TW> for VisualizationServiceBuilder<UserData, SC, SE, TC, TW, Info>where
UserData: 'static + Debug + Send + Sync + Copy + Eq,
Info: 'static + Debug + Serialize + DeserializeOwned + Clone + Send + Sync,
SC: 'static + Debug + Send + Sync + From<Control<Info>> + TryInto<Control<Info>>,
SE: 'static + Debug + Send + Sync + From<Event<Info>> + TryInto<Event<Info>>,
TC: 'static + Debug + Send + Sync,
TW: 'static + Debug + Send + Sync,
impl<UserData, SC, SE, TC, TW, Info> ServiceBuilder<UserData, FeaturesControl, FeaturesEvent, SC, SE, TC, TW> for VisualizationServiceBuilder<UserData, SC, SE, TC, TW, Info>where
UserData: 'static + Debug + Send + Sync + Copy + Eq,
Info: 'static + Debug + Serialize + DeserializeOwned + Clone + Send + Sync,
SC: 'static + Debug + Send + Sync + From<Control<Info>> + TryInto<Control<Info>>,
SE: 'static + Debug + Send + Sync + From<Event<Info>> + TryInto<Event<Info>>,
TC: 'static + Debug + Send + Sync,
TW: 'static + Debug + Send + Sync,
fn service_id(&self) -> u8
fn service_name(&self) -> &str
fn discoverable(&self) -> bool
fn create( &self, ) -> Box<dyn Service<UserData, FeaturesControl, FeaturesEvent, SC, SE, TC, TW>>
fn create_worker( &self, ) -> Box<dyn ServiceWorker<UserData, FeaturesControl, FeaturesEvent, SC, SE, TC, TW>>
Source§impl<UserData, SC, SE, TC, TW> ServiceWorker<UserData, FeaturesControl, FeaturesEvent, SC, SE, TC, TW> for Manual2DiscoveryServiceWorker<UserData, SC, SE, TC>
impl<UserData, SC, SE, TC, TW> ServiceWorker<UserData, FeaturesControl, FeaturesEvent, SC, SE, TC, TW> for Manual2DiscoveryServiceWorker<UserData, SC, SE, TC>
fn is_service_empty(&self) -> bool
fn service_id(&self) -> u8
fn service_name(&self) -> &str
fn on_tick(&mut self, _ctx: &ServiceWorkerCtx, _now: u64, _tick_count: u64)
fn on_input( &mut self, _ctx: &ServiceWorkerCtx, _now: u64, input: ServiceWorkerInput<UserData, FeaturesEvent, SC, TW>, )
fn on_shutdown(&mut self, _ctx: &ServiceWorkerCtx, _now: u64)
fn pop_output2( &mut self, _now: u64, ) -> Option<ServiceWorkerOutput<UserData, FeaturesControl, FeaturesEvent, SC, SE, TC>>
Source§impl<UserData, SC, SE, TC, TW> ServiceWorker<UserData, FeaturesControl, FeaturesEvent, SC, SE, TC, TW> for ManualDiscoveryServiceWorker<UserData, SC, SE, TC>
impl<UserData, SC, SE, TC, TW> ServiceWorker<UserData, FeaturesControl, FeaturesEvent, SC, SE, TC, TW> for ManualDiscoveryServiceWorker<UserData, SC, SE, TC>
fn is_service_empty(&self) -> bool
fn service_id(&self) -> u8
fn service_name(&self) -> &str
fn on_tick(&mut self, _ctx: &ServiceWorkerCtx, _now: u64, _tick_count: u64)
fn on_input( &mut self, _ctx: &ServiceWorkerCtx, _now: u64, input: ServiceWorkerInput<UserData, FeaturesEvent, SC, TW>, )
fn on_shutdown(&mut self, _ctx: &ServiceWorkerCtx, _now: u64)
fn pop_output2( &mut self, _now: u64, ) -> Option<ServiceWorkerOutput<UserData, FeaturesControl, FeaturesEvent, SC, SE, TC>>
Source§impl<UserData, SC, SE, TC, TW> ServiceWorker<UserData, FeaturesControl, FeaturesEvent, SC, SE, TC, TW> for VisualizationServiceWorker<UserData, SC, SE, TC>
impl<UserData, SC, SE, TC, TW> ServiceWorker<UserData, FeaturesControl, FeaturesEvent, SC, SE, TC, TW> for VisualizationServiceWorker<UserData, SC, SE, TC>
fn is_service_empty(&self) -> bool
fn service_id(&self) -> u8
fn service_name(&self) -> &str
fn on_tick(&mut self, _ctx: &ServiceWorkerCtx, _now: u64, _tick_count: u64)
fn on_input( &mut self, _ctx: &ServiceWorkerCtx, _now: u64, input: ServiceWorkerInput<UserData, FeaturesEvent, SC, TW>, )
fn pop_output2( &mut self, _now: u64, ) -> Option<ServiceWorkerOutput<UserData, FeaturesControl, FeaturesEvent, SC, SE, TC>>
fn on_shutdown(&mut self, _ctx: &ServiceWorkerCtx, _now: u64)
impl Eq for FeaturesControl
impl StructuralPartialEq for FeaturesControl
Auto Trait Implementations§
impl Freeze for FeaturesControl
impl RefUnwindSafe for FeaturesControl
impl Send for FeaturesControl
impl Sync for FeaturesControl
impl Unpin for FeaturesControl
impl UnwindSafe for FeaturesControl
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more