pub struct PlayerTargetDescriptor {
pub id: Symbol,
pub target: LaneTarget,
pub rate_contract: RateContract,
}Expand description
Descriptor of a chain’s output target and its rate contract.
Fields§
§id: SymbolSymbol identifying the target.
target: LaneTargetLane target the chain output is routed to.
rate_contract: RateContractRate contract the target runs under.
Implementations§
Source§impl PlayerTargetDescriptor
impl PlayerTargetDescriptor
Sourcepub fn instrument(id: impl Into<String>) -> Self
pub fn instrument(id: impl Into<String>) -> Self
Builds an instrument target descriptor at MIDI-tick rate.
Sourcepub fn clock_domain(&self) -> ClockDomain
pub fn clock_domain(&self) -> ClockDomain
Returns the target’s clock domain from its rate contract.
Sourcepub fn latency_class(&self) -> LatencyClass
pub fn latency_class(&self) -> LatencyClass
Returns the target’s latency class from its rate contract.
Trait Implementations§
Source§impl Clone for PlayerTargetDescriptor
impl Clone for PlayerTargetDescriptor
Source§fn clone(&self) -> PlayerTargetDescriptor
fn clone(&self) -> PlayerTargetDescriptor
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 PlayerTargetDescriptor
impl Debug for PlayerTargetDescriptor
impl Eq for PlayerTargetDescriptor
Source§impl PartialEq for PlayerTargetDescriptor
impl PartialEq for PlayerTargetDescriptor
impl StructuralPartialEq for PlayerTargetDescriptor
Auto Trait Implementations§
impl Freeze for PlayerTargetDescriptor
impl RefUnwindSafe for PlayerTargetDescriptor
impl Send for PlayerTargetDescriptor
impl Sync for PlayerTargetDescriptor
impl Unpin for PlayerTargetDescriptor
impl UnsafeUnpin for PlayerTargetDescriptor
impl UnwindSafe for PlayerTargetDescriptor
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