pub struct ConfigurationRef<'a> { /* private fields */ }Implementations§
Source§impl<'a> ConfigurationRef<'a>
impl<'a> ConfigurationRef<'a>
Sourcepub unsafe fn from_event_info(event_info: *const c_void) -> Option<Self>
pub unsafe fn from_event_info(event_info: *const c_void) -> Option<Self>
Borrows configuration event data supplied by SCS.
§Safety
event_info must be the non-null pointer supplied for a configuration
event. The structure must be correctly aligned and initialized; its ID
must be a valid NUL-terminated string, and its attributes must satisfy
NamedValues::from_ptr. All referenced data must remain alive for 'a.
pub fn id(self) -> &'a CStr
Sourcepub fn is(self, id: ConfigurationId) -> bool
pub fn is(self, id: ConfigurationId) -> bool
Tests this event against a typed configuration identifier.
Sourcepub fn trailer(self) -> Option<TrailerConfigurationId>
pub fn trailer(self) -> Option<TrailerConfigurationId>
Classifies an unnumbered or numbered trailer configuration ID.
Canonical numbered IDs use an unsigned decimal index without leading
zeroes. Malformed names, custom configuration IDs, and values outside
the SDK’s 0..10 trailer range return None rather than being confused
with the legacy compatibility alias.
Sourcepub fn trailer_index(self) -> Option<TrailerIndex>
pub fn trailer_index(self) -> Option<TrailerIndex>
Returns the numbered trailer index, excluding the legacy trailer ID.
Sourcepub fn is_legacy_trailer(self) -> bool
pub fn is_legacy_trailer(self) -> bool
Whether this event uses the legacy unnumbered trailer identity.
pub fn attributes(self) -> NamedValues<'a> ⓘ
Trait Implementations§
Source§impl<'a> Clone for ConfigurationRef<'a>
impl<'a> Clone for ConfigurationRef<'a>
Source§fn clone(&self) -> ConfigurationRef<'a>
fn clone(&self) -> ConfigurationRef<'a>
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more