pub enum LogicEvent<UserData, SE, TW> {
NetNeighbour(NetPair, NeighboursControl),
NetDirect(Features, NetPair, ConnId, NetOutgoingMeta, Buffer),
NetRoute(Features, RouteRule, NetOutgoingMeta, Buffer),
Pin(ConnId, NodeId, NetPair, SecureContext),
UnPin(ConnId),
Feature(bool, FeaturesToWorker<UserData>),
Service(ServiceId, TW),
ExtFeaturesEvent(u16, UserData, FeaturesEvent),
ExtServicesEvent(u16, ServiceId, UserData, SE),
}Variants§
NetNeighbour(NetPair, NeighboursControl)
NetDirect(Features, NetPair, ConnId, NetOutgoingMeta, Buffer)
NetRoute(Features, RouteRule, NetOutgoingMeta, Buffer)
Pin(ConnId, NodeId, NetPair, SecureContext)
UnPin(ConnId)
Feature(bool, FeaturesToWorker<UserData>)
first bool is flag for broadcast or not
Service(ServiceId, TW)
ExtFeaturesEvent(u16, UserData, FeaturesEvent)
first u16 is worker id
ExtServicesEvent(u16, ServiceId, UserData, SE)
first u16 is worker id
Implementations§
Source§impl<UserData, SE, TW> LogicEvent<UserData, SE, TW>
impl<UserData, SE, TW> LogicEvent<UserData, SE, TW>
pub fn with_dest(self) -> LogicEventDest<UserData, SE, TW>
Trait Implementations§
Source§impl<UserData: Clone, SE: Clone, TW: Clone> Clone for LogicEvent<UserData, SE, TW>
impl<UserData: Clone, SE: Clone, TW: Clone> Clone for LogicEvent<UserData, SE, TW>
Source§fn clone(&self) -> LogicEvent<UserData, SE, TW>
fn clone(&self) -> LogicEvent<UserData, SE, TW>
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<UserData, SE, TW> From<LogicEvent<UserData, SE, TW>> for Output<UserData, SE, TW>
impl<UserData, SE, TW> From<LogicEvent<UserData, SE, TW>> for Output<UserData, SE, TW>
Source§fn from(val: LogicEvent<UserData, SE, TW>) -> Self
fn from(val: LogicEvent<UserData, SE, TW>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<UserData, SE, TW> Freeze for LogicEvent<UserData, SE, TW>
impl<UserData, SE, TW> !RefUnwindSafe for LogicEvent<UserData, SE, TW>
impl<UserData, SE, TW> Send for LogicEvent<UserData, SE, TW>
impl<UserData, SE, TW> Sync for LogicEvent<UserData, SE, TW>
impl<UserData, SE, TW> Unpin for LogicEvent<UserData, SE, TW>
impl<UserData, SE, TW> !UnwindSafe for LogicEvent<UserData, SE, TW>
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