pub struct RequirementSpec {
pub capability: &'static str,
pub provider: &'static str,
}Expand description
One capability requirement and the object expected to provide it. 一条能力需求,以及本应提供它的对象。
Fields§
§capability: &'static strCapability name that must be resolvable in the registry tree. 必须在注册树中可解析的能力名称。
provider: &'static strObject expected to provide that capability; any other provider fails the check. 本应提供该能力的对象;由其他对象提供即判定失败。
Trait Implementations§
Source§impl Clone for RequirementSpec
impl Clone for RequirementSpec
Source§fn clone(&self) -> RequirementSpec
fn clone(&self) -> RequirementSpec
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for RequirementSpec
Source§impl Debug for RequirementSpec
impl Debug for RequirementSpec
impl Eq for RequirementSpec
Source§impl PartialEq for RequirementSpec
impl PartialEq for RequirementSpec
impl StructuralPartialEq for RequirementSpec
Auto Trait Implementations§
impl Freeze for RequirementSpec
impl RefUnwindSafe for RequirementSpec
impl Send for RequirementSpec
impl Sync for RequirementSpec
impl Unpin for RequirementSpec
impl UnsafeUnpin for RequirementSpec
impl UnwindSafe for RequirementSpec
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