#[repr(C)]pub struct probe_sampler_cache_interface {
pub enable: Option<unsafe extern "C" fn(obj: *mut conf_object_t)>,
pub disable: Option<unsafe extern "C" fn(obj: *mut conf_object_t)>,
pub get_generation: Option<unsafe extern "C" fn(obj: *mut conf_object_t) -> uint64>,
}
Fields§
§enable: Option<unsafe extern "C" fn(obj: *mut conf_object_t)>
§disable: Option<unsafe extern "C" fn(obj: *mut conf_object_t)>
§get_generation: Option<unsafe extern "C" fn(obj: *mut conf_object_t) -> uint64>
Trait Implementations§
source§impl Clone for probe_sampler_cache_interface
impl Clone for probe_sampler_cache_interface
source§fn clone(&self) -> probe_sampler_cache_interface
fn clone(&self) -> probe_sampler_cache_interface
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Default for probe_sampler_cache_interface
impl Default for probe_sampler_cache_interface
source§fn default() -> probe_sampler_cache_interface
fn default() -> probe_sampler_cache_interface
Returns the “default value” for a type. Read more
source§impl Hash for probe_sampler_cache_interface
impl Hash for probe_sampler_cache_interface
source§impl Ord for probe_sampler_cache_interface
impl Ord for probe_sampler_cache_interface
source§fn cmp(&self, other: &probe_sampler_cache_interface) -> Ordering
fn cmp(&self, other: &probe_sampler_cache_interface) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for probe_sampler_cache_interface
impl PartialEq for probe_sampler_cache_interface
source§fn eq(&self, other: &probe_sampler_cache_interface) -> bool
fn eq(&self, other: &probe_sampler_cache_interface) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.source§impl PartialOrd for probe_sampler_cache_interface
impl PartialOrd for probe_sampler_cache_interface
impl Copy for probe_sampler_cache_interface
impl Eq for probe_sampler_cache_interface
impl StructuralPartialEq for probe_sampler_cache_interface
Auto Trait Implementations§
impl Freeze for probe_sampler_cache_interface
impl RefUnwindSafe for probe_sampler_cache_interface
impl Send for probe_sampler_cache_interface
impl Sync for probe_sampler_cache_interface
impl Unpin for probe_sampler_cache_interface
impl UnwindSafe for probe_sampler_cache_interface
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)