Struct kitsune_p2p_types::agent_info::AgentInfoInner [−][src]
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
Auto Trait Implementations
impl RefUnwindSafe for AgentInfoInner
impl Send for AgentInfoInner
impl Sync for AgentInfoInner
impl Unpin for AgentInfoInner
impl UnwindSafe for AgentInfoInner
Blanket Implementations
Mutably borrows from an owned value. Read more
Compare self to key
and return true
if they are equal.
fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
pub fn vzip(self) -> V
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