pub struct PreparedEntryProfiles { /* private fields */ }Expand description
Immutable per-run management-profile selection.
Implementations§
Source§impl PreparedEntryProfiles
impl PreparedEntryProfiles
pub fn try_new( default: Option<ManagementProfile>, routes: impl IntoIterator<Item = (String, ManagementProfile)>, ) -> Result<Self, EntryProfileRoutingError>
pub fn default_only(profile: Option<ManagementProfile>) -> Self
pub fn select( &self, signal: &RawSignal, ) -> Result<Option<&ManagementProfile>, EntryProfileRoutingError>
pub fn validate_signals( &self, signals: &[RawSignal], ) -> Result<(), EntryProfileRoutingError>
pub fn default_profile(&self) -> Option<&ManagementProfile>
pub fn routes(&self) -> &BTreeMap<String, ManagementProfile>
pub fn is_empty(&self) -> bool
Trait Implementations§
Source§impl Clone for PreparedEntryProfiles
impl Clone for PreparedEntryProfiles
Source§impl Debug for PreparedEntryProfiles
impl Debug for PreparedEntryProfiles
Source§impl Default for PreparedEntryProfiles
impl Default for PreparedEntryProfiles
Auto Trait Implementations§
impl Freeze for PreparedEntryProfiles
impl RefUnwindSafe for PreparedEntryProfiles
impl Send for PreparedEntryProfiles
impl Sync for PreparedEntryProfiles
impl Unpin for PreparedEntryProfiles
impl UnsafeUnpin for PreparedEntryProfiles
impl UnwindSafe for PreparedEntryProfiles
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