wasmcloud_provider_sdk

Trait LinkDeleteInfo

source
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§

source

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.

source

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.

Retrieve the link name

Implementors§