pub struct EventHandler {
pub local_node: NodeId,
pub config: Arc<DistConfig>,
pub cluster: Arc<dyn DistCluster>,
pub network: Arc<dyn DistNetwork>,
pub local_stages: Arc<Mutex<HashMap<StageId, StageState>>>,
pub sender: Sender<Event>,
pub receiver: Receiver<Event>,
}Fields§
§local_node: NodeId§config: Arc<DistConfig>§cluster: Arc<dyn DistCluster>§network: Arc<dyn DistNetwork>§local_stages: Arc<Mutex<HashMap<StageId, StageState>>>§sender: Sender<Event>§receiver: Receiver<Event>Implementations§
Source§impl EventHandler
impl EventHandler
Auto Trait Implementations§
impl Freeze for EventHandler
impl !RefUnwindSafe for EventHandler
impl Send for EventHandler
impl Sync for EventHandler
impl Unpin for EventHandler
impl !UnwindSafe for EventHandler
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more