#[non_exhaustive]pub enum PortKind {
Device,
Chunk {
chunk_id: u64,
},
Event {
event_id: u64,
},
}Expand description
What a <Port> gives access to.
GenICam Standard v2.1.1 §2.8.16: a port “is just a proxy that forwards Read
and Write calls to the transport layer”. One with a <ChunkID> “does not
give access to a real device, but rather to the chunk of data residing in
memory”; one with an <EventID> likewise to the data an event message
carries. The ids are hexadecimal numbers written without a 0x: FLIR’s
TimestampPort is <ChunkID>0508000E</ChunkID>, its
EventExposureEndPort <EventID>9C43</EventID>.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Device
The device’s own register space.
Chunk
One chunk of a stream buffer, found by its chunk ID.
Event
One event message, found by its event ID.
Trait Implementations§
impl Copy for PortKind
Source§impl<'de> Deserialize<'de> for PortKind
impl<'de> Deserialize<'de> for PortKind
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<PortKind, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<PortKind, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for PortKind
Source§impl Serialize for PortKind
impl Serialize for PortKind
Source§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 StructuralPartialEq for PortKind
Auto Trait Implementations§
impl Freeze for PortKind
impl RefUnwindSafe for PortKind
impl Send for PortKind
impl Sync for PortKind
impl Unpin for PortKind
impl UnsafeUnpin for PortKind
impl UnwindSafe for PortKind
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
Mutably borrows from an owned value. Read more