Skip to main content

ProviderAnnouncementMessage

Struct ProviderAnnouncementMessage 

Source
pub struct ProviderAnnouncementMessage {
Show 15 fields pub peer_id: String, pub provider_address: String, pub provider_type: String, pub served_models: Vec<String>, pub capabilities: Vec<String>, pub rpc_endpoint: String, pub status: String, pub timestamp: i64, pub ttl_secs: u64, pub runtime_support: RuntimeSupport, pub network_profile: NodeNetworkProfile, pub trust_profile: TrustProfile, pub worker_roles: Vec<WorkerRole>, pub hardware: HardwareCapabilities, pub geography: Option<String>,
}
Expand description

Provider announcement message — broadcast over gossipsub topic “tenzro/providers” every 60s by nodes serving models or TEE services. All peers merge incoming announcements into their network_providers DashMap so any node can discover every provider in the network without a central registry.

Fields§

§peer_id: String

libp2p peer ID of the announcing node

§provider_address: String

Wallet/account address of the provider

§provider_type: String

Provider type (e.g. “llm”, “tee”, “general”)

§served_models: Vec<String>

Model IDs currently being served by this node

§capabilities: Vec<String>

Capability labels (e.g. “inference”, “tee-attestation”)

§rpc_endpoint: String

HTTP RPC endpoint for direct inference routing (e.g. “http://10.128.0.5:8545”)

§status: String

Lifecycle status (e.g. “active”, “draining”)

§timestamp: i64

Unix timestamp (ms) when this announcement was created

§ttl_secs: u64

TTL in seconds — entries expire if not refreshed (default 120s)

§runtime_support: RuntimeSupport

RFC-0007: Runtime capabilities of this provider node

§network_profile: NodeNetworkProfile

RFC-0007: Network topology profile of this node

§trust_profile: TrustProfile

RFC-0007: TEE trust provenance for this provider

§worker_roles: Vec<WorkerRole>

RFC-0007: Worker roles this node can fulfil in distributed inference

§hardware: HardwareCapabilities

Hardware envelope of this provider node — RAM, VRAM, disk, CPU, TEE availability. Populated at announcement-build time from the local HardwareCapabilities::detect() result so consumers can route by memory / GPU / TEE class without an extra RPC round-trip.

§geography: Option<String>

Geographic locality declared by the operator (free-form identifier such as us-central1-a, eu-west, ap-southeast-1). None means the provider declined to declare a region; consumers must treat None as “unknown geography”, not as a wildcard match.

Trait Implementations§

Source§

impl Clone for ProviderAnnouncementMessage

Source§

fn clone(&self) -> ProviderAnnouncementMessage

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for ProviderAnnouncementMessage

Source§

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

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

impl<'de> Deserialize<'de> for ProviderAnnouncementMessage

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl Serialize for ProviderAnnouncementMessage

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. 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<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

Source§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

Source§

impl<'a, T, E> AsTaggedImplicit<'a, E> for T
where T: 'a,

Source§

fn implicit( self, class: Class, constructed: bool, tag: u32, ) -> TaggedParser<'a, Implicit, Self, E>

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> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
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> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts 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 more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts 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
Source§

impl<T> Pointable for T

Source§

const ALIGN: usize

The alignment of pointer.
Source§

type Init = T

The type for initializers.
Source§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
Source§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
Source§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
Source§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

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.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V

Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more