pub struct ProcessorDescriptor { /* private fields */ }Expand description
Static description of a processor’s clocking, latency, pinning, and ports.
Implementations§
Source§impl ProcessorDescriptor
impl ProcessorDescriptor
Sourcepub fn new(
clock_domain: ClockDomain,
latency_class: LatencyClass,
realtime_pin: bool,
ports: Vec<PortDecl>,
) -> Self
pub fn new( clock_domain: ClockDomain, latency_class: LatencyClass, realtime_pin: bool, ports: Vec<PortDecl>, ) -> Self
Creates a descriptor from its parts.
Sourcepub fn clock_domain(&self) -> ClockDomain
pub fn clock_domain(&self) -> ClockDomain
Returns the processor’s clock domain.
Sourcepub fn latency_class(&self) -> LatencyClass
pub fn latency_class(&self) -> LatencyClass
Returns the processor’s latency class.
Sourcepub fn realtime_pin(&self) -> bool
pub fn realtime_pin(&self) -> bool
Returns whether the processor is realtime-pinned.
Trait Implementations§
Source§impl Clone for ProcessorDescriptor
impl Clone for ProcessorDescriptor
Source§fn clone(&self) -> ProcessorDescriptor
fn clone(&self) -> ProcessorDescriptor
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ProcessorDescriptor
impl Debug for ProcessorDescriptor
impl Eq for ProcessorDescriptor
Source§impl PartialEq for ProcessorDescriptor
impl PartialEq for ProcessorDescriptor
Source§fn eq(&self, other: &ProcessorDescriptor) -> bool
fn eq(&self, other: &ProcessorDescriptor) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ProcessorDescriptor
Auto Trait Implementations§
impl Freeze for ProcessorDescriptor
impl RefUnwindSafe for ProcessorDescriptor
impl Send for ProcessorDescriptor
impl Sync for ProcessorDescriptor
impl Unpin for ProcessorDescriptor
impl UnsafeUnpin for ProcessorDescriptor
impl UnwindSafe for ProcessorDescriptor
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