Enum
GetMetadata
pub enum GetMetadata {
Path {
path: String,
location: Location,
},
Handle {
handle: FileHandle,
},
}Variants
Trait Implementations
impl Archive for GetMetadata
impl Archive for GetMetadata
type Archived = ArchivedGetMetadata
type Archived = ArchivedGetMetadata
The archived representation of this type. Read more
type Resolver = GetMetadataResolver
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>,
)
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 GetMetadata
impl BlockingArchive for GetMetadata
impl Debug for GetMetadata
impl Debug for GetMetadata
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>,
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>
fn deserialize( &self, deserializer: &mut __D, ) -> Result<GetMetadata, <__D as Fallible>::Error>
Deserializes using the given deserializer
impl MessageId for GetMetadata
impl MessageId for GetMetadata
const ID: MessageId = 10usize
const ID: MessageId = 10usize
unique message identifier
const SERVER: &'static str = "os/fs"
const SERVER: &'static str = "os/fs"
target server name
impl<__S: Fallible + ?Sized> Serialize<__S> for GetMetadata
impl<__S: Fallible + ?Sized> Serialize<__S> for GetMetadata
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.