pub struct EncoderPayload {
pub ticks: i32,
}
Fields§
§ticks: i32
Trait Implementations§
Source§impl<'__de, __Context> BorrowDecode<'__de, __Context> for EncoderPayload
impl<'__de, __Context> BorrowDecode<'__de, __Context> for EncoderPayload
Source§fn borrow_decode<__D: BorrowDecoder<'__de, Context = __Context>>(
decoder: &mut __D,
) -> Result<Self, DecodeError>
fn borrow_decode<__D: BorrowDecoder<'__de, Context = __Context>>( decoder: &mut __D, ) -> Result<Self, DecodeError>
Attempt to decode this type with the given BorrowDecode.
Source§impl Clone for EncoderPayload
impl Clone for EncoderPayload
Source§fn clone(&self) -> EncoderPayload
fn clone(&self) -> EncoderPayload
Returns a copy 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 EncoderPayload
impl Debug for EncoderPayload
Source§impl<__Context> Decode<__Context> for EncoderPayload
impl<__Context> Decode<__Context> for EncoderPayload
Source§impl Default for EncoderPayload
impl Default for EncoderPayload
Source§fn default() -> EncoderPayload
fn default() -> EncoderPayload
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for EncoderPayload
impl<'de> Deserialize<'de> for EncoderPayload
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Encode for EncoderPayload
impl Encode for EncoderPayload
Source§impl From<&EncoderPayload> for f32
That allows the interfacing with the GenericPID
impl From<&EncoderPayload> for f32
That allows the interfacing with the GenericPID
Source§fn from(payload: &EncoderPayload) -> f32
fn from(payload: &EncoderPayload) -> f32
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for EncoderPayload
impl RefUnwindSafe for EncoderPayload
impl Send for EncoderPayload
impl Sync for EncoderPayload
impl Unpin for EncoderPayload
impl UnwindSafe for EncoderPayload
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