pub struct CoverStateResponse {
pub key: u32,
pub legacy_state: i32,
pub position: f32,
pub tilt: f32,
pub current_operation: i32,
}
Fields§
§key: u32
§legacy_state: i32
legacy: state has been removed in 1.13 clients/servers must still send/accept it until the next protocol change
position: f32
§tilt: f32
§current_operation: i32
Implementations§
Source§impl CoverStateResponse
impl CoverStateResponse
Sourcepub fn legacy_state(&self) -> LegacyCoverState
pub fn legacy_state(&self) -> LegacyCoverState
Returns the enum value of legacy_state
, or the default if the field is set to an invalid enum value.
Sourcepub fn set_legacy_state(&mut self, value: LegacyCoverState)
pub fn set_legacy_state(&mut self, value: LegacyCoverState)
Sets legacy_state
to the provided enum value.
Sourcepub fn current_operation(&self) -> CoverOperation
pub fn current_operation(&self) -> CoverOperation
Returns the enum value of current_operation
, or the default if the field is set to an invalid enum value.
Sourcepub fn set_current_operation(&mut self, value: CoverOperation)
pub fn set_current_operation(&mut self, value: CoverOperation)
Sets current_operation
to the provided enum value.
Trait Implementations§
Source§impl Clone for CoverStateResponse
impl Clone for CoverStateResponse
Source§fn clone(&self) -> CoverStateResponse
fn clone(&self) -> CoverStateResponse
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for CoverStateResponse
impl Debug for CoverStateResponse
Source§impl Default for CoverStateResponse
impl Default for CoverStateResponse
Source§impl Message for CoverStateResponse
impl Message for CoverStateResponse
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 CoverStateResponse
impl PartialEq for CoverStateResponse
impl Copy for CoverStateResponse
impl StructuralPartialEq for CoverStateResponse
Auto Trait Implementations§
impl Freeze for CoverStateResponse
impl RefUnwindSafe for CoverStateResponse
impl Send for CoverStateResponse
impl Sync for CoverStateResponse
impl Unpin for CoverStateResponse
impl UnwindSafe for CoverStateResponse
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