pub struct PhaseProvider<'a> { /* private fields */ }Expand description
Defines a phase provider.
A phase provider is able to get the current phase from a phase-based system.
Implementations§
Source§impl<'a> PhaseProvider<'a>
impl<'a> PhaseProvider<'a>
Sourcepub fn get_phase(
&self,
phase_ring_id: &String,
) -> Option<StateProviderQuery<String>>
pub fn get_phase( &self, phase_ring_id: &String, ) -> Option<StateProviderQuery<String>>
Returns the [PhaseStateProviderQuery] for the specified phase_ring_id.
The states are represented with Strings containing the IDs of each Phase.
§Arguments
phase_ring_id- The id of the phase ring.
§Returns
An Option containing the [PhaseStateProviderQuery] for the given phase_ring_id.
Returns None if no phase provider is found for the given id.
Auto Trait Implementations§
impl<'a> Freeze for PhaseProvider<'a>
impl<'a> RefUnwindSafe for PhaseProvider<'a>
impl<'a> !Send for PhaseProvider<'a>
impl<'a> !Sync for PhaseProvider<'a>
impl<'a> Unpin for PhaseProvider<'a>
impl<'a> UnwindSafe for PhaseProvider<'a>
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