Thanks to visit codestin.com
Credit goes to docs.rs

Skip to main content

Mode0Port

Struct Mode0Port 

Source
pub struct Mode0Port<SPI: 'static, EN: 'static, M: RawMutex + 'static> { /* private fields */ }

Trait Implementations§

Source§

impl<SPI, EN, M, S, P> IntoConfiguredPort<ConfigMode0, SPI, EN, M, S, P> for Mode0Port<SPI, EN, M>
where SPI: SpiBus<Error = S> + 'static, EN: OutputPin<Error = P> + 'static, M: RawMutex + 'static,

Source§

async fn into_configured_port( self, config: ConfigMode0, ) -> Result<MaxPort<ConfigMode0, SPI, EN, M>, Error<S, P>>

Source§

impl<SPI, EN, M, S, P> IntoConfiguredPort<ConfigMode1, SPI, EN, M, S, P> for Mode0Port<SPI, EN, M>
where SPI: SpiBus<Error = S> + 'static, EN: OutputPin<Error = P> + 'static, M: RawMutex + 'static,

Source§

async fn into_configured_port( self, config: ConfigMode1, ) -> Result<MaxPort<ConfigMode1, SPI, EN, M>, Error<S, P>>

Source§

impl<SPI, EN, M, S, P> IntoConfiguredPort<ConfigMode10, SPI, EN, M, S, P> for Mode0Port<SPI, EN, M>
where SPI: SpiBus<Error = S> + 'static, EN: OutputPin<Error = P> + 'static, M: RawMutex + 'static,

Source§

async fn into_configured_port( self, config: ConfigMode10, ) -> Result<MaxPort<ConfigMode10, SPI, EN, M>, Error<S, P>>

Source§

impl<SPI, EN, M, S, P> IntoConfiguredPort<ConfigMode11, SPI, EN, M, S, P> for Mode0Port<SPI, EN, M>
where SPI: SpiBus<Error = S> + 'static, EN: OutputPin<Error = P> + 'static, M: RawMutex + 'static,

Source§

async fn into_configured_port( self, config: ConfigMode11, ) -> Result<MaxPort<ConfigMode11, SPI, EN, M>, Error<S, P>>

Source§

impl<SPI, EN, M, S, P> IntoConfiguredPort<ConfigMode12, SPI, EN, M, S, P> for Mode0Port<SPI, EN, M>
where SPI: SpiBus<Error = S> + 'static, EN: OutputPin<Error = P> + 'static, M: RawMutex + 'static,

Source§

async fn into_configured_port( self, config: ConfigMode12, ) -> Result<MaxPort<ConfigMode12, SPI, EN, M>, Error<S, P>>

Source§

impl<SPI, EN, M, S, P> IntoConfiguredPort<ConfigMode2, SPI, EN, M, S, P> for Mode0Port<SPI, EN, M>
where SPI: SpiBus<Error = S> + 'static, EN: OutputPin<Error = P> + 'static, M: RawMutex + 'static,

Source§

async fn into_configured_port( self, config: ConfigMode2, ) -> Result<MaxPort<ConfigMode2, SPI, EN, M>, Error<S, P>>

Source§

impl<SPI, EN, M, S, P> IntoConfiguredPort<ConfigMode3, SPI, EN, M, S, P> for Mode0Port<SPI, EN, M>
where SPI: SpiBus<Error = S> + 'static, EN: OutputPin<Error = P> + 'static, M: RawMutex + 'static,

Source§

async fn into_configured_port( self, config: ConfigMode3, ) -> Result<MaxPort<ConfigMode3, SPI, EN, M>, Error<S, P>>

Source§

impl<SPI, EN, M, S, P> IntoConfiguredPort<ConfigMode4, SPI, EN, M, S, P> for Mode0Port<SPI, EN, M>
where SPI: SpiBus<Error = S> + 'static, EN: OutputPin<Error = P> + 'static, M: RawMutex + 'static,

Source§

async fn into_configured_port( self, config: ConfigMode4, ) -> Result<MaxPort<ConfigMode4, SPI, EN, M>, Error<S, P>>

Source§

impl<SPI, EN, M, S, P> IntoConfiguredPort<ConfigMode5, SPI, EN, M, S, P> for Mode0Port<SPI, EN, M>
where SPI: SpiBus<Error = S> + 'static, EN: OutputPin<Error = P> + 'static, M: RawMutex + 'static,

Source§

async fn into_configured_port( self, config: ConfigMode5, ) -> Result<MaxPort<ConfigMode5, SPI, EN, M>, Error<S, P>>

Source§

impl<SPI, EN, M, S, P> IntoConfiguredPort<ConfigMode6, SPI, EN, M, S, P> for Mode0Port<SPI, EN, M>
where SPI: SpiBus<Error = S> + 'static, EN: OutputPin<Error = P> + 'static, M: RawMutex + 'static,

Source§

async fn into_configured_port( self, config: ConfigMode6, ) -> Result<MaxPort<ConfigMode6, SPI, EN, M>, Error<S, P>>

Source§

impl<SPI, EN, M, S, P> IntoConfiguredPort<ConfigMode7, SPI, EN, M, S, P> for Mode0Port<SPI, EN, M>
where SPI: SpiBus<Error = S> + 'static, EN: OutputPin<Error = P> + 'static, M: RawMutex + 'static,

Source§

async fn into_configured_port( self, config: ConfigMode7, ) -> Result<MaxPort<ConfigMode7, SPI, EN, M>, Error<S, P>>

Source§

impl<SPI, EN, M, S, P> IntoConfiguredPort<ConfigMode8, SPI, EN, M, S, P> for Mode0Port<SPI, EN, M>
where SPI: SpiBus<Error = S> + 'static, EN: OutputPin<Error = P> + 'static, M: RawMutex + 'static,

Source§

async fn into_configured_port( self, config: ConfigMode8, ) -> Result<MaxPort<ConfigMode8, SPI, EN, M>, Error<S, P>>

Source§

impl<SPI, EN, M, S, P> IntoConfiguredPort<ConfigMode9, SPI, EN, M, S, P> for Mode0Port<SPI, EN, M>
where SPI: SpiBus<Error = S> + 'static, EN: OutputPin<Error = P> + 'static, M: RawMutex + 'static,

Source§

async fn into_configured_port( self, config: ConfigMode9, ) -> Result<MaxPort<ConfigMode9, SPI, EN, M>, Error<S, P>>

Auto Trait Implementations§

§

impl<SPI, EN, M> Freeze for Mode0Port<SPI, EN, M>

§

impl<SPI, EN, M> !RefUnwindSafe for Mode0Port<SPI, EN, M>

§

impl<SPI, EN, M> Send for Mode0Port<SPI, EN, M>
where M: Sync, EN: Send, SPI: Send,

§

impl<SPI, EN, M> Sync for Mode0Port<SPI, EN, M>
where M: Sync, EN: Send, SPI: Send,

§

impl<SPI, EN, M> Unpin for Mode0Port<SPI, EN, M>

§

impl<SPI, EN, M> UnsafeUnpin for Mode0Port<SPI, EN, M>

§

impl<SPI, EN, M> !UnwindSafe for Mode0Port<SPI, EN, M>

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, 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.