#[non_exhaustive]pub struct HarnessUsageHookConfig {
pub device: DeviceIdentity,
}Expand description
Immutable producer context for Harness usage events.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.device: DeviceIdentityDevice identity attached to every generated event.
Implementations§
Source§impl HarnessUsageHookConfig
impl HarnessUsageHookConfig
Sourcepub const fn new(device: DeviceIdentity) -> Self
pub const fn new(device: DeviceIdentity) -> Self
Builds a producer configuration from explicit device identity.
Sourcepub fn from_platform() -> Self
pub fn from_platform() -> Self
Builds a producer configuration using local platform identity.
Trait Implementations§
Source§impl Clone for HarnessUsageHookConfig
impl Clone for HarnessUsageHookConfig
Auto Trait Implementations§
impl Freeze for HarnessUsageHookConfig
impl RefUnwindSafe for HarnessUsageHookConfig
impl Send for HarnessUsageHookConfig
impl Sync for HarnessUsageHookConfig
impl Unpin for HarnessUsageHookConfig
impl UnsafeUnpin for HarnessUsageHookConfig
impl UnwindSafe for HarnessUsageHookConfig
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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