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

Enum

GetMetadata

pub enum GetMetadata {
    Path {
        path: String,
        location: Location,
    },
    Handle {
        handle: FileHandle,
    },
}

Variants

Path

Fields

path: String
location: Location

Handle

Fields

handle: FileHandle

Trait Implementations

impl Archive for GetMetadata
where String: Archive, Location: Archive, FileHandle: Archive,

type Archived = ArchivedGetMetadata

The archived representation of this type. Read more

type Resolver = GetMetadataResolver

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 GetMetadata

type Response = Result<Metadata, Error>

response type for this message

impl Debug for GetMetadata

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

Formats the value using the given formatter. Read more

impl<__D: Fallible + ?Sized> Deserialize<GetMetadata, __D> for Archived<GetMetadata>
where String: Archive, <String as Archive>::Archived: Deserialize<String, __D>, Location: Archive, <Location as Archive>::Archived: Deserialize<Location, __D>, FileHandle: Archive, <FileHandle as Archive>::Archived: Deserialize<FileHandle, __D>,

fn deserialize( &self, deserializer: &mut __D, ) -> Result<GetMetadata, <__D as Fallible>::Error>

Deserializes using the given deserializer

impl MessageId for GetMetadata

const ID: MessageId = 10usize

unique message identifier

const SERVER: &'static str = "os/fs"

target server name

impl<__S: Fallible + ?Sized> Serialize<__S> for GetMetadata
where String: Serialize<__S>, Location: Serialize<__S>, FileHandle: 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 GetMetadata

impl RefUnwindSafe for GetMetadata

impl Send for GetMetadata

impl Sync for GetMetadata

impl Unpin for GetMetadata

impl UnsafeUnpin for GetMetadata

impl UnwindSafe for GetMetadata