pub struct JitRegistration { /* private fields */ }Expand description
A registered runner and the configuration that starts it.
Debug is hand-written. The configuration’s own Debug already redacts, so
a derive would be safe today; it is written out because the field it is
protecting is a secret and the crate’s stated rule is that such types do not
rely on a derive staying correct across an edit nobody reviews.
Implementations§
Source§impl JitRegistration
impl JitRegistration
pub fn new(config: EncodedJitConfig, runner: JitRunner) -> Self
pub fn config(&self) -> &EncodedJitConfig
Sourcepub fn into_config(self) -> EncodedJitConfig
pub fn into_config(self) -> EncodedJitConfig
Take the configuration, leaving the runner reference behind.
The handoff in e3 wants the secret and the diagnostics separately, and
moving it out rather than cloning is what keeps there being one copy.
pub fn runner(&self) -> &JitRunner
Trait Implementations§
Auto Trait Implementations§
impl Freeze for JitRegistration
impl RefUnwindSafe for JitRegistration
impl Send for JitRegistration
impl Sync for JitRegistration
impl Unpin for JitRegistration
impl UnsafeUnpin for JitRegistration
impl UnwindSafe for JitRegistration
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