pub struct Controller { /* private fields */ }Implementations§
Source§impl Controller
impl Controller
Sourcepub fn new(rule: Arc<Rule>, stat: Arc<StandaloneStat>) -> Self
pub fn new(rule: Arc<Rule>, stat: Arc<StandaloneStat>) -> Self
Please refer to the generators in the rule_manager
pub fn rule(&self) -> &Arc<Rule>
pub fn get_checker(&self) -> &Arc<Mutex<dyn Checker>>
pub fn set_checker(&mut self, checker: Arc<Mutex<dyn Checker>>)
pub fn get_calculator(&self) -> &Arc<Mutex<dyn Calculator>>
pub fn set_calculator(&mut self, calculator: Arc<Mutex<dyn Calculator>>)
pub fn stat(&self) -> &Arc<StandaloneStat>
pub fn perform_checking( &self, res_stat: Arc<dyn StatNode>, batch_count: u32, flag: i32, ) -> TokenResult
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Controller
impl !RefUnwindSafe for Controller
impl Send for Controller
impl Sync for Controller
impl Unpin for Controller
impl !UnwindSafe for Controller
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 moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request