pub struct AtcoderActor<'a> { /* private fields */ }
Implementations§
Source§impl<'a> AtcoderActor<'a>
impl<'a> AtcoderActor<'a>
pub fn new(session: &'a SessionConfig) -> Self
Source§impl AtcoderActor<'_>
impl AtcoderActor<'_>
pub fn fetch_full( contest_id: &ContestId, problems: &[Problem], token_path: &AbsPathBuf, access_token: Option<String>, conf: &Config, cnsl: &mut Console, ) -> Result<()>
pub fn load_testcases( testcases_dir: AbsPathBuf, sample_name: &Option<String>, ) -> Result<TestcaseIter>
Trait Implementations§
Source§impl Act for AtcoderActor<'_>
impl Act for AtcoderActor<'_>
fn current_user(&self, cnsl: &mut Console) -> Result<Option<String>>
fn login(&self, user: String, pass: String, cnsl: &mut Console) -> Result<bool>
fn fetch( &self, contest_id: &ContestId, problem_id: &Option<ProblemId>, cnsl: &mut Console, ) -> Result<(Contest, Vec<Problem>)>
fn submit<'a>( &self, contest_id: &ContestId, problem: &Problem, lang_names: &'a [LangName], source: &str, cnsl: &mut Console, ) -> Result<LangNameRef<'a>>
fn open_problem_url( &self, contest_id: &ContestId, problem: &Problem, cnsl: &mut Console, ) -> Result<()>
fn open_submissions_url( &self, contest_id: &ContestId, cnsl: &mut Console, ) -> Result<()>
Auto Trait Implementations§
impl<'a> Freeze for AtcoderActor<'a>
impl<'a> !RefUnwindSafe for AtcoderActor<'a>
impl<'a> Send for AtcoderActor<'a>
impl<'a> Sync for AtcoderActor<'a>
impl<'a> Unpin for AtcoderActor<'a>
impl<'a> !UnwindSafe for AtcoderActor<'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
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> 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