[−][src]Enum boxcars::CrcCheck
Determines under what circumstances the parser should perform the crc check for replay corruption. Since the crc check is the most time consuming part when parsing the header, clients should choose under what circumstances a crc check is performed.
Variants
Always perform the crc check. Useful when the replay has had its contents modified. This will catch a user that increased the number of goals they scored (easy) but only if they didn't update the crc as well (not as easy).
Never perform the crc check. Useful only when it doesn't matter to know if a replay is corrupt or not, you either want the data or the parsing error.
Only perform the crc check when parsing a section fails. This option gets the best of both worlds. If parsing fails, the crc check will determine if it is a programming error or the replay is corrupt. If parsing succeeds it won't precious time performing the check. This option is the default for parsing.
Trait Implementations
impl Clone for CrcCheck
[src]
impl Copy for CrcCheck
[src]
impl Debug for CrcCheck
[src]
impl Eq for CrcCheck
[src]
impl PartialEq<CrcCheck> for CrcCheck
[src]
impl StructuralEq for CrcCheck
[src]
impl StructuralPartialEq for CrcCheck
[src]
Auto Trait Implementations
impl RefUnwindSafe for CrcCheck
impl Send for CrcCheck
impl Sync for CrcCheck
impl Unpin for CrcCheck
impl UnwindSafe for CrcCheck
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,