Struct sentry_core::protocol::debugid::CodeId
pub struct CodeId { /* private fields */ }Expand description
Unique platform-dependent identifier of code files.
This identifier assumes a string representation that depends on the platform and compiler used. The representation only retains hex characters and canonically stores lower case.
There are the following known formats:
- MachO UUID: The unique identifier of a Mach binary, specified in the
LC_UUIDload command header. - GNU Build ID: Contents of the
.gnu.build-idnote or section contents formatted as lowercase hex string. - PE Timestamp: Timestamp and size of image values from a Windows PE header. The size of
image value is truncated, so the length of the
CodeIdmight not be a multiple of 2.
Implementations
impl CodeId
impl CodeId
pub fn from_binary(slice: &[u8]) -> CodeId
pub fn from_binary(slice: &[u8]) -> CodeId
Constructs a CodeId from a binary slice.
Trait Implementations
impl<'de> Deserialize<'de> for CodeId
impl<'de> Deserialize<'de> for CodeId
fn deserialize<D>(
deserializer: D
) -> Result<CodeId, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
fn deserialize<D>(
deserializer: D
) -> Result<CodeId, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl FromStr for CodeId
impl FromStr for CodeId
type Err = ParseCodeIdError
type Err = ParseCodeIdError
The associated error which can be returned from parsing.
impl Ord for CodeId
impl Ord for CodeId
1.21.0 · sourcefn 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
1.21.0 · sourcefn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
1.50.0 · sourcefn clamp(self, min: Self, max: Self) -> Selfwhere
Self: Sized + PartialOrd<Self>,
fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: Sized + PartialOrd<Self>,
Restrict a value to a certain interval. Read more
impl PartialOrd<CodeId> for CodeId
impl PartialOrd<CodeId> for CodeId
fn partial_cmp(&self, other: &CodeId) -> Option<Ordering>
fn partial_cmp(&self, other: &CodeId) -> Option<Ordering>
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self and other) and is used by the <=
operator. Read moreimpl Serialize for CodeId
impl Serialize for CodeId
fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl Eq for CodeId
impl StructuralEq for CodeId
impl StructuralPartialEq for CodeId
Auto Trait Implementations
impl RefUnwindSafe for CodeId
impl Send for CodeId
impl Sync for CodeId
impl Unpin for CodeId
impl UnwindSafe for CodeId
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.