FeatureOutput

Enum FeatureOutput 

Source
pub enum FeatureOutput<UserData, Event, ToWorker> {
    ToWorker(bool, ToWorker),
    Event(FeatureControlActor<UserData>, Event),
    SendDirect(ConnId, NetOutgoingMeta, Buffer),
    SendRoute(RouteRule, NetOutgoingMeta, Buffer),
    NeighboursConnectTo(NodeAddr),
    NeighboursDisconnectFrom(NodeId),
    OnResourceEmpty,
}

Variants§

§

ToWorker(bool, ToWorker)

First bool is flag for broadcast or not

§

Event(FeatureControlActor<UserData>, Event)

§

SendDirect(ConnId, NetOutgoingMeta, Buffer)

§

SendRoute(RouteRule, NetOutgoingMeta, Buffer)

§

NeighboursConnectTo(NodeAddr)

§

NeighboursDisconnectFrom(NodeId)

§

OnResourceEmpty

Implementations§

Source§

impl<UserData, Event, ToWorker> FeatureOutput<UserData, Event, ToWorker>

Source

pub fn into2<UserData2, Event2, ToWorker2>( self, ) -> FeatureOutput<UserData2, Event2, ToWorker2>
where UserData2: From<UserData>, Event2: From<Event>, ToWorker2: From<ToWorker>,

Trait Implementations§

Source§

impl<UserData: Debug, Event: Debug, ToWorker: Debug> Debug for FeatureOutput<UserData, Event, ToWorker>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<UserData: PartialEq, Event: PartialEq, ToWorker: PartialEq> PartialEq for FeatureOutput<UserData, Event, ToWorker>

Source§

fn eq(&self, other: &FeatureOutput<UserData, Event, ToWorker>) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl<UserData> TaskSwitcherChild<FeatureOutput<UserData, Event, ShadowRouterDelta<ConnId, NetPair>>> for RouterSyncFeature<UserData>

Source§

type Time = u64

Source§

fn is_empty(&self) -> bool

Source§

fn empty_event(&self) -> Output<UserData>

Source§

fn pop_output(&mut self, _now: u64) -> Option<Output<UserData>>

Source§

impl<UserData> TaskSwitcherChild<FeatureOutput<UserData, Event, ToWorker<UserData>>> for PubSubFeature<UserData>

Source§

type Time = u64

Source§

fn is_empty(&self) -> bool

Source§

fn empty_event(&self) -> FeatureOutput<UserData, Event, ToWorker<UserData>>

Source§

fn pop_output( &mut self, _now: u64, ) -> Option<FeatureOutput<UserData, Event, ToWorker<UserData>>>

Source§

impl<UserData> TaskSwitcherChild<FeatureOutput<UserData, Event, ToWorker<UserData>>> for SocketFeature<UserData>

Source§

type Time = u64

Source§

fn is_empty(&self) -> bool

Source§

fn empty_event(&self) -> Output<UserData>

Source§

fn pop_output(&mut self, _now: u64) -> Option<Output<UserData>>

Source§

impl<UserData> TaskSwitcherChild<FeatureOutput<UserData, Event, ToWorker>> for AliasFeature<UserData>

Source§

type Time = u64

Source§

fn is_empty(&self) -> bool

Source§

fn empty_event(&self) -> Output<UserData>

Source§

fn pop_output(&mut self, _now: u64) -> Option<Output<UserData>>

Source§

impl<UserData> TaskSwitcherChild<FeatureOutput<UserData, Event, ToWorker>> for DataFeature<UserData>

Source§

type Time = u64

Source§

fn is_empty(&self) -> bool

Source§

fn empty_event(&self) -> Output<UserData>

Source§

fn pop_output(&mut self, _now: u64) -> Option<Output<UserData>>

Source§

impl<UserData: Eq + Copy + Debug> TaskSwitcherChild<FeatureOutput<UserData, Event, ToWorker>> for DhtKvFeature<UserData>

Source§

type Time = u64

Source§

fn is_empty(&self) -> bool

Source§

fn empty_event(&self) -> FeatureOutput<UserData, Event, ToWorker>

Source§

fn pop_output( &mut self, _now: u64, ) -> Option<FeatureOutput<UserData, Event, ToWorker>>

Source§

impl<UserData> TaskSwitcherChild<FeatureOutput<UserData, Event, ToWorker>> for NeighboursFeature<UserData>

Source§

type Time = u64

Source§

fn is_empty(&self) -> bool

Source§

fn empty_event(&self) -> Output<UserData>

Source§

fn pop_output(&mut self, _now: u64) -> Option<Output<UserData>>

Source§

impl<UserData> TaskSwitcherChild<FeatureOutput<UserData, Event, ToWorker>> for VpnFeature<UserData>

Source§

type Time = u64

Source§

fn is_empty(&self) -> bool

Source§

fn empty_event(&self) -> Output<UserData>

Source§

fn pop_output(&mut self, _now: u64) -> Option<Output<UserData>>

Source§

impl<UserData: Eq, Event: Eq, ToWorker: Eq> Eq for FeatureOutput<UserData, Event, ToWorker>

Source§

impl<UserData, Event, ToWorker> StructuralPartialEq for FeatureOutput<UserData, Event, ToWorker>

Auto Trait Implementations§

§

impl<UserData, Event, ToWorker> Freeze for FeatureOutput<UserData, Event, ToWorker>
where ToWorker: Freeze, Event: Freeze, UserData: Freeze,

§

impl<UserData, Event, ToWorker> RefUnwindSafe for FeatureOutput<UserData, Event, ToWorker>
where ToWorker: RefUnwindSafe, Event: RefUnwindSafe, UserData: RefUnwindSafe,

§

impl<UserData, Event, ToWorker> Send for FeatureOutput<UserData, Event, ToWorker>
where ToWorker: Send, Event: Send, UserData: Send,

§

impl<UserData, Event, ToWorker> Sync for FeatureOutput<UserData, Event, ToWorker>
where ToWorker: Sync, Event: Sync, UserData: Sync,

§

impl<UserData, Event, ToWorker> Unpin for FeatureOutput<UserData, Event, ToWorker>
where ToWorker: Unpin, Event: Unpin, UserData: Unpin,

§

impl<UserData, Event, ToWorker> UnwindSafe for FeatureOutput<UserData, Event, ToWorker>
where ToWorker: UnwindSafe, Event: UnwindSafe, UserData: UnwindSafe,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Any for T
where T: Any,

Source§

fn into_any(self: Box<T>) -> Box<dyn Any>

Source§

fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>

Source§

fn type_name(&self) -> &'static str

Source§

impl<T> AnySync for T
where T: Any + Send + Sync,

Source§

fn into_any_arc(self: Arc<T>) -> Arc<dyn Any + Sync + Send>

Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V