#[repr(u32)]pub enum CoherencyDomain {
Cpu = 0,
Ram = 1,
Inaccessible = 2,
UnknownOrdinal_(u32),
}Expand description
INACCESSIBLE is only for cases where there is no CPU access to the
buffers.
Device-local memory that isn’t reachable from the CPU is CoherencyDomain
INACCESSIBLE, even if it’s possible to cause a device (physical or
virtual) to copy the data from the INACCESSIBLE buffers to buffers that
are visible to the CPU. In other words, INACCESSIBLE does not imply secure,
but secure implies INACCESSIBLE.
CPU means producers must ensure that a consumer can read the produced data
with the CPU without the consumer needing to do additional cache ops not
already performed (as needed) by the producer.
RAM means producers must ensure that the produced data is entirely present
in RAM, without any dirty CPU cache lines, and a consumer must invalidate
(or flush and invalidate, typically) the CPU cache before reading data with
the CPU. The RAM domain can be faster than the CPU domain when all
access is via HW DMA, since in that case no CPU cache ops are required,
since no participant is actually reading/writing using the CPU.
Variants§
Trait Implementations§
Source§impl Clone for CoherencyDomain
impl Clone for CoherencyDomain
Source§fn clone(&self) -> CoherencyDomain
fn clone(&self) -> CoherencyDomain
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for CoherencyDomain
impl Debug for CoherencyDomain
Source§impl<'a, ___E> Encode<CoherencyDomain, ___E> for &'a CoherencyDomainwhere
___E: ?Sized,
impl<'a, ___E> Encode<CoherencyDomain, ___E> for &'a CoherencyDomainwhere
___E: ?Sized,
Source§fn encode(
self,
encoder: &mut ___E,
out: &mut MaybeUninit<CoherencyDomain>,
_: (),
) -> Result<(), EncodeError>
fn encode( self, encoder: &mut ___E, out: &mut MaybeUninit<CoherencyDomain>, _: (), ) -> Result<(), EncodeError>
§const COPY_OPTIMIZATION: CopyOptimization<Self, W> = _
const COPY_OPTIMIZATION: CopyOptimization<Self, W> = _
Source§impl<___E> Encode<CoherencyDomain, ___E> for CoherencyDomainwhere
___E: ?Sized,
impl<___E> Encode<CoherencyDomain, ___E> for CoherencyDomainwhere
___E: ?Sized,
Source§fn encode(
self,
encoder: &mut ___E,
out: &mut MaybeUninit<CoherencyDomain>,
_: (),
) -> Result<(), EncodeError>
fn encode( self, encoder: &mut ___E, out: &mut MaybeUninit<CoherencyDomain>, _: (), ) -> Result<(), EncodeError>
§const COPY_OPTIMIZATION: CopyOptimization<Self, W> = _
const COPY_OPTIMIZATION: CopyOptimization<Self, W> = _
Source§impl From<CoherencyDomain> for CoherencyDomain
impl From<CoherencyDomain> for CoherencyDomain
Source§fn from(wire: CoherencyDomain) -> CoherencyDomain
fn from(wire: CoherencyDomain) -> CoherencyDomain
Source§impl From<CoherencyDomain> for CoherencyDomain
impl From<CoherencyDomain> for CoherencyDomain
Source§fn from(natural: CoherencyDomain) -> CoherencyDomain
fn from(natural: CoherencyDomain) -> CoherencyDomain
Source§impl From<u32> for CoherencyDomain
impl From<u32> for CoherencyDomain
Source§fn from(value: u32) -> CoherencyDomain
fn from(value: u32) -> CoherencyDomain
Source§impl FromWire<CoherencyDomain> for CoherencyDomain
impl FromWire<CoherencyDomain> for CoherencyDomain
Source§fn from_wire(wire: CoherencyDomain) -> CoherencyDomain
fn from_wire(wire: CoherencyDomain) -> CoherencyDomain
§const COPY_OPTIMIZATION: CopyOptimization<W, Self> = _
const COPY_OPTIMIZATION: CopyOptimization<W, Self> = _
Source§impl FromWireRef<CoherencyDomain> for CoherencyDomain
impl FromWireRef<CoherencyDomain> for CoherencyDomain
Source§fn from_wire_ref(wire: &CoherencyDomain) -> CoherencyDomain
fn from_wire_ref(wire: &CoherencyDomain) -> CoherencyDomain
Source§impl Hash for CoherencyDomain
impl Hash for CoherencyDomain
Source§impl Ord for CoherencyDomain
impl Ord for CoherencyDomain
Source§fn cmp(&self, other: &CoherencyDomain) -> Ordering
fn cmp(&self, other: &CoherencyDomain) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Source§impl PartialEq for CoherencyDomain
impl PartialEq for CoherencyDomain
Source§fn eq(&self, other: &CoherencyDomain) -> bool
fn eq(&self, other: &CoherencyDomain) -> bool
self and other values to be equal, and is used by ==.Source§impl PartialOrd for CoherencyDomain
impl PartialOrd for CoherencyDomain
impl Copy for CoherencyDomain
impl Eq for CoherencyDomain
impl StructuralPartialEq for CoherencyDomain
Auto Trait Implementations§
impl Freeze for CoherencyDomain
impl RefUnwindSafe for CoherencyDomain
impl Send for CoherencyDomain
impl Sync for CoherencyDomain
impl Unpin for CoherencyDomain
impl UnsafeUnpin for CoherencyDomain
impl UnwindSafe for CoherencyDomain
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T, W> FromWireOption<Box<'_, W>> for Twhere
T: FromWire<W>,
impl<T, W> FromWireOption<Box<'_, W>> for Twhere
T: FromWire<W>,
§fn from_wire_option(wire: Box<'_, W>) -> Option<T>
fn from_wire_option(wire: Box<'_, W>) -> Option<T>
§impl<T, W> FromWireOptionRef<Box<'_, W>> for Twhere
T: FromWireRef<W>,
impl<T, W> FromWireOptionRef<Box<'_, W>> for Twhere
T: FromWireRef<W>,
§fn from_wire_option_ref(wire: &Box<'_, W>) -> Option<T>
fn from_wire_option_ref(wire: &Box<'_, W>) -> Option<T>
§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
T to [Self]