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
impl RuntimeConfig
Sourcepub fn set(&self, fallback: Option<RawStr>, parse_typetree: bool)
pub fn set(&self, fallback: Option<RawStr>, parse_typetree: bool)
Replace both settings atomically before a binding’s next load.
Sourcepub fn snapshot(&self) -> (Option<RawStr>, bool)
pub fn snapshot(&self) -> (Option<RawStr>, bool)
Snapshot the fallback and post-read typetree flag.
Sourcepub fn set_decrypt_key(&self, key: Option<[u8; 16]>)
pub fn set_decrypt_key(&self, key: Option<[u8; 16]>)
Configure the key used by a binding’s subsequent bundle loads.
Sourcepub fn set_decrypt_key_source(&self, source: Arc<dyn DecryptKeySource>)
pub fn set_decrypt_key_source(&self, source: Arc<dyn DecryptKeySource>)
Install a lazy binding resolver for subsequent encrypted loads.
Sourcepub fn resolve_decrypt_key(
&self,
meter: &Arc<Meter>,
) -> Result<Option<[u8; 16]>, ChargeError>
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.
Sourcepub fn decrypt_key(&self) -> Option<[u8; 16]>
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
impl Debug for RuntimeConfig
Auto Trait Implementations§
impl !Freeze for RuntimeConfig
impl Forget for RuntimeConfig
impl Move for RuntimeConfig
impl RefUnwindSafe for RuntimeConfig
impl Send for RuntimeConfig
impl Sync for RuntimeConfig
impl Unpin for RuntimeConfig
impl UnsafeUnpin for RuntimeConfig
impl UnwindSafe for RuntimeConfig
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