struct SiloManager {
silos: BTreeMap<u32, Box<Silo>>,
events: FixedQueue<SiloEvent, SILO_EVENTS_CAPACITY>,
task_to_silo: BTreeMap<TaskId, u32>,
}Fields§
§silos: BTreeMap<u32, Box<Silo>>§events: FixedQueue<SiloEvent, SILO_EVENTS_CAPACITY>§task_to_silo: BTreeMap<TaskId, u32>Implementations§
Source§impl SiloManager
impl SiloManager
Sourcefn create_silo(&mut self, config: &SiloConfig) -> Result<SiloId, SyscallError>
fn create_silo(&mut self, config: &SiloConfig) -> Result<SiloId, SyscallError>
Creates silo.
Sourcefn push_event(&mut self, ev: SiloEvent)
fn push_event(&mut self, ev: SiloEvent)
Performs the push event operation.
Sourcefn unmap_task(&mut self, task_id: TaskId)
fn unmap_task(&mut self, task_id: TaskId)
Unmaps task.
Sourcefn silo_for_task(&self, task_id: TaskId) -> Option<u32>
fn silo_for_task(&self, task_id: TaskId) -> Option<u32>
Performs the silo for task operation.
Auto Trait Implementations§
impl Freeze for SiloManager
impl RefUnwindSafe for SiloManager
impl Send for SiloManager
impl Sync for SiloManager
impl Unpin for SiloManager
impl UnsafeUnpin for SiloManager
impl UnwindSafe for SiloManager
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more