pub trait LinkDeleteInfo: Send + Sync {
// Required methods
fn get_source_id(&self) -> &str;
fn get_target_id(&self) -> &str;
fn get_link_name(&self) -> &str;
}
Expand description
Present information related to a link delete, normally used as part of the Provider
interface,
for providers that must process a link deletion in some way.
Required Methods§
sourcefn get_source_id(&self) -> &str
fn get_source_id(&self) -> &str
Retrieve the source of the link
If the provider receiving this LinkDeleteInfo is the target, then this is the workload that was invoking the provider (most often a component)
If the provider receiving this LinkDeleteInfo is the source, then this is the ID of the provider itself.
sourcefn get_target_id(&self) -> &str
fn get_target_id(&self) -> &str
Retrieve the target of the link
If the provider receiving this LinkDeleteInfo is the target, then this is the ID of the provider itself.
If the provider receiving this LinkDeleteInfo is the source (ex. a HTTP server provider which must invoke other components/providers), then the target in this case is the thing being invoked, likely a component.
sourcefn get_link_name(&self) -> &str
fn get_link_name(&self) -> &str
Retrieve the link name