pub struct AgentInfoInner {
    pub space: Arc<KitsuneSpace>,
    pub agent: Arc<KitsuneAgent>,
    pub storage_arc: DhtArc,
    pub url_list: Vec<TxUrl, Global>,
    pub signed_at_ms: u64,
    pub expires_at_ms: u64,
    pub signature: Arc<KitsuneSignature>,
    pub encoded_bytes: Box<[u8], Global>,
}
Expand description

The inner constructable AgentInfo struct

Fields

space: Arc<KitsuneSpace>

The space this agent info is relevant to.

agent: Arc<KitsuneAgent>

The pub key of the agent id this info is relevant to.

storage_arc: DhtArc

The storage arc currently being published by this agent.

url_list: Vec<TxUrl, Global>

List of urls the agent can be reached at, in the agent’s own preference order.

signed_at_ms: u64

The absolute unix ms timestamp that the agent info was signed at, according to the agent’s own clock.

expires_at_ms: u64

The absolute unix ms timestamp this info will expire at, according to the agent’s own clock. Note–the encoded bootstrap version of this struct uses a weird offset from the signed time… but this value here is the more intuitive absolute value.

signature: Arc<KitsuneSignature>

Raw bytes of agent info signature as kitsune signature.

encoded_bytes: Box<[u8], Global>

the raw encoded bytes sent to bootstrap server or use for sig verify.

Trait Implementations

Formats the value using the given formatter. Read more

Feeds this value into the given Hasher. Read more

Feeds a slice of this type into the given Hasher. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Compare self to key and return true if they are equal.

Performs the conversion.

Attaches the provided Context to this type, returning a WithContext wrapper. Read more

Attaches the current Context to this type, returning a WithContext wrapper. Read more

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

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

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

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Performs the conversion.

The alignment of pointer.

The type for initializers.

Initializes a with the given initializer. Read more

Dereferences the given pointer. Read more

Mutably dereferences the given pointer. Read more

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

Should always be Self

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

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

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

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

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