Enum
GetAppName
pub enum GetAppName {
ByAppId {
id: AppId,
locale: String,
},
ByPid {
pid: PID,
locale: String,
},
}Variants
ByAppId
Fields
id: AppIdlocale: StringByPid
Fields
pid: PIDlocale: StringImplementations
impl GetAppName
impl GetAppName
pub fn new_by_app_id(id: &AppId, locale: &str) -> Self
pub fn new_by_pid(pid: PID, locale: &str) -> Self
Trait Implementations
impl Archive for GetAppNamewhere
WithAppId: ArchiveWith<AppId>,
String: Archive,
PID: Archive,
impl Archive for GetAppNamewhere
WithAppId: ArchiveWith<AppId>,
String: Archive,
PID: Archive,
type Archived = ArchivedGetAppName
type Archived = ArchivedGetAppName
The archived representation of this type. Read more
type Resolver = GetAppNameResolver
type Resolver = GetAppNameResolver
The resolver for this type. It must contain all the additional
information from serializing needed to make the archived type from
the normal type.
fn resolve(
&self,
resolver: <Self as Archive>::Resolver,
out: Place<<Self as Archive>::Archived>,
)
fn resolve( &self, resolver: <Self as Archive>::Resolver, out: Place<<Self as Archive>::Archived>, )
Creates the archived version of this value at the given position and
writes it to the given output. Read more
const COPY_OPTIMIZATION: CopyOptimization<Self> = _
const COPY_OPTIMIZATION: CopyOptimization<Self> = _
An optimization flag that allows the bytes of this type to be copied
directly to a writer instead of calling
serialize. Read moreimpl BlockingArchive for GetAppName
impl BlockingArchive for GetAppName
type Response = Option<String>
type Response = Option<String>
response type for this message
impl Clone for GetAppName
impl Clone for GetAppName
fn clone(&self) -> GetAppName
fn clone(&self) -> GetAppName
Returns a duplicate of the value. Read more
1.0.0fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Debug for GetAppName
impl Debug for GetAppName
impl<__D: Fallible + ?Sized> Deserialize<GetAppName, __D> for Archived<GetAppName>where
WithAppId: ArchiveWith<AppId> + DeserializeWith<<WithAppId as ArchiveWith<AppId>>::Archived, AppId, __D>,
String: Archive,
<String as Archive>::Archived: Deserialize<String, __D>,
PID: Archive,
<PID as Archive>::Archived: Deserialize<PID, __D>,
impl<__D: Fallible + ?Sized> Deserialize<GetAppName, __D> for Archived<GetAppName>where
WithAppId: ArchiveWith<AppId> + DeserializeWith<<WithAppId as ArchiveWith<AppId>>::Archived, AppId, __D>,
String: Archive,
<String as Archive>::Archived: Deserialize<String, __D>,
PID: Archive,
<PID as Archive>::Archived: Deserialize<PID, __D>,
fn deserialize(
&self,
deserializer: &mut __D,
) -> Result<GetAppName, <__D as Fallible>::Error>
fn deserialize( &self, deserializer: &mut __D, ) -> Result<GetAppName, <__D as Fallible>::Error>
Deserializes using the given deserializer
impl MessageId for GetAppName
impl MessageId for GetAppName
const ID: MessageId = 3usize
const ID: MessageId = 3usize
unique message identifier
const SERVER: &'static str = "os/app-manager"
const SERVER: &'static str = "os/app-manager"
target server name
impl<__S: Fallible + ?Sized> Serialize<__S> for GetAppNamewhere
WithAppId: SerializeWith<AppId, __S>,
String: Serialize<__S>,
PID: Serialize<__S>,
impl<__S: Fallible + ?Sized> Serialize<__S> for GetAppNamewhere
WithAppId: SerializeWith<AppId, __S>,
String: Serialize<__S>,
PID: Serialize<__S>,
fn serialize(
&self,
serializer: &mut __S,
) -> Result<<Self as Archive>::Resolver, <__S as Fallible>::Error>
fn serialize( &self, serializer: &mut __S, ) -> Result<<Self as Archive>::Resolver, <__S as Fallible>::Error>
Writes the dependencies for the object and returns a resolver that can
create the archived type.