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>
impl<SPI, ACC, GYR, D> ResourceBindings<'_> for Resources<SPI, ACC, GYR, D>
type Binding = Binding
fn from_bindings( manager: &mut ResourceManager, mapping: Option<&ResourceBindingMap<Self::Binding>>, ) -> CuResult<Self>
Auto Trait Implementations§
impl<SPI, ACC, GYR, D> Freeze for Resources<SPI, ACC, GYR, D>
impl<SPI, ACC, GYR, D> RefUnwindSafe for Resources<SPI, ACC, GYR, D>
impl<SPI, ACC, GYR, D> Send for Resources<SPI, ACC, GYR, D>
impl<SPI, ACC, GYR, D> Sync for Resources<SPI, ACC, GYR, D>
impl<SPI, ACC, GYR, D> Unpin for Resources<SPI, ACC, GYR, D>
impl<SPI, ACC, GYR, D> UnwindSafe for Resources<SPI, ACC, GYR, D>
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