pub enum ProbeRegistration {
Success,
Failed(String),
}Expand description
ProbeRegistration stores the result of registering probes with the DTrace kernel module.
Though unlikely, it’s possible that probe registration fails. This may happen, for example, if
the DTrace kernel module is extremely low on memory. One may want to abort the application in
this case, or one might decide that a running but degraded application is better than nothing i
such a situation. The ProbeRegistration enum contains information about whether probes were
successfully registered. The caller may decide how to handle such a case.
Variants§
Implementations§
Source§impl ProbeRegistration
impl ProbeRegistration
Sourcepub fn is_success(&self) -> bool
pub fn is_success(&self) -> bool
Helper to check if the variant is Success.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ProbeRegistration
impl RefUnwindSafe for ProbeRegistration
impl Send for ProbeRegistration
impl Sync for ProbeRegistration
impl Unpin for ProbeRegistration
impl UnwindSafe for ProbeRegistration
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