pub struct SlotManager { /* private fields */ }Expand description
Slot Manager
Manages workstation configurations (not process state, which is managed by ProcessManager)
Implementations§
Source§impl SlotManager
impl SlotManager
Sourcepub fn load_slots(&self, configs: Vec<SlotConfig>)
pub fn load_slots(&self, configs: Vec<SlotConfig>)
Load slot configurations
Sourcepub fn get_all_slots(&self) -> Vec<Slot>
pub fn get_all_slots(&self) -> Vec<Slot>
Get all slots
Sourcepub fn find_slot_by_role(&self, role: &str) -> Option<Slot>
pub fn find_slot_by_role(&self, role: &str) -> Option<Slot>
Find a slot by role
Sourcepub fn get_slots_by_role(&self, role: &str) -> Vec<Slot>
pub fn get_slots_by_role(&self, role: &str) -> Vec<Slot>
Get all slots with a specific role
Sourcepub fn update_session(&self, slot_id: &str, session_id: &str)
pub fn update_session(&self, slot_id: &str, session_id: &str)
Update a slot’s session
Sourcepub fn reset_session(&self, slot_id: &str)
pub fn reset_session(&self, slot_id: &str)
Reset a slot’s session
Auto Trait Implementations§
impl !RefUnwindSafe for SlotManager
impl !Send for SlotManager
impl !Sync for SlotManager
impl !UnwindSafe for SlotManager
impl Freeze for SlotManager
impl Unpin for SlotManager
impl UnsafeUnpin for SlotManager
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
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.