pub struct Quest {
pub dir: PathBuf,
pub config: QuestConfig,
/* private fields */
}Fields§
§dir: PathBuf§config: QuestConfigImplementations§
Source§impl Quest
impl Quest
pub async fn create( dir: &Path, source: CreateSource, state_event: Box<dyn StateEmitter>, ) -> Result<Self>
pub async fn load( dir: &Path, state_event: Box<dyn StateEmitter>, ) -> Result<Self>
pub fn stages(&self) -> &[Stage]
pub async fn state_descriptor(&self) -> Result<StateDescriptor>
pub async fn infer_state_update(&self) -> Result<()>
pub async fn infer_state_loop(&self)
pub async fn file_feature_and_issue( &self, stage_index: usize, ) -> Result<(Option<PullRequest>, Issue)>
pub async fn file_solution(&self, stage_index: usize) -> Result<PullRequest>
pub fn stage_states(&self) -> Vec<StageState>
pub async fn skip_to_stage(&self, stage_index: usize) -> Result<()>
Auto Trait Implementations§
impl !Freeze for Quest
impl !RefUnwindSafe for Quest
impl Send for Quest
impl Sync for Quest
impl Unpin for Quest
impl UnsafeUnpin for Quest
impl !UnwindSafe for Quest
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more