pub struct ProfileManager { /* private fields */ }Expand description
Profile manager validates Resonator specifications against profile rules
Implementations§
Source§impl ProfileManager
impl ProfileManager
pub fn new(config: &ProfileConfig) -> Self
Sourcepub fn validate_spec(&self, spec: &ResonatorSpec) -> Result<(), String>
pub fn validate_spec(&self, spec: &ResonatorSpec) -> Result<(), String>
Validate a Resonator spec against profile constraints
Sourcepub fn can_couple(
&self,
profile_a: &ResonatorProfile,
profile_b: &ResonatorProfile,
) -> bool
pub fn can_couple( &self, profile_a: &ResonatorProfile, profile_b: &ResonatorProfile, ) -> bool
Can these two profiles couple?
Auto Trait Implementations§
impl Freeze for ProfileManager
impl RefUnwindSafe for ProfileManager
impl Send for ProfileManager
impl Sync for ProfileManager
impl Unpin for ProfileManager
impl UnwindSafe for ProfileManager
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