Struct async_mavlink::MavMessageType[][src]

pub struct MavMessageType<M: Message>(_);

Representation of the type of a specific MavMessage


impl<M: Message> MavMessageType<M>[src]

pub fn new(message: &M) -> MavMessageType<M>[src]

Returns the MavMessageType of a MavMessage


  • message - The message whose type shall be represented


use mavlink::common::MavMessage;
use async_mavlink::prelude::*;

let message_type = MavMessageType::new(&MavMessage::PARAM_VALUE(Default::default()));

Trait Implementations

impl<M: Message> Eq for MavMessageType<M>[src]

impl<M: Message> Hash for MavMessageType<M>[src]

impl<M: Message> PartialEq<MavMessageType<M>> for MavMessageType<M>[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized

impl<T> Borrow<T> for T where
    T: ?Sized

impl<T> BorrowMut<T> for T where
    T: ?Sized

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.