pub trait Service: 'static {
type Request<'a>: Wire<'a>;
type Response<'a>: Wire<'a>;
const NAME: &str;
const VERSIONS: Versions;
// Required method
fn request(x: Self::Request<'_>) -> Api<'_, Request>;
}Expand description
Service description.
Required Associated Constants§
Required Associated Types§
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.
Implementors§
Source§impl Service for ApiVersion
impl Service for ApiVersion
Source§impl Service for AppletExitStatus
impl Service for AppletExitStatus
Source§impl Service for AppletInstall
impl Service for AppletInstall
Source§impl Service for AppletReboot
impl Service for AppletReboot
Source§impl Service for AppletRequest
impl Service for AppletRequest
Source§impl Service for AppletResponse
impl Service for AppletResponse
Source§impl Service for AppletTunnel
impl Service for AppletTunnel
Source§impl Service for PlatformClearStore
impl Service for PlatformClearStore
Source§impl Service for PlatformInfo
impl Service for PlatformInfo
Source§impl Service for PlatformLock
impl Service for PlatformLock
Source§impl Service for PlatformReboot
impl Service for PlatformReboot
Source§impl Service for PlatformUpdate
impl Service for PlatformUpdate
Source§impl Service for PlatformVendor
impl Service for PlatformVendor
Source§impl Service for _AppletInstall0
Available on crate feature host only.
impl Service for _AppletInstall0
Available on crate feature
host only.Source§impl Service for _AppletUninstall0
Available on crate feature host only.
impl Service for _AppletUninstall0
Available on crate feature
host only.Source§impl Service for _PlatformInfo0
Available on crate feature host only.
impl Service for _PlatformInfo0
Available on crate feature
host only.Source§impl Service for _PlatformUpdate0
Available on crate feature host only.
impl Service for _PlatformUpdate0
Available on crate feature
host only.