Skip to main content

Note

Enum Note 

Source
#[non_exhaustive]
pub enum Note { UnparsedRegion { location: String, bytes: u64, }, IncrementalHistory { revisions: usize, }, OrphanedObjectsRemoved { objects: usize, }, OutOfScopeContent { location: String, }, FilenameMayIdentify, CapabilityRemoved { location: String, capability: String, }, }
Expand description

A caveat about what strypt did or could not do.

Modelled as an enum rather than free text so that front-ends can present notes consistently, and so that a limitation cannot be introduced by a handler quietly writing a new sentence. Notes are how the tool stays honest about partial knowledge without either hiding a limitation or failing outright.

Variants (Non-exhaustive)§

This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
§

UnparsedRegion

The file contained a region the handler could not parse. Its bytes were preserved as-is, so metadata inside it — if any — was not removed.

Fields

§location: String

The region’s format-domain identifier.

§bytes: u64

How many bytes were left untouched.

§

IncrementalHistory

The file had been saved incrementally, so earlier revisions were present in it.

Fields

§revisions: usize

How many prior revisions were found.

§

OrphanedObjectsRemoved

Objects that nothing in the finished document referred to any more were dropped.

Usually the remains of superseded revisions. They are worth reporting because their presence tells the user something true about the file they were about to publish: earlier drafts of it were physically inside it.

Fields

§objects: usize

How many unreachable objects were dropped.

§

OutOfScopeContent

Content was found that strypt deliberately does not touch, such as text drawn under a redaction rectangle (docs/THREAT_MODEL.md §4.3).

Fields

§location: String

What was seen.

§

FilenameMayIdentify

The filename itself may identify its subject. A scrubbed file called IMG_survivor_address.jpg is not scrubbed in any meaningful sense (docs/ARCHITECTURE.md §8).

§

CapabilityRemoved

Removing metadata cost the file something it could previously do — not what it renders, but what it can still be used for. JPEG XL’s jbrd box is the case the variant exists for: it holds the original JPEG’s marker segments, so it goes, and bit-exact JPEG reconstruction goes with it (ADR-0036).

Fields

§location: String

What was removed.

§capability: String

What the file can no longer do, phrased to follow “this file can no longer”.

Trait Implementations§

Source§

impl Clone for Note

Source§

fn clone(&self) -> Note

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for Note

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Eq for Note

Source§

impl PartialEq for Note

Source§

fn eq(&self, other: &Note) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for Note

Auto Trait Implementations§

§

impl Freeze for Note

§

impl RefUnwindSafe for Note

§

impl Send for Note

§

impl Sync for Note

§

impl Unpin for Note

§

impl UnsafeUnpin for Note

§

impl UnwindSafe for Note

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> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

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<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. 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.