Struct kitsune_p2p_types::agent_info::AgentInfoInner
source · [−]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
sourceimpl Debug for AgentInfoInner
impl Debug for AgentInfoInner
sourceimpl Hash for AgentInfoInner
impl Hash for AgentInfoInner
sourceimpl PartialEq<AgentInfoInner> for AgentInfoInner
impl PartialEq<AgentInfoInner> for AgentInfoInner
impl Eq for AgentInfoInner
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.
impl<T> FutureExt for T
impl<T> FutureExt for T
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>
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
impl<T> Pointable for T
impl<T> Pointable for T
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
fn vzip(self) -> V
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
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
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
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
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more