[][src]Struct async_mavlink::MavMessageType

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

Representation of the type of a specific MavMessage

Implementations

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

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

Returns the MavMessageType of a MavMessage

Arguments

  • message - The message whose type shall be represented

Examples

use mavlink::common::MavMessage;
use async_mavlink::MavMessageType;

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

impl<M> RefUnwindSafe for MavMessageType<M> where
    <M as DiscriminantKind>::Discriminant: RefUnwindSafe

impl<M> Send for MavMessageType<M> where
    <M as DiscriminantKind>::Discriminant: Send

impl<M> Sync for MavMessageType<M> where
    <M as DiscriminantKind>::Discriminant: Sync

impl<M> Unpin for MavMessageType<M> where
    <M as DiscriminantKind>::Discriminant: Unpin

impl<M> UnwindSafe for MavMessageType<M> where
    <M as DiscriminantKind>::Discriminant: UnwindSafe

Blanket Implementations

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

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

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

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.