Struct PluginChannelEndpoint
pub struct PluginChannelEndpoint { /* private fields */ }Expand description
The host-issued route for one admitted channel-plugin binding.
channel_type is the canonical channel family used by the orchestrator.
The route alias is always PluginInstanceId::binding; it is deliberately
not stored again here. Clones share the immutable route and instance scope.
Implementations§
Source§impl PluginChannelEndpoint
impl PluginChannelEndpoint
Sourcepub fn new(
scope: PluginInstanceScope,
channel_type: impl Into<String>,
) -> Result<Self, PluginError>
pub fn new( scope: PluginInstanceScope, channel_type: impl Into<String>, ) -> Result<Self, PluginError>
Bind an admitted channel scope to a canonical host routing type.
§Errors
Returns an error when scope is not a channel capability or when
channel_type is not a canonical snake_case channel key.
Sourcepub fn channel_type(&self) -> &str
pub fn channel_type(&self) -> &str
Canonical channel family selected by the host.
Sourcepub fn alias(&self) -> &str
pub fn alias(&self) -> &str
Canonical configured alias, sourced from the admitted instance binding.
Sourcepub fn instance_id(&self) -> &PluginInstanceId
pub fn instance_id(&self) -> &PluginInstanceId
Host-owned instance identity behind this endpoint.
Trait Implementations§
Source§impl Clone for PluginChannelEndpoint
impl Clone for PluginChannelEndpoint
Source§fn clone(&self) -> PluginChannelEndpoint
fn clone(&self) -> PluginChannelEndpoint
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · §fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for PluginChannelEndpoint
impl RefUnwindSafe for PluginChannelEndpoint
impl Send for PluginChannelEndpoint
impl Sync for PluginChannelEndpoint
impl Unpin for PluginChannelEndpoint
impl UnsafeUnpin for PluginChannelEndpoint
impl UnwindSafe for PluginChannelEndpoint
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