pub struct PvaOpPayload {
pub sid_or_cid: u32,
pub ioid: u32,
pub subcmd: u8,
pub body: Vec<u8>,
pub command: u8,
pub is_server: bool,
pub status: Option<PvaStatus>,
pub pv_names: Vec<String>,
pub introspection: Option<StructureDesc>,
pub decoded_value: Option<DecodedValue>,
}Expand description
Generic operation payload (GET/PUT/PUT_GET/MONITOR/ARRAY/RPC)
Fields§
§sid_or_cid: u32§ioid: u32§subcmd: u8§body: Vec<u8>§command: u8§is_server: bool§status: Option<PvaStatus>§pv_names: Vec<String>§introspection: Option<StructureDesc>Parsed introspection data (for INIT responses)
decoded_value: Option<DecodedValue>Decoded value (when field_desc is available)
Implementations§
Source§impl PvaOpPayload
impl PvaOpPayload
pub fn new( raw: &[u8], is_be: bool, is_server: bool, command: u8, ) -> Option<Self>
Sourcepub fn decode_with_field_desc(
&mut self,
field_desc: &StructureDesc,
is_be: bool,
mode: DecodeMode,
) -> DecodeResult<()>
pub fn decode_with_field_desc( &mut self, field_desc: &StructureDesc, is_be: bool, mode: DecodeMode, ) -> DecodeResult<()>
Decode the body using provided field description.
See DecodeMode for the MONITOR bitset-layout policy. Live
connections, where the introspection is known, want
DecodeMode::Strict.
Trait Implementations§
Source§impl Debug for PvaOpPayload
impl Debug for PvaOpPayload
Auto Trait Implementations§
impl Freeze for PvaOpPayload
impl RefUnwindSafe for PvaOpPayload
impl Send for PvaOpPayload
impl Sync for PvaOpPayload
impl Unpin for PvaOpPayload
impl UnsafeUnpin for PvaOpPayload
impl UnwindSafe for PvaOpPayload
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