Struct esp_idf_svc::hal::task::thread::ThreadSpawnConfiguration

source ·
pub struct ThreadSpawnConfiguration {
    pub name: Option<&'static [u8]>,
    pub stack_size: usize,
    pub priority: u8,
    pub inherit: bool,
    pub pin_to_core: Option<Core>,
}

Fields§

§name: Option<&'static [u8]>§stack_size: usize§priority: u8§inherit: bool§pin_to_core: Option<Core>

Implementations§

source§

impl ThreadSpawnConfiguration

source

pub fn get() -> Option<ThreadSpawnConfiguration>

source

pub fn set(&self) -> Result<(), EspError>

Trait Implementations§

source§

impl Debug for ThreadSpawnConfiguration

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl Default for ThreadSpawnConfiguration

source§

fn default() -> ThreadSpawnConfiguration

Returns the “default value” for a type. Read more
source§

impl From<&ThreadSpawnConfiguration> for esp_pthread_cfg_t

source§

fn from(conf: &ThreadSpawnConfiguration) -> esp_pthread_cfg_t

Converts to this type from the input type.
source§

impl From<esp_pthread_cfg_t> for ThreadSpawnConfiguration

source§

fn from(conf: esp_pthread_cfg_t) -> ThreadSpawnConfiguration

Converts to this type from the input type.

Auto Trait Implementations§

Blanket Implementations§

§

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

§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

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

§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
§

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

§

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

Mutably borrows from an owned value. Read more
§

impl<T> From<T> for T

§

fn from(t: T) -> T

Returns the argument unchanged.

§

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

§

fn into(self) -> U

Calls U::from(self).

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

§

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

§

type Error = Infallible

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

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

Performs the conversion.
§

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

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

Performs the conversion.