pub struct ReportBuilder<'a, Fallback = (), State: ReportBuilderState = WithoutSpec> { /* private fields */ }Implementations§
Source§impl<'a, Fallback: SelectableSource, X: ReportBuilderState> ReportBuilder<'a, Fallback, X>
impl<'a, Fallback: SelectableSource, X: ReportBuilderState> ReportBuilder<'a, Fallback, X>
pub const fn with_max_list_length(self, max: Option<u32>) -> Self
pub const fn with_max_string_length(self, max: Option<usize>) -> Self
pub const fn with_max_executed_stmts(self, max: Option<usize>) -> Self
pub const fn with_max_statement_stack_height(self, max: Option<usize>) -> Self
pub const fn with_eval_limits(self, limits: EvalLimitations) -> Self
pub fn with_allowed_network( self, net: Option<Arc<dyn Fn(AllowNetData) -> Result<AllowNetData, (AllowNetData, cerr)> + Send + Sync>>, ) -> Self
pub fn with_log_pfx(self, log_pfx: Option<LogPfx>) -> Self
pub fn with_fallback(self, fb: Option<Fallback>) -> Self
pub fn add_allow_network_map_check( self, closure: impl Fn(AllowNetData) -> Result<AllowNetData, (AllowNetData, cerr)> + Send + Sync + 'static, ) -> Self
pub fn add_allow_network_if_check( self, closure: impl Fn(&AllowNetData) -> bool + Send + Sync + 'static, ) -> Self
pub fn add_allow_network_cerr_check( self, closure: impl Fn(&AllowNetData) -> Result<(), cerr> + Send + Sync + 'static, ) -> Self
Sourcepub fn disallow_network(self) -> Self
pub fn disallow_network(self) -> Self
removes all checks and disallows all network access in this way
Source§impl ReportBuilder<'static, (), WithoutSpec>
impl ReportBuilder<'static, (), WithoutSpec>
pub const fn no_limits() -> Self
pub const fn new_good_limits() -> Self
Source§impl<Fallback: SelectableSource> ReportBuilder<'static, Fallback, WithoutSpec>
impl<Fallback: SelectableSource> ReportBuilder<'static, Fallback, WithoutSpec>
pub fn with_spec<'a>( self, spec: &'a Bast3StSpec, ) -> ReportBuilder<'a, Fallback, WithSpec>
Source§impl<'a, Fallback: SelectableSource> ReportBuilder<'a, Fallback, WithSpec>
impl<'a, Fallback: SelectableSource> ReportBuilder<'a, Fallback, WithSpec>
pub fn build( self, doc: ProjectDoc, initial_block: Id, ) -> (Context, (LogPfx, Option<RealMapping>, Option<Fallback>, &'a Bast3StSpec))
pub async fn run(
self,
doc: ProjectDoc,
initial_block: Option<Id>,
) -> Result<PSpec, SpecRunError>where
Fallback: Clone + 'static,
pub async fn run_from_unique_flag(
self,
doc: ProjectDoc,
) -> Result<PSpec, SpecRunError>where
Fallback: Clone + 'static,
Trait Implementations§
Source§impl<'a, Fallback: Clone, State: Clone + ReportBuilderState> Clone for ReportBuilder<'a, Fallback, State>where
State::Spec<'a>: Clone,
impl<'a, Fallback: Clone, State: Clone + ReportBuilderState> Clone for ReportBuilder<'a, Fallback, State>where
State::Spec<'a>: Clone,
Source§fn clone(&self) -> ReportBuilder<'a, Fallback, State>
fn clone(&self) -> ReportBuilder<'a, Fallback, State>
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<'a, Fallback, State: ReportBuilderState> Debug for ReportBuilder<'a, Fallback, State>
impl<'a, Fallback, State: ReportBuilderState> Debug for ReportBuilder<'a, Fallback, State>
Auto Trait Implementations§
impl<'a, Fallback = (), State = WithoutSpec> !RefUnwindSafe for ReportBuilder<'a, Fallback, State>
impl<'a, Fallback = (), State = WithoutSpec> !UnwindSafe for ReportBuilder<'a, Fallback, State>
impl<'a, Fallback, State> Freeze for ReportBuilder<'a, Fallback, State>
impl<'a, Fallback, State> Send for ReportBuilder<'a, Fallback, State>
impl<'a, Fallback, State> Sync for ReportBuilder<'a, Fallback, State>
impl<'a, Fallback, State> Unpin for ReportBuilder<'a, Fallback, State>
impl<'a, Fallback, State> UnsafeUnpin for ReportBuilder<'a, Fallback, State>where
<State as ReportBuilderState>::Spec<'a>: UnsafeUnpin,
Fallback: UnsafeUnpin,
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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