Struct wick_packet::CollectionLink
source · pub struct CollectionLink { /* 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 CollectionLink
impl CollectionLink
sourcepub fn new(from: impl AsRef<str>, to: impl AsRef<str>) -> Self
pub fn new(from: impl AsRef<str>, to: impl AsRef<str>) -> Self
Constructor for a CollectionLink
sourcepub fn get_origin_url(&self) -> &str
pub fn get_origin_url(&self) -> &str
Get the URL for the called component
sourcepub fn call(
&self,
component: &str,
stream: PacketStream
) -> Pin<Box<impl Future<Output = Result<PacketStream, Error>>>>
pub fn call( &self, component: &str, stream: PacketStream ) -> Pin<Box<impl Future<Output = Result<PacketStream, Error>>>>
Make a call to the linked collection.
Trait Implementations§
source§impl Clone for CollectionLink
impl Clone for CollectionLink
source§fn clone(&self) -> CollectionLink
fn clone(&self) -> CollectionLink
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 CollectionLink
impl Debug for CollectionLink
source§impl<'de> Deserialize<'de> for CollectionLink
impl<'de> Deserialize<'de> for CollectionLink
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 CollectionLink
impl Display for CollectionLink
source§impl PartialEq<CollectionLink> for CollectionLink
impl PartialEq<CollectionLink> for CollectionLink
source§fn eq(&self, other: &CollectionLink) -> bool
fn eq(&self, other: &CollectionLink) -> bool
This method tests for
self and other values to be equal, and is used
by ==.