pub struct AgentInfoInner {
    pub space: Arc<KitsuneSpace>,
    pub agent: Arc<KitsuneAgent>,
    pub storage_arc: DhtArc,
    pub url_list: UrlList,
    pub signed_at_ms: u64,
    pub expires_at_ms: u64,
    pub signature: Arc<KitsuneSignature>,
    pub encoded_bytes: Box<[u8]>,
}
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: UrlList

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]>

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 ==.
This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.

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.

Returns the argument unchanged.

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

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

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 inverse inclusion map: attempts to construct self from the equivalent element of its superset. Read more
Checks if self is actually part of its subset T (and can be converted to it).
Use with care! Same as self.to_subset but without any property checks. Always succeeds.
The inclusion map: converts self to the equivalent element of its superset.
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