pub struct CoverCommandRequest {
pub key: u32,
pub has_legacy_command: bool,
pub legacy_command: i32,
pub has_position: bool,
pub position: f32,
pub has_tilt: bool,
pub tilt: f32,
pub stop: bool,
}
Fields§
§key: u32
§has_legacy_command: bool
legacy: command has been removed in 1.13 clients/servers must still send/accept it until the next protocol change
legacy_command: i32
§has_position: bool
§position: f32
§has_tilt: bool
§tilt: f32
§stop: bool
Implementations§
Source§impl CoverCommandRequest
impl CoverCommandRequest
Sourcepub fn legacy_command(&self) -> LegacyCoverCommand
pub fn legacy_command(&self) -> LegacyCoverCommand
Returns the enum value of legacy_command
, or the default if the field is set to an invalid enum value.
Sourcepub fn set_legacy_command(&mut self, value: LegacyCoverCommand)
pub fn set_legacy_command(&mut self, value: LegacyCoverCommand)
Sets legacy_command
to the provided enum value.
Trait Implementations§
Source§impl Clone for CoverCommandRequest
impl Clone for CoverCommandRequest
Source§fn clone(&self) -> CoverCommandRequest
fn clone(&self) -> CoverCommandRequest
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 CoverCommandRequest
impl Debug for CoverCommandRequest
Source§impl Default for CoverCommandRequest
impl Default for CoverCommandRequest
Source§impl Message for CoverCommandRequest
impl Message for CoverCommandRequest
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 CoverCommandRequest
impl PartialEq for CoverCommandRequest
impl Copy for CoverCommandRequest
impl StructuralPartialEq for CoverCommandRequest
Auto Trait Implementations§
impl Freeze for CoverCommandRequest
impl RefUnwindSafe for CoverCommandRequest
impl Send for CoverCommandRequest
impl Sync for CoverCommandRequest
impl Unpin for CoverCommandRequest
impl UnwindSafe for CoverCommandRequest
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