Skip to content

Commit cc487a2

Browse files
Merge pull request #666 from frankmcsherry/columnar_051
Derive `Copy` for logging types
2 parents 1b89cb8 + 519d60e commit cc487a2

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

timely/src/logging.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -137,15 +137,15 @@ pub struct MessagesEvent {
137137
}
138138

139139
/// Records the starting and stopping of an operator.
140-
#[derive(Serialize, Deserialize, Columnar, Debug, Clone, Hash, PartialEq, Eq, Ord, PartialOrd)]
140+
#[derive(Serialize, Deserialize, Columnar, Debug, Copy, Clone, Hash, PartialEq, Eq, Ord, PartialOrd)]
141141
pub enum StartStop {
142142
/// Operator starts.
143143
Start,
144144
/// Operator stops.
145145
Stop,
146146
}
147147

148-
#[derive(Serialize, Deserialize, Columnar, Debug, Clone, Hash, Eq, PartialEq, Ord, PartialOrd)]
148+
#[derive(Serialize, Deserialize, Columnar, Debug, Copy, Clone, Hash, Eq, PartialEq, Ord, PartialOrd)]
149149
/// Operator start or stop.
150150
pub struct ScheduleEvent {
151151
/// Worker-unique identifier for the operator, linkable to the identifiers in [`OperatesEvent`].
@@ -200,7 +200,7 @@ pub struct TimelySetup {
200200
pub index: usize,
201201
}
202202

203-
#[derive(Serialize, Deserialize, Columnar, Debug, Clone, Hash, Eq, PartialEq, Ord, PartialOrd)]
203+
#[derive(Serialize, Deserialize, Columnar, Debug, Copy, Clone, Hash, Eq, PartialEq, Ord, PartialOrd)]
204204
/// Kind of communication channel
205205
pub enum CommChannelKind {
206206
/// Communication channel carrying progress information
@@ -209,7 +209,7 @@ pub enum CommChannelKind {
209209
Data,
210210
}
211211

212-
#[derive(Serialize, Deserialize, Columnar, Debug, Clone, Hash, Eq, PartialEq, Ord, PartialOrd)]
212+
#[derive(Serialize, Deserialize, Columnar, Debug, Copy, Clone, Hash, Eq, PartialEq, Ord, PartialOrd)]
213213
/// Event on a communication channel
214214
pub struct CommChannelsEvent {
215215
/// Communication channel identifier
@@ -218,7 +218,7 @@ pub struct CommChannelsEvent {
218218
pub kind: CommChannelKind,
219219
}
220220

221-
#[derive(Serialize, Deserialize, Columnar, Debug, Clone, Hash, Eq, PartialEq, Ord, PartialOrd)]
221+
#[derive(Serialize, Deserialize, Columnar, Debug, Copy, Clone, Hash, Eq, PartialEq, Ord, PartialOrd)]
222222
/// Input logic start/stop
223223
pub struct InputEvent {
224224
/// True when activity begins, false when it stops

0 commit comments

Comments
 (0)