Be aware: Foundation will NEVER ask for your seed words, device PIN, or call you unexpectedly. If anyone does, it's a scam.

Enum

GetAppName

pub enum GetAppName {
    ByAppId {
        id: AppId,
        locale: String,
    },
    ByPid {
        pid: PID,
        locale: String,
    },
}

Variants

ByAppId

Fields

id: AppId
locale: String

ByPid

Fields

pid: PID
locale: String

Implementations

impl GetAppName

pub fn new_by_app_id(id: &AppId, locale: &str) -> Self

Permission: not needed

pub fn new_by_pid(pid: PID, locale: &str) -> Self

Permission: not needed

Trait Implementations

impl Archive for GetAppName
where WithAppId: ArchiveWith<AppId>, String: Archive, PID: Archive,

type Archived = ArchivedGetAppName

The archived representation of this type. Read more

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>, )

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> = _

An optimization flag that allows the bytes of this type to be copied directly to a writer instead of calling serialize. Read more

impl BlockingArchive for GetAppName

type Response = Option<String>

response type for this message

impl Clone for GetAppName

fn clone(&self) -> GetAppName

Returns a duplicate of the value. Read more
1.0.0

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more

impl Debug for GetAppName

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

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>

Deserializes using the given deserializer

impl MessageId for GetAppName

const ID: MessageId = 3usize

unique message identifier

const SERVER: &'static str = "os/app-manager"

target server name

impl<__S: Fallible + ?Sized> Serialize<__S> for GetAppName
where 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>

Writes the dependencies for the object and returns a resolver that can create the archived type.

Auto Trait Implementations

impl Freeze for GetAppName

impl RefUnwindSafe for GetAppName

impl Send for GetAppName

impl Sync for GetAppName

impl Unpin for GetAppName

impl UnsafeUnpin for GetAppName

impl UnwindSafe for GetAppName