pub enum ActionRequest {
Normal {
invoke_id_and_priority: u8,
method: MethodDescriptor,
parameters: Option<CosemDataType>,
},
NextPblock {
invoke_id_and_priority: u8,
block_number: u32,
},
WithFirstPblock {
invoke_id_and_priority: u8,
method: MethodDescriptor,
datablock: DataBlockSa,
},
WithPblock {
invoke_id_and_priority: u8,
datablock: DataBlockSa,
},
WithList {
invoke_id_and_priority: u8,
methods: Vec<MethodDescriptor>,
parameters: Vec<CosemDataType>,
},
}Expand description
An ACTION-Request APDU.
Variants§
Normal
ACTION-REQUEST-NORMAL: invoke a single method.
Fields
method: MethodDescriptorThe method to invoke.
parameters: Option<CosemDataType>Method invocation parameters, if any.
NextPblock
ACTION-REQUEST-NEXT-PBLOCK: acknowledge a response block and ask for the next.
Fields
WithFirstPblock
ACTION-REQUEST-WITH-FIRST-PBLOCK: method reference and the first block of the invocation parameters.
Fields
method: MethodDescriptorThe method to invoke.
datablock: DataBlockSaThe first block of the invocation parameters.
WithPblock
ACTION-REQUEST-WITH-PBLOCK: a subsequent block of the invocation parameters.
Fields
datablock: DataBlockSaThe next block of the invocation parameters.
WithList
ACTION-REQUEST-WITH-LIST: invoke several methods in one request. The
invocation-parameters list holds one Data per method (Null when a
method takes no parameters).
Fields
methods: Vec<MethodDescriptor>The methods to invoke, in order.
parameters: Vec<CosemDataType>The invocation parameters, one per method in order.
Implementations§
Source§impl ActionRequest
impl ActionRequest
Sourcepub fn decode(bytes: &[u8]) -> Result<ActionRequest, ServiceError>
pub fn decode(bytes: &[u8]) -> Result<ActionRequest, ServiceError>
Decodes a request APDU.
Trait Implementations§
Source§impl Clone for ActionRequest
impl Clone for ActionRequest
Source§fn clone(&self) -> ActionRequest
fn clone(&self) -> ActionRequest
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more