Skip to main content

Resources

Struct Resources 

Source
pub struct Resources<SPI, ACC, GYR, D> {
    pub spi: Owned<SPI>,
    pub acc_cs: Owned<ACC>,
    pub gyr_cs: Owned<GYR>,
    pub delay: Owned<D>,
    /* private fields */
}

Fields§

§spi: Owned<SPI>§acc_cs: Owned<ACC>§gyr_cs: Owned<GYR>§delay: Owned<D>

Trait Implementations§

Source§

impl<SPI, ACC, GYR, D> ResourceBindings<'_> for Resources<SPI, ACC, GYR, D>
where SPI: Transfer<u8> + Send + Sync + 'static, SPI::Error: Debug + Send + 'static, ACC: OutputPin + Send + Sync + 'static, ACC::Error: Debug + Send + 'static, GYR: OutputPin + Send + Sync + 'static, GYR::Error: Debug + Send + 'static, D: DelayMs<u32> + Send + Sync + 'static,

Auto Trait Implementations§

§

impl<SPI, ACC, GYR, D> Freeze for Resources<SPI, ACC, GYR, D>
where SPI: Freeze, ACC: Freeze, GYR: Freeze, D: Freeze,

§

impl<SPI, ACC, GYR, D> RefUnwindSafe for Resources<SPI, ACC, GYR, D>

§

impl<SPI, ACC, GYR, D> Send for Resources<SPI, ACC, GYR, D>
where SPI: Send, ACC: Send, GYR: Send, D: Send,

§

impl<SPI, ACC, GYR, D> Sync for Resources<SPI, ACC, GYR, D>
where SPI: Sync, ACC: Sync, GYR: Sync, D: Sync,

§

impl<SPI, ACC, GYR, D> Unpin for Resources<SPI, ACC, GYR, D>
where SPI: Unpin, ACC: Unpin, GYR: Unpin, D: Unpin,

§

impl<SPI, ACC, GYR, D> UnsafeUnpin for Resources<SPI, ACC, GYR, D>
where SPI: UnsafeUnpin, ACC: UnsafeUnpin, GYR: UnsafeUnpin, D: UnsafeUnpin,

§

impl<SPI, ACC, GYR, D> UnwindSafe for Resources<SPI, ACC, GYR, D>
where SPI: UnwindSafe, ACC: UnwindSafe, GYR: UnwindSafe, D: UnwindSafe,

Blanket Implementations§

Source§

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

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

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

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

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

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

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

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

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

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

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

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> GetTypeRegistration for T

Source§

impl<T> Reflect for T
where T: 'static,

Source§

impl<T> ReflectTypePath for T