@@ -199,31 +199,31 @@ impl AsFd for ParentBackchannel {
199199/// Different messages exchanged between the monitor and the parent process using a [`ParentBackchannel`].
200200#[ derive( PartialEq , Eq ) ]
201201pub ( super ) enum MonitorMessage {
202- ExecCommand ,
202+ Edge ,
203203 Signal ( c_int ) ,
204204}
205205
206206impl MonitorMessage {
207207 const LEN : usize = PREFIX_LEN + MONITOR_DATA_LEN ;
208- const EXEC_CMD : Prefix = 0 ;
208+ const EDGE_CMD : Prefix = 0 ;
209209 const SIGNAL : Prefix = 1 ;
210210
211211 fn from_parts ( prefix : Prefix , data : MonitorData ) -> Self {
212212 match prefix {
213- Self :: EXEC_CMD => Self :: ExecCommand ,
213+ Self :: EDGE_CMD => Self :: Edge ,
214214 Self :: SIGNAL => Self :: Signal ( data) ,
215215 _ => unreachable ! ( ) ,
216216 }
217217 }
218218
219219 fn to_parts ( & self ) -> ( Prefix , MonitorData ) {
220220 let prefix = match self {
221- MonitorMessage :: ExecCommand => Self :: EXEC_CMD ,
221+ MonitorMessage :: Edge => Self :: EDGE_CMD ,
222222 MonitorMessage :: Signal ( _) => Self :: SIGNAL ,
223223 } ;
224224
225225 let data = match self {
226- MonitorMessage :: ExecCommand => 0 ,
226+ MonitorMessage :: Edge => 0 ,
227227 MonitorMessage :: Signal ( data) => * data,
228228 } ;
229229
@@ -234,7 +234,7 @@ impl MonitorMessage {
234234impl std:: fmt:: Debug for MonitorMessage {
235235 fn fmt ( & self , f : & mut std:: fmt:: Formatter < ' _ > ) -> std:: fmt:: Result {
236236 match self {
237- Self :: ExecCommand => "ExecCommand " . fmt ( f) ,
237+ Self :: Edge => "Edge " . fmt ( f) ,
238238 & Self :: Signal ( signal) => write ! ( f, "Signal({})" , signal_fmt( signal) ) ,
239239 }
240240 }
0 commit comments