Struct wick_packet::ComponentReference
source · pub struct ComponentReference { /* private fields */ }
Expand description
An implementation that encapsulates a collection link that components use to call out to components on other Wick collections.
Implementations§
source§impl ComponentReference
impl ComponentReference
sourcepub fn new(origin: Entity, target: Entity) -> Self
pub fn new(origin: Entity, target: Entity) -> Self
Constructor for a ComponentReference
sourcepub fn get_origin_url(&self) -> String
pub fn get_origin_url(&self) -> String
Get the URL for the called component
sourcepub fn get_target_id(&self) -> &str
pub fn get_target_id(&self) -> &str
Get target component ID.
sourcepub fn call(
&self,
operation: &str,
stream: PacketStream
) -> Result<PacketStream, Error>
pub fn call( &self, operation: &str, stream: PacketStream ) -> Result<PacketStream, Error>
Make a call to the linked collection.
Trait Implementations§
source§impl Clone for ComponentReference
impl Clone for ComponentReference
source§fn clone(&self) -> ComponentReference
fn clone(&self) -> ComponentReference
Returns a copy 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 ComponentReference
impl Debug for ComponentReference
source§impl<'de> Deserialize<'de> for ComponentReference
impl<'de> Deserialize<'de> for ComponentReference
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Display for ComponentReference
impl Display for ComponentReference
source§impl PartialEq<ComponentReference> for ComponentReference
impl PartialEq<ComponentReference> for ComponentReference
source§fn eq(&self, other: &ComponentReference) -> bool
fn eq(&self, other: &ComponentReference) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.