pub enum TraceRequest {
StartFfi(StartFfiInfo),
OverrideRetcode(i32),
}
Expand description
An IPC request sent by the child process to the parent.
The sender for this channel should live on the child process.
Variants§
StartFfi(StartFfiInfo)
Requests that tracing begins. Following this being sent, the child must
wait to receive a Confirmation
on the respective channel and then
raise(SIGSTOP)
.
To avoid possible issues while allocating memory for IPC channels, ending
the tracing is instead done via raise(SIGUSR1)
.
OverrideRetcode(i32)
Manually overrides the code that the supervisor will return upon exiting. Once set, it is permanent. This can be called again to change the value.
After sending this, the child must wait to receive a Confirmation
.
Trait Implementations§
Source§impl Clone for TraceRequest
impl Clone for TraceRequest
Source§fn clone(&self) -> TraceRequest
fn clone(&self) -> TraceRequest
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for TraceRequest
impl Debug for TraceRequest
Source§impl<'de> Deserialize<'de> for TraceRequest
impl<'de> Deserialize<'de> for TraceRequest
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Auto Trait Implementations§
impl Freeze for TraceRequest
impl RefUnwindSafe for TraceRequest
impl Send for TraceRequest
impl Sync for TraceRequest
impl Unpin for TraceRequest
impl UnwindSafe for TraceRequest
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...)
attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 32 bytes
Size for each variant:
StartFfi
: 32 bytesOverrideRetcode
: 12 bytes