Skip to main content

RecordOptions

Struct RecordOptions 

Source
pub struct RecordOptions<'a> {
Show 15 fields pub repo: &'a Path, pub run: &'a [String], pub inputs: Option<&'a Path>, pub normalize: &'a [String], pub name: Option<&'a str>, pub traps: bool, pub timeout_secs: Option<u64>, pub http: bool, pub port: Option<u16>, pub server_args: &'a [String], pub fresh: &'a [String], pub pace_ms: Option<u64>, pub float_tolerance: Option<f64>, pub float_files: &'a [String], pub effects: Option<EffectsConfig>,
}

Fields§

§repo: &'a Path§run: &'a [String]

The command that runs the original; taken from the saved config when empty.

§inputs: Option<&'a Path>§normalize: &'a [String]

Built-in normalizer names, or name=regex for your own.

§name: Option<&'a str>§traps: bool§timeout_secs: Option<u64>§http: bool

The app is a server: record requests instead of command lines.

§port: Option<u16>

The port a server always listens on (implies http); unset, it gets a free one through PORT and {port}.

§server_args: &'a [String]

Servers: arguments every start gets after its command, the original’s and every build’s (implies http); kept from the last recording when empty.

§fresh: &'a [String]

Servers: repository files or folders copied into a fresh working directory before every start (implies http); kept from the last recording when empty.

§pace_ms: Option<u64>

Servers: milliseconds to wait after each response, for work the server does after answering (a file watcher, a write-behind); kept from the last recording when None.

§float_tolerance: Option<f64>

Numbers in the output match within this tolerance; kept from the last recording when None, removed with 0.

§float_files: &'a [String]

Written files of raw floats, path=f32le or path=f64le; kept from the last recording when empty.

§effects: Option<EffectsConfig>

Auto Trait Implementations§

§

impl<'a> Forget for RecordOptions<'a>

§

impl<'a> Freeze for RecordOptions<'a>

§

impl<'a> Move for RecordOptions<'a>

§

impl<'a> RefUnwindSafe for RecordOptions<'a>

§

impl<'a> Send for RecordOptions<'a>

§

impl<'a> Sync for RecordOptions<'a>

§

impl<'a> Unpin for RecordOptions<'a>

§

impl<'a> UnsafeUnpin for RecordOptions<'a>

§

impl<'a> UnwindSafe for RecordOptions<'a>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> ErasedDestructor for T
where T: 'static,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<'a, T> FromIn<'a, T> for T

Source§

fn from_in(t: T, _: &'a Allocator) -> T

Converts to this type from the input type within the given allocator.
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<'a, T, U> IntoIn<'a, U> for T
where U: FromIn<'a, T>,

Source§

fn into_in(self, allocator: &'a Allocator) -> U

Converts this type into the (usually inferred) input type within the given allocator.
Source§

impl<T> Pointable for T

Source§

const ALIGN: usize

The alignment of pointer.
Source§

type Init = T

The type for initializers.
Source§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
Source§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
Source§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
Source§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.