pub struct Control(pub ChannelId, pub ChannelControl);Tuple Fields§
§0: ChannelId§1: ChannelControlTrait Implementations§
Source§impl<UserData> Feature<UserData, Control, Event, ToController, ToWorker<UserData>> for PubSubFeature<UserData>
impl<UserData> Feature<UserData, Control, Event, ToController, ToWorker<UserData>> for PubSubFeature<UserData>
fn on_input( &mut self, ctx: &FeatureContext, now_ms: u64, input: FeatureInput<'_, UserData, Control, ToController>, )
fn on_shutdown(&mut self, _ctx: &FeatureContext, _now: u64)
Source§impl<UserData> FeatureWorker<UserData, Control, Event, ToController, ToWorker<UserData>> for PubSubFeatureWorker<UserData>
impl<UserData> FeatureWorker<UserData, Control, Event, ToController, ToWorker<UserData>> for PubSubFeatureWorker<UserData>
fn on_network_raw( &mut self, _ctx: &mut FeatureWorkerContext, _now: u64, _conn: ConnId, remote: NetPair, _header: TransportMsgHeader, buf: Buffer, )
fn on_input( &mut self, ctx: &mut FeatureWorkerContext, _now: u64, input: FeatureWorkerInput<UserData, Control, ToWorker<UserData>>, )
fn on_shutdown(&mut self, _ctx: &mut FeatureWorkerContext, _now: u64)
fn on_tick( &mut self, _ctx: &mut FeatureWorkerContext, _now: u64, _tick_count: u64, )
Source§impl From<Control> for FeaturesControl
impl From<Control> for FeaturesControl
Source§fn from(val: Control) -> FeaturesControl
fn from(val: Control) -> FeaturesControl
Converts to this type from the input type.
impl Eq for Control
impl StructuralPartialEq for Control
Auto Trait Implementations§
impl Freeze for Control
impl RefUnwindSafe for Control
impl Send for Control
impl Sync for Control
impl Unpin for Control
impl UnwindSafe for Control
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