ros666::mm::frame_allocator

Struct FRAME_ALLOCATOR

Source
pub struct FRAME_ALLOCATOR {
    __private_field: (),
}
Expand description

全局帧分配器

Fields§

§__private_field: ()

Methods from Deref<Target = SyncRefCell<StackFrameAllocator>>§

Source

pub fn fork( self: &Arc<SyncRefCell<ProcessControlBlock>>, ) -> Arc<SyncRefCell<ProcessControlBlock>>

创建子进程

§返回值

返回子进程的引用

Source

pub fn exec( self: &Arc<SyncRefCell<ProcessControlBlock>>, app_data: &[u8], args: Vec<String>, )

在当前进程上执行应用程序

§参数
  • app_data: 应用程序数据
Source

pub fn inner_borrow_mut(&self) -> RefMut<'_, T>

获取对内部值的可变引用。

§返回

返回一个可变引用,允许修改内部值。

§安全性

如果已经有不可变引用存在,则此方法会导致运行时 Panic。

Source

pub fn inner_borrow(&self) -> Ref<'_, T>

获取对内部值的不可变引用。

§返回

返回一个不可变引用,允许读取内部值。

§安全性

如果已经有可变引用存在,则此方法会导致运行时 Panic。

Trait Implementations§

Source§

impl Deref for FRAME_ALLOCATOR

Source§

type Target = SyncRefCell<StackFrameAllocator>

The resulting type after dereferencing.
Source§

fn deref(&self) -> &SyncRefCell<StackFrameAllocator>

Dereferences the value.
Source§

impl LazyStatic for FRAME_ALLOCATOR

Auto Trait Implementations§

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<P, T> Receiver for P
where P: Deref<Target = T> + ?Sized, T: ?Sized,

Source§

type Target = T

🔬This is a nightly-only experimental API. (arbitrary_self_types)
The target type on which the method may be called.
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.