@@ -199,31 +199,31 @@ impl AsFd for ParentBackchannel {
199
199
/// Different messages exchanged between the monitor and the parent process using a [`ParentBackchannel`].
200
200
#[ derive( PartialEq , Eq ) ]
201
201
pub ( super ) enum MonitorMessage {
202
- ExecCommand ,
202
+ Edge ,
203
203
Signal ( c_int ) ,
204
204
}
205
205
206
206
impl MonitorMessage {
207
207
const LEN : usize = PREFIX_LEN + MONITOR_DATA_LEN ;
208
- const EXEC_CMD : Prefix = 0 ;
208
+ const EDGE_CMD : Prefix = 0 ;
209
209
const SIGNAL : Prefix = 1 ;
210
210
211
211
fn from_parts ( prefix : Prefix , data : MonitorData ) -> Self {
212
212
match prefix {
213
- Self :: EXEC_CMD => Self :: ExecCommand ,
213
+ Self :: EDGE_CMD => Self :: Edge ,
214
214
Self :: SIGNAL => Self :: Signal ( data) ,
215
215
_ => unreachable ! ( ) ,
216
216
}
217
217
}
218
218
219
219
fn to_parts ( & self ) -> ( Prefix , MonitorData ) {
220
220
let prefix = match self {
221
- MonitorMessage :: ExecCommand => Self :: EXEC_CMD ,
221
+ MonitorMessage :: Edge => Self :: EDGE_CMD ,
222
222
MonitorMessage :: Signal ( _) => Self :: SIGNAL ,
223
223
} ;
224
224
225
225
let data = match self {
226
- MonitorMessage :: ExecCommand => 0 ,
226
+ MonitorMessage :: Edge => 0 ,
227
227
MonitorMessage :: Signal ( data) => * data,
228
228
} ;
229
229
@@ -234,7 +234,7 @@ impl MonitorMessage {
234
234
impl std:: fmt:: Debug for MonitorMessage {
235
235
fn fmt ( & self , f : & mut std:: fmt:: Formatter < ' _ > ) -> std:: fmt:: Result {
236
236
match self {
237
- Self :: ExecCommand => "ExecCommand " . fmt ( f) ,
237
+ Self :: Edge => "Edge " . fmt ( f) ,
238
238
& Self :: Signal ( signal) => write ! ( f, "Signal({})" , signal_fmt( signal) ) ,
239
239
}
240
240
}
0 commit comments