pub struct ProducerInstance {
pub composition: CompositionId,
pub instance_id: MachineInstanceId,
pub machine: MachineId,
}Expand description
Typed identity of the producing machine instance inside a composition.
Unlike the deleted string-keyed helpers, every field is a typed newtype so cross-instance mixups are rejected at compile time.
Fields§
§composition: CompositionIdComposition that contains the producer.
instance_id: MachineInstanceIdInstance id of the producer within composition.
machine: MachineIdUnderlying machine name (the schema this instance is an instance of).
Trait Implementations§
Source§impl Clone for ProducerInstance
impl Clone for ProducerInstance
Source§fn clone(&self) -> ProducerInstance
fn clone(&self) -> ProducerInstance
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 ProducerInstance
impl Debug for ProducerInstance
Source§impl Hash for ProducerInstance
impl Hash for ProducerInstance
Source§impl PartialEq for ProducerInstance
impl PartialEq for ProducerInstance
Source§fn eq(&self, other: &ProducerInstance) -> bool
fn eq(&self, other: &ProducerInstance) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for ProducerInstance
impl StructuralPartialEq for ProducerInstance
Auto Trait Implementations§
impl Freeze for ProducerInstance
impl RefUnwindSafe for ProducerInstance
impl Send for ProducerInstance
impl Sync for ProducerInstance
impl Unpin for ProducerInstance
impl UnsafeUnpin for ProducerInstance
impl UnwindSafe for ProducerInstance
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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.