Struct kitsune_p2p_types::agent_info::AgentInfoSigned [−][src]
pub struct AgentInfoSigned(pub Arc<AgentInfoInner>);
Expand description
Value in the peer database that tracks an Agent’s representation as signed by that agent.
Tuple Fields
0: Arc<AgentInfoInner>
Implementations
pub async fn sign<'a, R, F>(
space: Arc<KitsuneSpace>,
agent: Arc<KitsuneAgent>,
dht_storage_arc_half_length: u32,
url_list: UrlList,
signed_at_ms: u64,
expires_at_ms: u64,
f: F
) -> KitsuneResult<Self> where
R: Future<Output = KitsuneResult<Arc<KitsuneSignature>>>,
F: FnOnce(&[u8]) -> R,
pub async fn sign<'a, R, F>(
space: Arc<KitsuneSpace>,
agent: Arc<KitsuneAgent>,
dht_storage_arc_half_length: u32,
url_list: UrlList,
signed_at_ms: u64,
expires_at_ms: u64,
f: F
) -> KitsuneResult<Self> where
R: Future<Output = KitsuneResult<Arc<KitsuneSignature>>>,
F: FnOnce(&[u8]) -> R,
Construct and sign a new AgentInfoSigned instance.
get just the agent and its storage arc
Trait Implementations
type Target = AgentInfoInner
type Target = AgentInfoInner
The resulting type after dereferencing.
Deserialize this value from the given Serde deserializer. 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
impl RefUnwindSafe for AgentInfoSigned
impl Send for AgentInfoSigned
impl Sync for AgentInfoSigned
impl Unpin for AgentInfoSigned
impl UnwindSafe for AgentInfoSigned
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