pub struct ProviderRef {
pub name: String,
pub version: String,
pub state: PluginState,
pub service: ServiceDesc,
}Expand description
find_service 的一条解析结果:索引命中 + 现场明细。
Fields§
§name: String提供方注册名(ask/ask_service 路由即以此为 target)。
version: String提供方申报版本(空串 = 未声明版本,被动跟随策略不主动迁移)。
state: PluginState提供方当前状态(Ready 亦可被发现,但 ask_service 只路由 Running 者)。
service: ServiceDesc该服务的完整描述(现场取,永远最新)。
Trait Implementations§
Source§impl Clone for ProviderRef
impl Clone for ProviderRef
Source§impl Debug for ProviderRef
impl Debug for ProviderRef
Source§impl PartialEq for ProviderRef
impl PartialEq for ProviderRef
impl StructuralPartialEq for ProviderRef
Auto Trait Implementations§
impl Freeze for ProviderRef
impl RefUnwindSafe for ProviderRef
impl Send for ProviderRef
impl Sync for ProviderRef
impl Unpin for ProviderRef
impl UnsafeUnpin for ProviderRef
impl UnwindSafe for ProviderRef
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