pub enum TraceMissOptions {
Allow,
AllowChecked,
Error,
Correct,
}Variants§
Allow
Allow trace miss without any fanfare
AllowChecked
Allow trace miss within error tolerance
Error
Error out when trace miss happens
Correct
Correct trace miss with driver model that catches up
Implementations§
Source§impl TraceMissOptions
impl TraceMissOptions
Sourcepub const fn is_allow(&self) -> bool
pub const fn is_allow(&self) -> bool
Returns true if this value is of type Allow. Returns false otherwise
Sourcepub const fn is_allow_checked(&self) -> bool
pub const fn is_allow_checked(&self) -> bool
Returns true if this value is of type AllowChecked. Returns false otherwise
Sourcepub const fn is_error(&self) -> bool
pub const fn is_error(&self) -> bool
Returns true if this value is of type Error. Returns false otherwise
Sourcepub const fn is_correct(&self) -> bool
pub const fn is_correct(&self) -> bool
Returns true if this value is of type Correct. Returns false otherwise
Trait Implementations§
Source§impl Clone for TraceMissOptions
impl Clone for TraceMissOptions
Source§fn clone(&self) -> TraceMissOptions
fn clone(&self) -> TraceMissOptions
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TraceMissOptions
impl Debug for TraceMissOptions
Source§impl Default for TraceMissOptions
impl Default for TraceMissOptions
Source§fn default() -> TraceMissOptions
fn default() -> TraceMissOptions
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for TraceMissOptions
impl<'de> Deserialize<'de> for TraceMissOptions
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Init for TraceMissOptions
impl Init for TraceMissOptions
Source§impl PartialEq for TraceMissOptions
impl PartialEq for TraceMissOptions
Source§impl SerdeAPI for TraceMissOptions
impl SerdeAPI for TraceMissOptions
const ACCEPTED_BYTE_FORMATS: &'static [&'static str] = _
const ACCEPTED_STR_FORMATS: &'static [&'static str] = _
const RESOURCE_PREFIX: &'static str = ""
Source§fn from_resource<P: AsRef<Path>>(
filepath: P,
skip_init: bool,
) -> Result<Self, Error>
fn from_resource<P: AsRef<Path>>( filepath: P, skip_init: bool, ) -> Result<Self, Error>
Read (deserialize) an object from a resource file packaged with the
fastsim-core crate Read moreSource§fn to_file<P: AsRef<Path>>(&self, filepath: P) -> Result<(), Error>
fn to_file<P: AsRef<Path>>(&self, filepath: P) -> Result<(), Error>
Write (serialize) an object to a file.
Supported file extensions are listed in
ACCEPTED_BYTE_FORMATS.
Creates a new file if it does not already exist, otherwise truncates the existing file. Read moreSource§fn from_file<P: AsRef<Path>>(
filepath: P,
skip_init: bool,
) -> Result<Self, Error>
fn from_file<P: AsRef<Path>>( filepath: P, skip_init: bool, ) -> Result<Self, Error>
Read (deserialize) an object from a file.
Supported file extensions are listed in
ACCEPTED_BYTE_FORMATS. Read moreSource§fn to_writer<W: Write>(&self, wtr: W, format: &str) -> Result<(), Error>
fn to_writer<W: Write>(&self, wtr: W, format: &str) -> Result<(), Error>
Write (serialize) an object into anything that implements
std::io::Write Read moreSource§fn from_reader<R: Read>(
rdr: &mut R,
format: &str,
skip_init: bool,
) -> Result<Self, Error>
fn from_reader<R: Read>( rdr: &mut R, format: &str, skip_init: bool, ) -> Result<Self, Error>
Deserialize an object from anything that implements
std::io::Read Read moreSource§fn to_str(&self, format: &str) -> Result<String>
fn to_str(&self, format: &str) -> Result<String>
Write (serialize) an object into a string Read more
Source§fn from_str<S: AsRef<str>>(
contents: S,
format: &str,
skip_init: bool,
) -> Result<Self>
fn from_str<S: AsRef<str>>( contents: S, format: &str, skip_init: bool, ) -> Result<Self>
Read (deserialize) an object from a string Read more
Source§fn from_json<S: AsRef<str>>(json_str: S, skip_init: bool) -> Result<Self>
fn from_json<S: AsRef<str>>(json_str: S, skip_init: bool) -> Result<Self>
Read (deserialize) an object from a JSON string Read more
Source§fn from_msg_pack(msg_pack: &[u8], skip_init: bool) -> Result<Self>
fn from_msg_pack(msg_pack: &[u8], skip_init: bool) -> Result<Self>
Read (deserialize) an object from a message pack Read more
Source§impl Serialize for TraceMissOptions
impl Serialize for TraceMissOptions
Source§impl TryFrom<TraceMissOptions> for ()
impl TryFrom<TraceMissOptions> for ()
Source§type Error = TryIntoError<TraceMissOptions>
type Error = TryIntoError<TraceMissOptions>
The type returned in the event of a conversion error.
impl StructuralPartialEq for TraceMissOptions
Auto Trait Implementations§
impl Freeze for TraceMissOptions
impl RefUnwindSafe for TraceMissOptions
impl Send for TraceMissOptions
impl Sync for TraceMissOptions
impl Unpin for TraceMissOptions
impl UnwindSafe for TraceMissOptions
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> 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