pub struct Rpc_Resp_GetCoprocessorFwVersion {
pub resp: i32,
pub major1: u32,
pub minor1: u32,
pub patch1: u32,
}
Fields§
§resp: i32
§major1: u32
§minor1: u32
§patch1: u32
Implementations§
Source§impl Rpc_Resp_GetCoprocessorFwVersion
impl Rpc_Resp_GetCoprocessorFwVersion
Sourcepub fn init_resp(self, value: i32) -> Self
pub fn init_resp(self, value: i32) -> Self
Builder method that sets the value of resp
. Useful for initializing the message.
Sourcepub fn mut_major1(&mut self) -> &mut u32
pub fn mut_major1(&mut self) -> &mut u32
Return a mutable reference to major1
Sourcepub fn set_major1(&mut self, value: u32) -> &mut Self
pub fn set_major1(&mut self, value: u32) -> &mut Self
Set the value of major1
Sourcepub fn init_major1(self, value: u32) -> Self
pub fn init_major1(self, value: u32) -> Self
Builder method that sets the value of major1
. Useful for initializing the message.
Sourcepub fn mut_minor1(&mut self) -> &mut u32
pub fn mut_minor1(&mut self) -> &mut u32
Return a mutable reference to minor1
Sourcepub fn set_minor1(&mut self, value: u32) -> &mut Self
pub fn set_minor1(&mut self, value: u32) -> &mut Self
Set the value of minor1
Sourcepub fn init_minor1(self, value: u32) -> Self
pub fn init_minor1(self, value: u32) -> Self
Builder method that sets the value of minor1
. Useful for initializing the message.
Sourcepub fn mut_patch1(&mut self) -> &mut u32
pub fn mut_patch1(&mut self) -> &mut u32
Return a mutable reference to patch1
Sourcepub fn set_patch1(&mut self, value: u32) -> &mut Self
pub fn set_patch1(&mut self, value: u32) -> &mut Self
Set the value of patch1
Sourcepub fn init_patch1(self, value: u32) -> Self
pub fn init_patch1(self, value: u32) -> Self
Builder method that sets the value of patch1
. Useful for initializing the message.
Trait Implementations§
Source§impl Clone for Rpc_Resp_GetCoprocessorFwVersion
impl Clone for Rpc_Resp_GetCoprocessorFwVersion
Source§fn clone(&self) -> Rpc_Resp_GetCoprocessorFwVersion
fn clone(&self) -> Rpc_Resp_GetCoprocessorFwVersion
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 Default for Rpc_Resp_GetCoprocessorFwVersion
impl Default for Rpc_Resp_GetCoprocessorFwVersion
Source§fn default() -> Rpc_Resp_GetCoprocessorFwVersion
fn default() -> Rpc_Resp_GetCoprocessorFwVersion
Returns the “default value” for a type. Read more
Source§impl MessageDecode for Rpc_Resp_GetCoprocessorFwVersion
impl MessageDecode for Rpc_Resp_GetCoprocessorFwVersion
Source§fn decode<IMPL_MICROPB_READ: PbRead>(
&mut self,
decoder: &mut PbDecoder<IMPL_MICROPB_READ>,
len: usize,
) -> Result<(), DecodeError<IMPL_MICROPB_READ::Error>>
fn decode<IMPL_MICROPB_READ: PbRead>( &mut self, decoder: &mut PbDecoder<IMPL_MICROPB_READ>, len: usize, ) -> Result<(), DecodeError<IMPL_MICROPB_READ::Error>>
Decode an instance of the message from the decoder and merge it into
self
. Read moreSource§fn decode_from_bytes(
&mut self,
bytes: &[u8],
) -> Result<(), DecodeError<Infallible>>
fn decode_from_bytes( &mut self, bytes: &[u8], ) -> Result<(), DecodeError<Infallible>>
Decode an instance of the message from the provided bytes
Source§fn decode_len_delimited<R>(
&mut self,
decoder: &mut PbDecoder<R>,
) -> Result<(), DecodeError<<R as PbRead>::Error>>where
R: PbRead,
fn decode_len_delimited<R>(
&mut self,
decoder: &mut PbDecoder<R>,
) -> Result<(), DecodeError<<R as PbRead>::Error>>where
R: PbRead,
Decode an instance of the message from the decoder as a length-delimited record, starting with a length
prefix.
Source§impl MessageEncode for Rpc_Resp_GetCoprocessorFwVersion
impl MessageEncode for Rpc_Resp_GetCoprocessorFwVersion
Source§impl PartialEq for Rpc_Resp_GetCoprocessorFwVersion
impl PartialEq for Rpc_Resp_GetCoprocessorFwVersion
Source§fn eq(&self, other: &Rpc_Resp_GetCoprocessorFwVersion) -> bool
fn eq(&self, other: &Rpc_Resp_GetCoprocessorFwVersion) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.impl StructuralPartialEq for Rpc_Resp_GetCoprocessorFwVersion
Auto Trait Implementations§
impl Freeze for Rpc_Resp_GetCoprocessorFwVersion
impl RefUnwindSafe for Rpc_Resp_GetCoprocessorFwVersion
impl Send for Rpc_Resp_GetCoprocessorFwVersion
impl Sync for Rpc_Resp_GetCoprocessorFwVersion
impl Unpin for Rpc_Resp_GetCoprocessorFwVersion
impl UnwindSafe for Rpc_Resp_GetCoprocessorFwVersion
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