pub struct ExperienceConfig {
pub max_depth: usize,
pub max_nodes: usize,
pub max_text_bytes: usize,
pub max_id_bytes: usize,
pub max_goal_bytes: usize,
pub max_steps: usize,
pub max_snapshot_bytes: u64,
pub form_state: bool,
pub max_page_bytes: usize,
}Expand description
Bounds on what one observation may contain; trees come from outside the process.
Fields§
§max_depth: usizeLevels of nesting, the root counting as one. At most 512.
max_nodes: usizeNodes in one observation tree.
max_text_bytes: usizeBytes in any role, name, props, handle, URL or action string.
max_id_bytes: usizeBytes in an episode id.
max_goal_bytes: usizeBytes in a goal or outcome.
max_steps: usizeSteps recorded for one episode.
max_snapshot_bytes: u64Bytes of the snapshot payload. A snapshot over this is refused when it is read, so a write that would take the store past it is refused before it is journaled.
form_state: boolParse the controls of a step from the accessibility-tree text it arrives with
(ObservationInput) and store them with the step. Off, the text is not parsed and is
dropped; its size is still bounded by max_page_bytes.
max_page_bytes: usizeBytes of the accessibility-tree text of one observation, checked before it is parsed.
Its lines longer than max_text_bytes are skipped by the form-state parser.
Trait Implementations§
Source§impl Clone for ExperienceConfig
impl Clone for ExperienceConfig
Source§impl Debug for ExperienceConfig
impl Debug for ExperienceConfig
Source§impl Default for ExperienceConfig
impl Default for ExperienceConfig
impl Eq for ExperienceConfig
Source§impl PartialEq for ExperienceConfig
impl PartialEq for ExperienceConfig
impl StructuralPartialEq for ExperienceConfig
Auto Trait Implementations§
impl Freeze for ExperienceConfig
impl RefUnwindSafe for ExperienceConfig
impl Send for ExperienceConfig
impl Sync for ExperienceConfig
impl Unpin for ExperienceConfig
impl UnsafeUnpin for ExperienceConfig
impl UnwindSafe for ExperienceConfig
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> 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> ⓘ
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> ⓘ
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§impl<T> Pointable for T
impl<T> Pointable for T
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
impl<T> Scalar for T
§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
self from the equivalent element of its
superset. Read more§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
self is actually part of its subset T (and can be converted to it).§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
self.to_subset but without any property checks. Always succeeds.§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
self to the equivalent element of its superset.