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 const fn new(origin: Entity, target: Entity) -> Self
pub const 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: BoxFlux<RawPayload, PayloadError>,
config: Option<RuntimeConfig>,
previous_inherent: InherentData,
) -> Result<BoxFlux<Payload, PayloadError>, Error>
pub fn call( &self, operation: &str, stream: BoxFlux<RawPayload, PayloadError>, config: Option<RuntimeConfig>, previous_inherent: InherentData, ) -> Result<BoxFlux<Payload, PayloadError>, 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 duplicate 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 for ComponentReference
impl PartialEq for ComponentReference
Source§impl Serialize for ComponentReference
impl Serialize for ComponentReference
impl StructuralPartialEq for ComponentReference
Auto Trait Implementations§
impl Freeze for ComponentReference
impl RefUnwindSafe for ComponentReference
impl Send for ComponentReference
impl Sync for ComponentReference
impl Unpin for ComponentReference
impl UnwindSafe for ComponentReference
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