pub struct GetParameterTreeHashMsg {
pub header: Option<Header>,
}
Expand description
Request to get a parameter tree hash.
Instead of requesting a complete parameter tree, a client might request only a tree hash to compare it against the cached tree to detect if the tree on the server has been changed. The difference between hashes indicates the changes in the tree structure. Note: Changes in parameter values do not result in a different tree hash.
Server’s reply: ParameterTreeHashMsg, with following status codes:
StatusCode::OK - operation successful,
StatusCode::FAILED - operation failed.
StatusCode::FAILED_TO_DECODE - failed to decode request message.
Fields§
§header: Option<Header>
Frame counter and actual time.
Trait Implementations§
Source§impl Clone for GetParameterTreeHashMsg
impl Clone for GetParameterTreeHashMsg
Source§fn clone(&self) -> GetParameterTreeHashMsg
fn clone(&self) -> GetParameterTreeHashMsg
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for GetParameterTreeHashMsg
impl Debug for GetParameterTreeHashMsg
Source§impl Default for GetParameterTreeHashMsg
impl Default for GetParameterTreeHashMsg
Source§impl Message for GetParameterTreeHashMsg
impl Message for GetParameterTreeHashMsg
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Returns the encoded length of the message without a length delimiter.
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,
Encodes the message to a buffer. Read more
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Encodes the message to a newly allocated buffer.
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,
Encodes the message with a length-delimiter to a buffer. Read more
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,
Encodes the message with a length-delimiter to a newly allocated buffer.
Source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Decodes an instance of the message from a buffer. Read more
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,
Decodes a length-delimited instance of the message from the buffer.
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,
Decodes an instance of the message from a buffer, and merges it into
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,
Decodes a length-delimited instance of the message from buffer, and
merges it into
self
.Source§impl PartialEq for GetParameterTreeHashMsg
impl PartialEq for GetParameterTreeHashMsg
impl Copy for GetParameterTreeHashMsg
impl StructuralPartialEq for GetParameterTreeHashMsg
Auto Trait Implementations§
impl Freeze for GetParameterTreeHashMsg
impl RefUnwindSafe for GetParameterTreeHashMsg
impl Send for GetParameterTreeHashMsg
impl Sync for GetParameterTreeHashMsg
impl Unpin for GetParameterTreeHashMsg
impl UnwindSafe for GetParameterTreeHashMsg
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