pub struct ConnectionSpec {
pub name: String,
pub provider: Arc<dyn ManagedProvider>,
pub policy: ConnectionPolicy,
}Expand description
由宿主提供的具名后端及其冻结策略。
Fields§
§name: String连接的本地 qualifier,不是后端服务名称。
provider: Arc<dyn ManagedProvider>后端类型或实例,决定该连接支持的发现及注册能力。
policy: ConnectionPolicy目标连接或注册的冻结策略。
Auto Trait Implementations§
impl !RefUnwindSafe for ConnectionSpec
impl !UnwindSafe for ConnectionSpec
impl Freeze for ConnectionSpec
impl Send for ConnectionSpec
impl Sync for ConnectionSpec
impl Unpin for ConnectionSpec
impl UnsafeUnpin for ConnectionSpec
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