pub enum MappingName {
None,
Stack,
Heap,
Vdso,
Vvar,
File(Arc<FileMapping>),
Vma(FlyByteStr),
Ashmem(FlyByteStr),
AioContext(Arc<AioContext>),
}Variants§
None
No name.
Stack
This mapping is the initial stack.
Heap
This mapping is the heap.
Vdso
This mapping is the vdso.
Vvar
This mapping is the vvar.
File(Arc<FileMapping>)
The file backing this mapping.
Vma(FlyByteStr)
The name associated with the mapping. Set by prctl(PR_SET_VMA, PR_SET_VMA_ANON_NAME, …). An empty name is distinct from an unnamed mapping. Mappings are initially created with no name and can be reset to the unnamed state by passing NULL to prctl(PR_SET_VMA, PR_SET_VMA_ANON_NAME, …).
Ashmem(FlyByteStr)
The name associated with the mapping of an ashmem region. Set by ioctl(fd, ASHMEM_SET_NAME, …). By default “dev/ashmem”.
AioContext(Arc<AioContext>)
This mapping is a context for asynchronous I/O.
Trait Implementations§
Source§impl Clone for MappingName
impl Clone for MappingName
Source§fn clone(&self) -> MappingName
fn clone(&self) -> MappingName
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for MappingName
impl Debug for MappingName
Source§impl PartialEq for MappingName
impl PartialEq for MappingName
Source§impl SplitStorage for MappingName
impl SplitStorage for MappingName
Source§type Discriminant = MappingNameDiscriminant
type Discriminant = MappingNameDiscriminant
The data-less discriminant enum for this enum’s split storage.
Source§type Payload = MappingNamePayload
type Payload = MappingNamePayload
The payload union for this enum’s split storage.
Source§fn decompose(
self,
) -> (MappingNameDiscriminant, ManuallyDrop<MappingNamePayload>)
fn decompose( self, ) -> (MappingNameDiscriminant, ManuallyDrop<MappingNamePayload>)
Split the enum’s discriminant and payload for separate storage.
impl Eq for MappingName
impl StructuralPartialEq for MappingName
Auto Trait Implementations§
impl Freeze for MappingName
impl !RefUnwindSafe for MappingName
impl Send for MappingName
impl Sync for MappingName
impl Unpin for MappingName
impl !UnwindSafe for MappingName
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
Source§impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<T> InstanceFromServiceTransport<T> for T
impl<T> InstanceFromServiceTransport<T> for T
§fn from_service_transport(handle: T) -> T
fn from_service_transport(handle: T) -> T
Converts the given service transport handle of type
T to [Self]Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T, U> MultiArchFrom<T> for Uwhere
U: From<T>,
impl<T, U> MultiArchFrom<T> for Uwhere
U: From<T>,
§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T, U> TryIntoExt<U> for Twhere
U: TryFromExt<T>,
impl<T, U> TryIntoExt<U> for Twhere
U: TryFromExt<T>,
type Error = <U as TryFromExt<T>>::Error
§fn try_into_ext(self) -> Result<U, <T as TryIntoExt<U>>::Error>
fn try_into_ext(self) -> Result<U, <T as TryIntoExt<U>>::Error>
Tries to perform the conversion.