Struct jupiter_rs::platform::Platform
source · [−]pub struct Platform {
pub is_running: Flag,
/* private fields */
}
Fields
is_running: Flag
Implementations
sourceimpl Platform
impl Platform
pub fn new() -> Arc<Self>
pub fn register<T>(&self, service: Arc<T>) where
T: Any + Send + Sync,
pub fn find<T>(&self) -> Option<Arc<T>> where
T: Any + Send + Sync,
pub fn require<T>(&self) -> Arc<T> where
T: Any + Send + Sync,
pub fn is_running(&self) -> bool
pub fn terminate(&self)
Auto Trait Implementations
impl !RefUnwindSafe for Platform
impl Send for Platform
impl Sync for Platform
impl Unpin for Platform
impl !UnwindSafe for Platform
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more