pub struct OverwriteParameterMsg {
pub header: Option<Header>,
pub offset: Option<ParameterOffset>,
pub activate: bool,
pub path: String,
pub value: Vec<u8>,
}
Expand description
Request to overwrite/force a parameter value.
User’s request to force a parameter value. For the Input and Parameter types the input value will be overwritten, for the Output type, the output value will be overwritten.
By enabling flag ‘activate’, overwrite value will be active until the flag is disabled, by ether commanding ReleaseParameterMsg or OverwriteParameterMsg with ‘activate’ - false.
Server’s reply: StatusMsg, with following status codes:
StatusCode::OK - operation successful,
StatusCode::FAILED - operation failed.
StatusCode::PERMISSION_DENIED - Permission denied because user has no access rights.
StatusCode::USER_LOGGED_IN_NO_CONTROL - User is in read-only mode.
StatusCode::WRONG_PARAMETER_PATH - Wrong parameter path.
StatusCode::FAILED_TO_DECODE - failed to decode request message.
Fields§
§header: Option<Header>
Frame counter and actual time.
offset: Option<ParameterOffset>
Offset of the parameter value.
activate: bool
Flag to enable/disable permanent overwrite.
path: String
Path of the requested parameter.
value: Vec<u8>
New values.
Trait Implementations§
Source§impl Clone for OverwriteParameterMsg
impl Clone for OverwriteParameterMsg
Source§fn clone(&self) -> OverwriteParameterMsg
fn clone(&self) -> OverwriteParameterMsg
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for OverwriteParameterMsg
impl Debug for OverwriteParameterMsg
Source§impl Default for OverwriteParameterMsg
impl Default for OverwriteParameterMsg
Source§impl Message for OverwriteParameterMsg
impl Message for OverwriteParameterMsg
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
. Read moreSource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
.