pub struct BackendKey {
pub instance: BrokerInstanceKey,
pub service_name: String,
pub service_version: String,
pub exe_hash: String,
}Expand description
Lookup key for one backend process.
The key includes the daemon executable’s content hash (exe_hash, hex)
so that two different builds of the same version — the ordinary
edit-rebuild-the-daemon dev loop — are distinct registry entries rather
than aliasing to one. Without it, a rebuilt daemon binary negotiates to the
resident (stale-code) daemon on a service_name + service_version match,
the un-isolated half of the daemon-collision class (running-process#894).
Fields§
§instance: BrokerInstanceKeyBroker trust-domain instance.
service_name: StringLogical service name.
service_version: StringService version.
exe_hash: StringBLAKE3 hash (lowercase hex) of the daemon executable this backend runs.
Derived on insert from the launched daemon’s verified identity, and
supplied on lookup as the hash of the on-disk binary_path the client
would launch. A rebuild changes the bytes → changes this segment → the
resident daemon is a lookup miss and the caller launches its own.
Implementations§
Trait Implementations§
Source§impl Clone for BackendKey
impl Clone for BackendKey
Source§fn clone(&self) -> BackendKey
fn clone(&self) -> BackendKey
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for BackendKey
impl Debug for BackendKey
impl Eq for BackendKey
Source§impl Hash for BackendKey
impl Hash for BackendKey
Source§impl PartialEq for BackendKey
impl PartialEq for BackendKey
impl StructuralPartialEq for BackendKey
Auto Trait Implementations§
impl Freeze for BackendKey
impl RefUnwindSafe for BackendKey
impl Send for BackendKey
impl Sync for BackendKey
impl Unpin for BackendKey
impl UnsafeUnpin for BackendKey
impl UnwindSafe for BackendKey
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,
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.Source§impl<T> DowncastSync for T
impl<T> DowncastSync for T
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.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