pub struct ServiceSelection { /* private fields */ }Expand description
One declared service’s profile decision.
Implementations§
Source§impl ServiceSelection
impl ServiceSelection
Sourcepub const fn source(&self) -> SourceSpan
pub const fn source(&self) -> SourceSpan
Returns the effective service-key source span.
Sourcepub fn profiles(&self) -> &[(String, SourceSpan)]
pub fn profiles(&self) -> &[(String, SourceSpan)]
Returns declared profile names and source spans in authored merge order.
Sourcepub const fn status(&self) -> ServiceStatus
pub const fn status(&self) -> ServiceStatus
Returns whether the service is active.
Sourcepub const fn reason(&self) -> &ActivationReason
pub const fn reason(&self) -> &ActivationReason
Returns the reason for the decision.
Trait Implementations§
Source§impl Clone for ServiceSelection
impl Clone for ServiceSelection
Source§fn clone(&self) -> ServiceSelection
fn clone(&self) -> ServiceSelection
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 moreSource§impl Debug for ServiceSelection
impl Debug for ServiceSelection
impl Eq for ServiceSelection
Source§impl PartialEq for ServiceSelection
impl PartialEq for ServiceSelection
impl StructuralPartialEq for ServiceSelection
Auto Trait Implementations§
impl Freeze for ServiceSelection
impl RefUnwindSafe for ServiceSelection
impl Send for ServiceSelection
impl Sync for ServiceSelection
impl Unpin for ServiceSelection
impl UnsafeUnpin for ServiceSelection
impl UnwindSafe for ServiceSelection
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