Skip to main content

RuntimeConfig

Struct RuntimeConfig 

Source
pub struct RuntimeConfig { /* private fields */ }
Expand description

Binding settings captured before entering a load. Existing files retain their parsed versions and tree flags when a subsequent load updates these.

Implementations§

Source§

impl RuntimeConfig

Source

pub fn unitypy() -> Self

Initial UnityPy configuration.

Source

pub fn set(&self, fallback: Option<RawStr>, parse_typetree: bool)

Replace both settings atomically before a binding’s next load.

Source

pub fn snapshot(&self) -> (Option<RawStr>, bool)

Snapshot the fallback and post-read typetree flag.

Source

pub fn set_decrypt_key(&self, key: Option<[u8; 16]>)

Configure the key used by a binding’s subsequent bundle loads.

Source

pub fn set_decrypt_key_source(&self, source: Arc<dyn DecryptKeySource>)

Install a lazy binding resolver for subsequent encrypted loads.

Source

pub fn resolve_decrypt_key( &self, meter: &Arc<Meter>, ) -> Result<Option<[u8; 16]>, ChargeError>

Resolve the key on the active input’s meter, outside configuration locks.

Source

pub fn decrypt_key(&self) -> Option<[u8; 16]>

Copy the configured native key without retaining a lock while decoding.

Trait Implementations§

Source§

impl Debug for RuntimeConfig

Source§

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

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

impl Default for RuntimeConfig

Source§

fn default() -> Self

Returns the “default value” for a type. Read more

Auto Trait Implementations§

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> 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, 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.