pub struct MetadataStoreFlags {
pub persistent: bool,
pub marks_analysis_changed: bool,
}Expand description
Controls how a metadata write behaves on a BinaryView or crate::function::Function.
persistent serializes the value into the BNDB snapshot so it survives reload. Without it
the value is kept in memory for this session only.
marks_analysis_changed marks the file as analysis-changed (drives the “dirty” indicator).
Set this for genuine user-visible edits and leave it clear when caching re-derivable data.
Fields§
§persistent: bool§marks_analysis_changed: boolImplementations§
Source§impl MetadataStoreFlags
impl MetadataStoreFlags
Sourcepub const EPHEMERAL: Self
pub const EPHEMERAL: Self
Neither persisted nor dirties the view. Equivalent to the legacy
BinaryView::store_metadata/Function::store_metadata is_auto = true.
Sourcepub const PERSISTENT: Self
pub const PERSISTENT: Self
Persisted without dirtying the view. Equivalent to the legacy Function::store_metadata
is_auto = false (where Function metadata writes never affected the file’s modified
state). For BinaryView writes that should also dirty the view, chain .marks_analysis_changed(true).
pub fn persistent(self, persistent: bool) -> Self
pub fn marks_analysis_changed(self, marks_analysis_changed: bool) -> Self
Trait Implementations§
Source§impl Clone for MetadataStoreFlags
impl Clone for MetadataStoreFlags
Source§fn clone(&self) -> MetadataStoreFlags
fn clone(&self) -> MetadataStoreFlags
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for MetadataStoreFlags
impl Debug for MetadataStoreFlags
Source§impl Default for MetadataStoreFlags
impl Default for MetadataStoreFlags
Source§fn default() -> MetadataStoreFlags
fn default() -> MetadataStoreFlags
Source§impl Hash for MetadataStoreFlags
impl Hash for MetadataStoreFlags
Source§impl PartialEq for MetadataStoreFlags
impl PartialEq for MetadataStoreFlags
impl Copy for MetadataStoreFlags
impl Eq for MetadataStoreFlags
impl StructuralPartialEq for MetadataStoreFlags
Auto Trait Implementations§
impl Freeze for MetadataStoreFlags
impl RefUnwindSafe for MetadataStoreFlags
impl Send for MetadataStoreFlags
impl Sync for MetadataStoreFlags
impl Unpin for MetadataStoreFlags
impl UnsafeUnpin for MetadataStoreFlags
impl UnwindSafe for MetadataStoreFlags
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> 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