#[repr(i32)]pub enum PortIdSubtype {
InterfaceAlias = 1,
PortComponent = 2,
MacAddress = 3,
NetworkAddress = 4,
InterfaceName = 5,
AgentCircuitId = 6,
Local = 7,
}Expand description
https://reference.opcfoundation.org/v105/Core/docs/Part22/5.3.1/#5.3.1.10
Variants§
InterfaceAlias = 1
Represents a port identifier based on the ifAlias MIB object defined in IETF RFC 2863.
PortComponent = 2
Represents a port identifier based on the value of entPhysicalAlias (defined in IETF RFC 2737) for a port component (i.e., entPhysicalClass value of port(10) or backplane(4)), within the containing chassis.
MacAddress = 3
Represents a port identifier based on a unicast source address (encoded in network byte order and IEEE 802.3 canonical bit order) which has been detected by the agent and associated with a particular port (IEEE Std 802-2014).
NetworkAddress = 4
Represents a port identifier based on a network address, detected by the agent and associated with a particular port.
InterfaceName = 5
Represents a port identifier based on the ifName MIB object, defined in IETF RFC 2863.
AgentCircuitId = 6
Represents a port identifier based on the agent-local identifier of the circuit (defined in IETF RFC 3046), detected by the agent and associated with a particular port.
Local = 7
Represents a port identifier based on a value locally assigned.
Trait Implementations§
Source§impl BinaryDecodable for PortIdSubtype
impl BinaryDecodable for PortIdSubtype
Source§fn decode<S: Read + ?Sized>(
stream: &mut S,
ctx: &Context<'_>,
) -> EncodingResult<Self>
fn decode<S: Read + ?Sized>( stream: &mut S, ctx: &Context<'_>, ) -> EncodingResult<Self>
BadDecodingError as soon as possible.Source§impl BinaryEncodable for PortIdSubtype
impl BinaryEncodable for PortIdSubtype
Source§fn byte_len(&self, ctx: &Context<'_>) -> usize
fn byte_len(&self, ctx: &Context<'_>) -> usize
encode were called.
This may be called prior to writing to ensure the correct amount of space is available.Source§fn encode<S: Write + ?Sized>(
&self,
stream: &mut S,
ctx: &Context<'_>,
) -> EncodingResult<()>
fn encode<S: Write + ?Sized>( &self, stream: &mut S, ctx: &Context<'_>, ) -> EncodingResult<()>
Source§fn override_encoding(&self) -> Option<BuiltInDataEncoding>
fn override_encoding(&self) -> Option<BuiltInDataEncoding>
Source§impl Clone for PortIdSubtype
impl Clone for PortIdSubtype
Source§fn clone(&self) -> PortIdSubtype
fn clone(&self) -> PortIdSubtype
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for PortIdSubtype
impl Debug for PortIdSubtype
Source§impl From<PortIdSubtype> for i32
impl From<PortIdSubtype> for i32
Source§fn from(value: PortIdSubtype) -> i32
fn from(value: PortIdSubtype) -> i32
Source§impl IntoVariant for PortIdSubtype
impl IntoVariant for PortIdSubtype
Source§fn into_variant(self) -> Variant
fn into_variant(self) -> Variant
Source§impl JsonDecodable for PortIdSubtype
impl JsonDecodable for PortIdSubtype
Source§fn decode(
stream: &mut JsonStreamReader<&mut dyn Read>,
ctx: &Context<'_>,
) -> EncodingResult<Self>
fn decode( stream: &mut JsonStreamReader<&mut dyn Read>, ctx: &Context<'_>, ) -> EncodingResult<Self>
Source§impl JsonEncodable for PortIdSubtype
impl JsonEncodable for PortIdSubtype
Source§fn encode(
&self,
stream: &mut JsonStreamWriter<&mut dyn Write>,
ctx: &Context<'_>,
) -> EncodingResult<()>
fn encode( &self, stream: &mut JsonStreamWriter<&mut dyn Write>, ctx: &Context<'_>, ) -> EncodingResult<()>
Source§impl PartialEq for PortIdSubtype
impl PartialEq for PortIdSubtype
Source§impl TryFrom<i32> for PortIdSubtype
impl TryFrom<i32> for PortIdSubtype
Source§impl UaEnum for PortIdSubtype
impl UaEnum for PortIdSubtype
Source§impl UaNullable for PortIdSubtype
impl UaNullable for PortIdSubtype
Source§fn is_ua_null(&self) -> bool
fn is_ua_null(&self) -> bool
Source§impl XmlDecodable for PortIdSubtype
impl XmlDecodable for PortIdSubtype
Source§fn decode(
stream: &mut XmlStreamReader<&mut dyn Read>,
ctx: &Context<'_>,
) -> EncodingResult<Self>
fn decode( stream: &mut XmlStreamReader<&mut dyn Read>, ctx: &Context<'_>, ) -> EncodingResult<Self>
Source§impl XmlEncodable for PortIdSubtype
impl XmlEncodable for PortIdSubtype
Source§fn encode(
&self,
stream: &mut XmlStreamWriter<&mut dyn Write>,
_ctx: &Context<'_>,
) -> EncodingResult<()>
fn encode( &self, stream: &mut XmlStreamWriter<&mut dyn Write>, _ctx: &Context<'_>, ) -> EncodingResult<()>
Source§impl XmlType for PortIdSubtype
impl XmlType for PortIdSubtype
impl Copy for PortIdSubtype
impl Eq for PortIdSubtype
impl StructuralPartialEq for PortIdSubtype
Auto Trait Implementations§
impl Freeze for PortIdSubtype
impl RefUnwindSafe for PortIdSubtype
impl Send for PortIdSubtype
impl Sync for PortIdSubtype
impl Unpin for PortIdSubtype
impl UnsafeUnpin for PortIdSubtype
impl UnwindSafe for PortIdSubtype
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.