Struct product_os_capabilities::RegistryService
source · pub struct RegistryService {
pub identifier: String,
pub key: String,
pub kind: String,
pub active: bool,
pub enabled: bool,
pub created_at: DateTime<Utc>,
pub updated_at: DateTime<Utc>,
pub service: Option<Arc<dyn Service>>,
pub service_mut: Option<Arc<Mutex<dyn Service>>>,
}
Fields§
§identifier: String
§key: String
§kind: String
§active: bool
§enabled: bool
§created_at: DateTime<Utc>
§updated_at: DateTime<Utc>
§service: Option<Arc<dyn Service>>
§service_mut: Option<Arc<Mutex<dyn Service>>>
Implementations§
source§impl RegistryService
impl RegistryService
pub fn identifier(&self) -> String
pub fn key(&self) -> String
pub fn is_enabled(&self) -> bool
pub fn is_active(&self) -> bool
pub async fn status(&self) -> Result<(), ()>
pub async fn init(&mut self) -> Result<(), ()>
pub async fn start(&mut self) -> Result<(), ()>
pub async fn stop(&mut self) -> Result<(), ()>
pub async fn restart(&mut self) -> Result<(), ()>
Trait Implementations§
source§impl Debug for RegistryService
impl Debug for RegistryService
source§impl<'de> Deserialize<'de> for RegistryService
impl<'de> Deserialize<'de> for RegistryService
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for RegistryService
impl !RefUnwindSafe for RegistryService
impl Send for RegistryService
impl Sync for RegistryService
impl Unpin for RegistryService
impl !UnwindSafe for RegistryService
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