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.
Implementations§
Trait Implementations§
source§impl Debug for AgentInfoInner
impl Debug for AgentInfoInner
source§impl Hash for AgentInfoInner
impl Hash for AgentInfoInner
source§impl PartialEq for AgentInfoInner
impl PartialEq 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§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T> Pointable for T
impl<T> Pointable for T
§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self
from the equivalent element of its
superset. Read more§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self
is actually part of its subset T
(and can be converted to it).§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset
but without any property checks. Always succeeds.§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self
to the equivalent element of its superset.