pub struct DceRpcInterfaceUuid(pub [u8; 16]);smb only.Expand description
16-byte DCE-RPC interface UUID, the value advertised
in a BIND PDU’s abstract-syntax field. Wraps the raw
bytes with a canonical hyphenated-hex std::fmt::Display
form and a Self::well_known_name reverse lookup
for the famous lateral-movement / cred-dump / DCSync
interfaces.
Why a newtype: Vec<String> of UUIDs invites
stringly-typed comparison + duplicate format!
allocations. The newtype carries the bytes (16) and
formats once when displayed.
Tuple Fields§
§0: [u8; 16]Implementations§
Source§impl DceRpcInterfaceUuid
impl DceRpcInterfaceUuid
Sourcepub const fn from_bytes(bytes: [u8; 16]) -> Self
pub const fn from_bytes(bytes: [u8; 16]) -> Self
Construct from raw bytes as they appear in the abstract-syntax field of an MS-RPCE bind request. Per MS-DTYP the first three fields are little-endian, the last two big-endian; this struct preserves the raw byte order — formatting reorders for display.
Sourcepub fn well_known_name(&self) -> Option<&'static str>
pub fn well_known_name(&self) -> Option<&'static str>
Reverse lookup against the curated table of
well-known lateral-movement / cred-dump UUIDs.
Returns the IDL interface name (e.g. "svcctl",
"lsarpc", "drsuapi") or None for unknown
interfaces.
Source: Microsoft MS-* spec interface UUIDs.
Sourcepub fn canonical_string(&self) -> String
pub fn canonical_string(&self) -> String
Canonical hyphenated-hex form per MS-DTYP — first three fields little-endian, last two big-endian. Same format Wireshark / Zeek emit.
Trait Implementations§
Source§impl Clone for DceRpcInterfaceUuid
impl Clone for DceRpcInterfaceUuid
impl Copy for DceRpcInterfaceUuid
Source§impl Debug for DceRpcInterfaceUuid
impl Debug for DceRpcInterfaceUuid
Source§impl<'de> Deserialize<'de> for DceRpcInterfaceUuid
Available on crate feature serde only.
impl<'de> Deserialize<'de> for DceRpcInterfaceUuid
serde only.Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl Display for DceRpcInterfaceUuid
impl Display for DceRpcInterfaceUuid
impl Eq for DceRpcInterfaceUuid
Source§impl Hash for DceRpcInterfaceUuid
impl Hash for DceRpcInterfaceUuid
Source§impl PartialEq for DceRpcInterfaceUuid
impl PartialEq for DceRpcInterfaceUuid
Source§impl Serialize for DceRpcInterfaceUuid
Available on crate feature serde only.
impl Serialize for DceRpcInterfaceUuid
serde only.