diff --git a/pr/2628/docs/iroh_blobs/metrics/struct.Metrics.html b/pr/2628/docs/iroh_blobs/metrics/struct.Metrics.html index b0f6a2bbf7..ed6579be27 100644 --- a/pr/2628/docs/iroh_blobs/metrics/struct.Metrics.html +++ b/pr/2628/docs/iroh_blobs/metrics/struct.Metrics.html @@ -1,20 +1,20 @@ Metrics in iroh_blobs::metrics - Rust

Struct iroh_blobs::metrics::Metrics

source ·
pub struct Metrics {
-    pub download_bytes_total: Counter,
-    pub download_time_total: Counter,
-    pub downloads_success: Counter,
-    pub downloads_error: Counter,
-    pub downloads_notfound: Counter,
-    pub downloader_tick_main: Counter,
-    pub downloader_tick_connection_ready: Counter,
-    pub downloader_tick_message_received: Counter,
-    pub downloader_tick_transfer_completed: Counter,
-    pub downloader_tick_transfer_failed: Counter,
-    pub downloader_tick_retry_node: Counter,
-    pub downloader_tick_goodbye_node: Counter,
+    pub download_bytes_total: Counter,
+    pub download_time_total: Counter,
+    pub downloads_success: Counter,
+    pub downloads_error: Counter,
+    pub downloads_notfound: Counter,
+    pub downloader_tick_main: Counter,
+    pub downloader_tick_connection_ready: Counter,
+    pub downloader_tick_message_received: Counter,
+    pub downloader_tick_transfer_completed: Counter,
+    pub downloader_tick_transfer_failed: Counter,
+    pub downloader_tick_retry_node: Counter,
+    pub downloader_tick_goodbye_node: Counter,
 }
Expand description

Enum of metrics for the module

-

Fields§

§download_bytes_total: Counter§download_time_total: Counter§downloads_success: Counter§downloads_error: Counter§downloads_notfound: Counter§downloader_tick_main: Counter§downloader_tick_connection_ready: Counter§downloader_tick_message_received: Counter§downloader_tick_transfer_completed: Counter§downloader_tick_transfer_failed: Counter§downloader_tick_retry_node: Counter§downloader_tick_goodbye_node: Counter

Trait Implementations§

source§

impl Clone for Metrics

source§

fn clone(&self) -> Metrics

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for Metrics

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Default for Metrics

source§

fn default() -> Self

Returns the “default value” for a type. Read more
source§

impl Iterable for Metrics

source§

fn iter<'a>(&'a self) -> IntoIter<(&'static str, &'a dyn Any)>

Returns an iterator over the struct’s fields as tuples. Read more
source§

impl Metric for Metrics

source§

fn name() -> &'static str

The name of this metric group.
§

fn new(registry: &mut Registry) -> Self

Initializes this metric group.
§

fn with_metric<T, F>(f: F)
where +

Fields§

§download_bytes_total: Counter§download_time_total: Counter§downloads_success: Counter§downloads_error: Counter§downloads_notfound: Counter§downloader_tick_main: Counter§downloader_tick_connection_ready: Counter§downloader_tick_message_received: Counter§downloader_tick_transfer_completed: Counter§downloader_tick_transfer_failed: Counter§downloader_tick_retry_node: Counter§downloader_tick_goodbye_node: Counter

Trait Implementations§

source§

impl Clone for Metrics

source§

fn clone(&self) -> Metrics

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for Metrics

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Default for Metrics

source§

fn default() -> Self

Returns the “default value” for a type. Read more
source§

impl Iterable for Metrics

source§

fn iter<'a>(&'a self) -> IntoIter<(&'static str, &'a dyn Any)>

Returns an iterator over the struct’s fields as tuples. Read more
source§

impl Metric for Metrics

source§

fn name() -> &'static str

The name of this metric group.
source§

fn new(registry: &mut Registry) -> Self

Initializes this metric group.
source§

fn with_metric<T, F>(f: F)
where F: FnOnce(&Self) -> T,

Access to this metrics group to record a metric. -Only records if this metric is registered in the global registry.
§

fn try_get() -> Option<&'static Self>

Attempts to get the current metric from the global registry.

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where +Only records if this metric is registered in the global registry.

source§

fn try_get() -> Option<&'static Self>

Attempts to get the current metric from the global registry.

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedImplicit<'a, E> for T
where diff --git a/pr/2628/docs/iroh_docs/actor/struct.SyncHandle.html b/pr/2628/docs/iroh_docs/actor/struct.SyncHandle.html index 6c70a0ff39..cfd29c2ce8 100644 --- a/pr/2628/docs/iroh_docs/actor/struct.SyncHandle.html +++ b/pr/2628/docs/iroh_docs/actor/struct.SyncHandle.html @@ -26,7 +26,7 @@ waiting for the actor to finish happens in an async context, and therefore that namespace: NamespaceId, author: AuthorId, key: Bytes, - hash: Hash, + hash: Hash, len: u64 ) -> Result<()>

source

pub async fn delete_prefix( &self, diff --git a/pr/2628/docs/iroh_docs/engine/enum.LiveEvent.html b/pr/2628/docs/iroh_docs/engine/enum.LiveEvent.html index 2074294ea1..44bd62f98d 100644 --- a/pr/2628/docs/iroh_docs/engine/enum.LiveEvent.html +++ b/pr/2628/docs/iroh_docs/engine/enum.LiveEvent.html @@ -3,34 +3,34 @@ entry: Entry, }, InsertRemote { - from: PublicKey, + from: PublicKey, entry: Entry, content_status: ContentStatus, }, ContentReady { - hash: Hash, + hash: Hash, }, PendingContentReady, - NeighborUp(PublicKey), - NeighborDown(PublicKey), + NeighborUp(PublicKey), + NeighborDown(PublicKey), SyncFinished(SyncEvent), }
Expand description

Events informing about actions of the live sync progress.

Variants§

§

InsertLocal

A local insertion.

Fields

§entry: Entry

The inserted entry.

§

InsertRemote

Received a remote insert.

-

Fields

§from: PublicKey

The peer that sent us the entry.

+

Fields

§from: PublicKey

The peer that sent us the entry.

§entry: Entry

The inserted entry.

§content_status: ContentStatus

If the content is available at the local node

§

ContentReady

The content of an entry was downloaded and is now available at the local node

-

Fields

§hash: Hash

The content hash of the newly available entry content

+

Fields

§hash: Hash

The content hash of the newly available entry content

§

PendingContentReady

All pending content is now ready.

This event signals that all queued content downloads from the last sync run have either completed or failed.

It will only be emitted after a Self::SyncFinished event, never before.

Receiving this event does not guarantee that all content in the document is available. If blobs failed to download, this event will still be emitted after all operations completed.

-
§

NeighborUp(PublicKey)

We have a new neighbor in the swarm.

-
§

NeighborDown(PublicKey)

We lost a neighbor in the swarm.

+
§

NeighborUp(PublicKey)

We have a new neighbor in the swarm.

+
§

NeighborDown(PublicKey)

We lost a neighbor in the swarm.

§

SyncFinished(SyncEvent)

A set-reconciliation sync finished.

Trait Implementations§

source§

impl Clone for LiveEvent

source§

fn clone(&self) -> LiveEvent

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for LiveEvent

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<'de> Deserialize<'de> for LiveEvent

source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl Display for LiveEvent

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl PartialEq for LiveEvent

source§

fn eq(&self, other: &LiveEvent) -> bool

This method tests for self and other values to be equal, and is used diff --git a/pr/2628/docs/iroh_docs/engine/fn.entry_to_content_status.html b/pr/2628/docs/iroh_docs/engine/fn.entry_to_content_status.html index 3b39df6428..459a6719d2 100644 --- a/pr/2628/docs/iroh_docs/engine/fn.entry_to_content_status.html +++ b/pr/2628/docs/iroh_docs/engine/fn.entry_to_content_status.html @@ -1,2 +1,2 @@ -entry_to_content_status in iroh_docs::engine - Rust

Function iroh_docs::engine::entry_to_content_status

source ·
pub fn entry_to_content_status(entry: Result<EntryStatus>) -> ContentStatus
Expand description

Converts an EntryStatus into a [‘ContentStatus’].

+entry_to_content_status in iroh_docs::engine - Rust

Function iroh_docs::engine::entry_to_content_status

source ·
pub fn entry_to_content_status(entry: Result<EntryStatus>) -> ContentStatus
Expand description

Converts an [EntryStatus] into a [‘ContentStatus’].

\ No newline at end of file diff --git a/pr/2628/docs/iroh_docs/engine/index.html b/pr/2628/docs/iroh_docs/engine/index.html index 622ab4b871..5f78e23386 100644 --- a/pr/2628/docs/iroh_docs/engine/index.html +++ b/pr/2628/docs/iroh_docs/engine/index.html @@ -1,4 +1,4 @@ iroh_docs::engine - Rust

Module iroh_docs::engine

source ·
Expand description

Handlers and actors to for live syncing replicas.

crate::Replica is also called documents here.

Structs§

  • Persistent default author for a docs engine.
  • The sync engine coordinates actors that manage open documents, set-reconciliation syncs with -peers and a gossip swarm for each syncing document.
  • Event emitted when a sync operation completes

Enums§

Functions§

\ No newline at end of file +peers and a gossip swarm for each syncing document.
  • Event emitted when a sync operation completes
  • Enums§

    Functions§

    \ No newline at end of file diff --git a/pr/2628/docs/iroh_docs/engine/struct.Engine.html b/pr/2628/docs/iroh_docs/engine/struct.Engine.html index 46cd25179e..1b88a96726 100644 --- a/pr/2628/docs/iroh_docs/engine/struct.Engine.html +++ b/pr/2628/docs/iroh_docs/engine/struct.Engine.html @@ -8,12 +8,12 @@ peers and a gossip swarm for each syncing document.

    Fields§

    §endpoint: Endpoint

    Endpoint used by the engine.

    §sync: SyncHandle

    Handle to the actor thread.

    §default_author: Arc<DefaultAuthor>

    The persistent default author for this engine.

    -

    Implementations§

    source§

    impl Engine

    source

    pub async fn spawn<B: Store>( +

    Implementations§

    source§

    impl Engine

    source

    pub async fn spawn<B: Store>( endpoint: Endpoint, - gossip: Gossip, + gossip: Gossip, replica_store: Store, bao_store: B, - downloader: Downloader, + downloader: Downloader, default_author_storage: DefaultAuthorStorage ) -> Result<Self>

    Start the sync engine.

    This will spawn two tokio tasks for the live sync coordination and gossip actors, and a @@ -21,7 +21,7 @@ thread for the

    source

    pub async fn start_sync( &self, namespace: NamespaceId, - peers: Vec<NodeAddr> + peers: Vec<NodeAddr> ) -> Result<()>

    Start to sync a document.

    If peers is non-empty, it will both do an initial set-reconciliation sync with each peer, and join an iroh-gossip swarm with these peers to receive and broadcast document updates.

    diff --git a/pr/2628/docs/iroh_docs/engine/struct.SyncEvent.html b/pr/2628/docs/iroh_docs/engine/struct.SyncEvent.html index cce39940b5..5b713133bd 100644 --- a/pr/2628/docs/iroh_docs/engine/struct.SyncEvent.html +++ b/pr/2628/docs/iroh_docs/engine/struct.SyncEvent.html @@ -1,11 +1,11 @@ SyncEvent in iroh_docs::engine - Rust

    Struct iroh_docs::engine::SyncEvent

    source ·
    pub struct SyncEvent {
    -    pub peer: PublicKey,
    +    pub peer: PublicKey,
         pub origin: Origin,
         pub finished: SystemTime,
         pub started: SystemTime,
         pub result: Result<SyncDetails, String>,
     }
    Expand description

    Event emitted when a sync operation completes

    -

    Fields§

    §peer: PublicKey

    Peer we synced with

    +

    Fields§

    §peer: PublicKey

    Peer we synced with

    §origin: Origin

    Origin of the sync exchange

    §finished: SystemTime

    Timestamp when the sync started

    §started: SystemTime

    Timestamp when the sync finished

    diff --git a/pr/2628/docs/iroh_docs/index.html b/pr/2628/docs/iroh_docs/index.html index 41c792c5e5..a37d30e2a6 100644 --- a/pr/2628/docs/iroh_docs/index.html +++ b/pr/2628/docs/iroh_docs/index.html @@ -1,7 +1,7 @@ iroh_docs - Rust

    Crate iroh_docs

    source ·
    Expand description

    Multi-dimensional key-value documents with an efficient synchronization protocol

    The crate operates on Replicas. A replica contains an unlimited number of Entries. Each entry is identified by a key, its author, and the replica’s -namespace. Its value is the 32-byte BLAKE3 hash +namespace. Its value is the 32-byte BLAKE3 hash of the entry’s content data, the size of this content data, and a timestamp. The content data itself is not stored or transferred through a replica.

    All entries in a replica are signed with two keypairs:

    diff --git a/pr/2628/docs/iroh_docs/net/enum.AcceptError.html b/pr/2628/docs/iroh_docs/net/enum.AcceptError.html index 36f6ee01ef..f852287d7b 100644 --- a/pr/2628/docs/iroh_docs/net/enum.AcceptError.html +++ b/pr/2628/docs/iroh_docs/net/enum.AcceptError.html @@ -3,31 +3,31 @@ error: Error, }, Open { - peer: PublicKey, + peer: PublicKey, error: Error, }, Abort { - peer: PublicKey, + peer: PublicKey, namespace: NamespaceId, reason: AbortReason, }, Sync { - peer: PublicKey, + peer: PublicKey, namespace: Option<NamespaceId>, error: Error, }, Close { - peer: PublicKey, + peer: PublicKey, namespace: Option<NamespaceId>, error: Error, }, }
    Expand description

    Errors that may occur on handling incoming sync connections.

    Variants§

    §

    Connect

    Failed to establish connection

    Fields

    §error: Error
    §

    Open

    Failed to open replica

    -

    Fields

    §error: Error
    §

    Abort

    We aborted the sync request.

    -

    Fields

    §namespace: NamespaceId
    §

    Sync

    Failed to run sync

    -

    Fields

    §namespace: Option<NamespaceId>
    §error: Error
    §

    Close

    Failed to close

    -

    Fields

    §namespace: Option<NamespaceId>
    §error: Error

    Implementations§

    source§

    impl AcceptError

    source

    pub fn peer(&self) -> Option<PublicKey>

    Get the peer’s node ID (if available)

    +

    Fields

    §peer: PublicKey
    §error: Error
    §

    Abort

    We aborted the sync request.

    +

    Fields

    §peer: PublicKey
    §namespace: NamespaceId
    §

    Sync

    Failed to run sync

    +

    Fields

    §peer: PublicKey
    §namespace: Option<NamespaceId>
    §error: Error
    §

    Close

    Failed to close

    +

    Fields

    §peer: PublicKey
    §namespace: Option<NamespaceId>
    §error: Error

    Implementations§

    source§

    impl AcceptError

    source

    pub fn peer(&self) -> Option<PublicKey>

    Get the peer’s node ID (if available)

    source

    pub fn namespace(&self) -> Option<NamespaceId>

    Get the namespace (if available)

    Trait Implementations§

    source§

    impl Debug for AcceptError

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    source§

    impl Display for AcceptError

    source§

    fn fmt(&self, __formatter: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    source§

    impl Error for AcceptError

    source§

    fn source(&self) -> Option<&(dyn Error + 'static)>

    The lower-level source of this error, if any. Read more
    1.0.0 · source§

    fn description(&self) -> &str

    👎Deprecated since 1.42.0: use the Display impl or to_string()
    1.0.0 · source§

    fn cause(&self) -> Option<&dyn Error>

    👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
    source§

    fn provide<'a>(&'a self, request: &mut Request<'a>)

    🔬This is a nightly-only experimental API. (error_generic_member_access)
    Provides type based access to context intended for error reports. Read more

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for T
    where T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    §

    impl<'a, T, E> AsTaggedExplicit<'a, E> for T
    where diff --git a/pr/2628/docs/iroh_docs/net/fn.connect_and_sync.html b/pr/2628/docs/iroh_docs/net/fn.connect_and_sync.html index 055cbf1e3c..e4ee4a1d00 100644 --- a/pr/2628/docs/iroh_docs/net/fn.connect_and_sync.html +++ b/pr/2628/docs/iroh_docs/net/fn.connect_and_sync.html @@ -2,6 +2,6 @@ endpoint: &Endpoint, sync: &SyncHandle, namespace: NamespaceId, - peer: NodeAddr + peer: NodeAddr ) -> Result<SyncFinished, ConnectError>
    Expand description

    Connect to a peer and sync a replica

    \ No newline at end of file diff --git a/pr/2628/docs/iroh_docs/net/fn.handle_connection.html b/pr/2628/docs/iroh_docs/net/fn.handle_connection.html index 3dc400f949..c7e5390970 100644 --- a/pr/2628/docs/iroh_docs/net/fn.handle_connection.html +++ b/pr/2628/docs/iroh_docs/net/fn.handle_connection.html @@ -3,6 +3,6 @@ connecting: Connecting, accept_cb: F ) -> Result<SyncFinished, AcceptError>
    where - F: Fn(NamespaceId, PublicKey) -> Fut, + F: Fn(NamespaceId, PublicKey) -> Fut, Fut: Future<Output = AcceptOutcome>,
    Expand description

    Handle an iroh-docs connection and sync all shared documents in the replica store.

    \ No newline at end of file diff --git a/pr/2628/docs/iroh_docs/net/struct.SyncFinished.html b/pr/2628/docs/iroh_docs/net/struct.SyncFinished.html index 761d1cdb9f..94c5865cd7 100644 --- a/pr/2628/docs/iroh_docs/net/struct.SyncFinished.html +++ b/pr/2628/docs/iroh_docs/net/struct.SyncFinished.html @@ -1,11 +1,11 @@ SyncFinished in iroh_docs::net - Rust

    Struct iroh_docs::net::SyncFinished

    source ·
    pub struct SyncFinished {
         pub namespace: NamespaceId,
    -    pub peer: PublicKey,
    +    pub peer: PublicKey,
         pub outcome: SyncOutcome,
         pub timings: Timings,
     }
    Expand description

    Details of a finished sync operation.

    Fields§

    §namespace: NamespaceId

    The namespace that was synced.

    -
    §peer: PublicKey

    The peer we syned with.

    +
    §peer: PublicKey

    The peer we syned with.

    §outcome: SyncOutcome

    The outcome of the sync operation

    §timings: Timings

    The time this operation took

    Trait Implementations§

    source§

    impl Clone for SyncFinished

    source§

    fn clone(&self) -> SyncFinished

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    source§

    impl Debug for SyncFinished

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for T
    where diff --git a/pr/2628/docs/iroh_docs/store/fs/struct.ContentHashesIterator.html b/pr/2628/docs/iroh_docs/store/fs/struct.ContentHashesIterator.html index df1fc8865f..8bebf68ec6 100644 --- a/pr/2628/docs/iroh_docs/store/fs/struct.ContentHashesIterator.html +++ b/pr/2628/docs/iroh_docs/store/fs/struct.ContentHashesIterator.html @@ -6,7 +6,7 @@ It needs a copy of a redb::ReadOnlyTable to be self-contained.

    Implementations§

    source§

    impl ContentHashesIterator

    source

    pub fn all( table: &ReadOnlyTable<(&'static [u8; 32], &'static [u8; 32], &'static [u8]), (u64, &'static [u8; 64], &'static [u8; 64], u64, &'static [u8; 32])> ) -> Result<Self>

    Create a new iterator over all content hashes.

    -

    Trait Implementations§

    source§

    impl Debug for ContentHashesIterator

    source§

    fn fmt(&self, __derive_more_f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    source§

    impl Iterator for ContentHashesIterator

    §

    type Item = Result<Hash, Error>

    The type of the elements being iterated over.
    source§

    fn next(&mut self) -> Option<Self::Item>

    Advances the iterator and returns the next value. Read more
    source§

    fn next_chunk<const N: usize>( +

    Trait Implementations§

    source§

    impl Debug for ContentHashesIterator

    source§

    fn fmt(&self, __derive_more_f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    source§

    impl Iterator for ContentHashesIterator

    §

    type Item = Result<Hash, Error>

    The type of the elements being iterated over.
    source§

    fn next(&mut self) -> Option<Self::Item>

    Advances the iterator and returns the next value. Read more
    source§

    fn next_chunk<const N: usize>( &mut self ) -> Result<[Self::Item; N], IntoIter<Self::Item, N>>
    where Self: Sized,

    🔬This is a nightly-only experimental API. (iter_next_chunk)
    Advances the iterator and returns an array containing the next N values. Read more
    1.0.0 · source§

    fn size_hint(&self) -> (usize, Option<usize>)

    Returns the bounds on the remaining length of the iterator. Read more
    1.0.0 · source§

    fn count(self) -> usize
    where diff --git a/pr/2628/docs/iroh_docs/struct.AuthorId.html b/pr/2628/docs/iroh_docs/struct.AuthorId.html index 245fc7ad94..e56710edce 100644 --- a/pr/2628/docs/iroh_docs/struct.AuthorId.html +++ b/pr/2628/docs/iroh_docs/struct.AuthorId.html @@ -156,6 +156,6 @@ letters are used (e.g. F9B4CA)

    Into<Dispatch>,
    Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
    source§

    fn with_current_subscriber(self) -> WithDispatch<Self>

    Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
    source§

    impl<T> DeserializeOwned for T
    where - T: for<'de> Deserialize<'de>,

    source§

    impl<T> PeerIdentity for T
    where + T: for<'de> Deserialize<'de>,

    §

    impl<T> PeerIdentity for T

    source§

    impl<T> RuleType for T
    where T: Copy + Debug + Eq + Hash + Ord,

    \ No newline at end of file diff --git a/pr/2628/docs/iroh_docs/struct.AuthorPublicKey.html b/pr/2628/docs/iroh_docs/struct.AuthorPublicKey.html index b223595c68..e8b4d67740 100644 --- a/pr/2628/docs/iroh_docs/struct.AuthorPublicKey.html +++ b/pr/2628/docs/iroh_docs/struct.AuthorPublicKey.html @@ -148,6 +148,6 @@ builds.
    Into<Dispatch>,
    Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
    source§

    fn with_current_subscriber(self) -> WithDispatch<Self>

    Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
    source§

    impl<T> DeserializeOwned for T
    where - T: for<'de> Deserialize<'de>,

    source§

    impl<T> PeerIdentity for T
    where + T: for<'de> Deserialize<'de>,

    §

    impl<T> PeerIdentity for T

    source§

    impl<T> RuleType for T
    where T: Copy + Debug + Eq + Hash + Ord,

    \ No newline at end of file diff --git a/pr/2628/docs/iroh_docs/struct.DocTicket.html b/pr/2628/docs/iroh_docs/struct.DocTicket.html index 040ff65413..5b82e626cd 100644 --- a/pr/2628/docs/iroh_docs/struct.DocTicket.html +++ b/pr/2628/docs/iroh_docs/struct.DocTicket.html @@ -1,13 +1,13 @@ DocTicket in iroh_docs - Rust

    Struct iroh_docs::DocTicket

    source ·
    pub struct DocTicket {
         pub capability: Capability,
    -    pub nodes: Vec<NodeAddr>,
    +    pub nodes: Vec<NodeAddr>,
     }
    Expand description

    Contains both a key (either secret or public) to a document, and a list of peers to join.

    Fields§

    §capability: Capability

    either a public or private key

    -
    §nodes: Vec<NodeAddr>

    A list of nodes to contact.

    -

    Implementations§

    source§

    impl DocTicket

    source

    pub fn new(capability: Capability, peers: Vec<NodeAddr>) -> Self

    Create a new doc ticket

    +
    §nodes: Vec<NodeAddr>

    A list of nodes to contact.

    +

    Implementations§

    source§

    impl DocTicket

    source

    pub fn new(capability: Capability, peers: Vec<NodeAddr>) -> Self

    Create a new doc ticket

    Trait Implementations§

    source§

    impl Clone for DocTicket

    source§

    fn clone(&self) -> DocTicket

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    source§

    impl Debug for DocTicket

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    source§

    impl<'de> Deserialize<'de> for DocTicket

    source§

    fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
    where - __D: Deserializer<'de>,

    Deserialize this value from the given Serde deserializer. Read more
    source§

    impl Display for DocTicket

    source§

    fn fmt(&self, __derive_more_f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    source§

    impl FromStr for DocTicket

    §

    type Err = Error

    The associated error which can be returned from parsing.
    source§

    fn from_str(s: &str) -> Result<Self, Self::Err>

    Parses a string s to return a value of this type. Read more
    source§

    impl Serialize for DocTicket

    source§

    fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
    where - __S: Serializer,

    Serialize this value into the given Serde serializer. Read more
    source§

    impl Ticket for DocTicket

    source§

    const KIND: &'static str = "doc"

    String prefix describing the kind of iroh ticket. Read more
    source§

    fn to_bytes(&self) -> Vec<u8> ⓘ

    Serialize to bytes used in the base32 string representation.
    source§

    fn from_bytes(bytes: &[u8]) -> Result<Self, Error>

    Deserialize from the base32 string representation bytes.
    source§

    fn serialize(&self) -> String

    Serialize to string.
    source§

    fn deserialize(str: &str) -> Result<Self, Error>

    Deserialize from a string.

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for T
    where + __D: Deserializer<'de>,

    Deserialize this value from the given Serde deserializer. Read more
    source§

    impl Display for DocTicket

    source§

    fn fmt(&self, __derive_more_f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    source§

    impl FromStr for DocTicket

    §

    type Err = Error

    The associated error which can be returned from parsing.
    source§

    fn from_str(s: &str) -> Result<Self, Self::Err>

    Parses a string s to return a value of this type. Read more
    source§

    impl Serialize for DocTicket

    source§

    fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
    where + __S: Serializer,

    Serialize this value into the given Serde serializer. Read more
    source§

    impl Ticket for DocTicket

    source§

    const KIND: &'static str = "doc"

    String prefix describing the kind of iroh ticket. Read more
    source§

    fn to_bytes(&self) -> Vec<u8> ⓘ

    Serialize to bytes used in the base32 string representation.
    source§

    fn from_bytes(bytes: &[u8]) -> Result<Self, Error>

    Deserialize from the base32 string representation bytes.
    §

    fn serialize(&self) -> String

    Serialize to string.
    §

    fn deserialize(str: &str) -> Result<Self, Error>

    Deserialize from a string.

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for T
    where T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    §

    impl<'a, T, E> AsTaggedExplicit<'a, E> for T
    where T: 'a,

    §

    fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

    §

    impl<'a, T, E> AsTaggedExplicit<'a, E> for T
    where T: 'a,

    §

    fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

    §

    impl<'a, T, E> AsTaggedImplicit<'a, E> for T
    where diff --git a/pr/2628/docs/iroh_docs/struct.NamespaceId.html b/pr/2628/docs/iroh_docs/struct.NamespaceId.html index 7effb4fbb6..45286f5490 100644 --- a/pr/2628/docs/iroh_docs/struct.NamespaceId.html +++ b/pr/2628/docs/iroh_docs/struct.NamespaceId.html @@ -156,6 +156,6 @@ letters are used (e.g. F9B4CA)

    Into<Dispatch>,
    Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
    source§

    fn with_current_subscriber(self) -> WithDispatch<Self>

    Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
    source§

    impl<T> DeserializeOwned for T
    where - T: for<'de> Deserialize<'de>,

    source§

    impl<T> PeerIdentity for T
    where + T: for<'de> Deserialize<'de>,

    §

    impl<T> PeerIdentity for T

    source§

    impl<T> RuleType for T
    where T: Copy + Debug + Eq + Hash + Ord,

    \ No newline at end of file diff --git a/pr/2628/docs/iroh_docs/struct.NamespacePublicKey.html b/pr/2628/docs/iroh_docs/struct.NamespacePublicKey.html index 4194932ec3..2a740e0390 100644 --- a/pr/2628/docs/iroh_docs/struct.NamespacePublicKey.html +++ b/pr/2628/docs/iroh_docs/struct.NamespacePublicKey.html @@ -147,6 +147,6 @@ builds.
    Into<Dispatch>,
    Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
    source§

    fn with_current_subscriber(self) -> WithDispatch<Self>

    Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
    source§

    impl<T> DeserializeOwned for T
    where - T: for<'de> Deserialize<'de>,

    source§

    impl<T> PeerIdentity for T
    where + T: for<'de> Deserialize<'de>,

    §

    impl<T> PeerIdentity for T

    source§

    impl<T> RuleType for T
    where T: Copy + Debug + Eq + Hash + Ord,

    \ No newline at end of file diff --git a/pr/2628/docs/iroh_docs/sync/struct.Entry.html b/pr/2628/docs/iroh_docs/sync/struct.Entry.html index d1fb1faa87..06a256d8a3 100644 --- a/pr/2628/docs/iroh_docs/sync/struct.Entry.html +++ b/pr/2628/docs/iroh_docs/sync/struct.Entry.html @@ -1,6 +1,6 @@ Entry in iroh_docs::sync - Rust

    Struct iroh_docs::sync::Entry

    source ·
    pub struct Entry { /* private fields */ }
    Expand description

    A single entry in a Replica

    An entry is identified by a key, its Author, and the Replica’s -NamespaceSecret. Its value is the 32-byte BLAKE3 hash +NamespaceSecret. Its value is the 32-byte BLAKE3 hash of the entry’s content data, the size of this content data, and a timestamp.

    Implementations§

    source§

    impl Entry

    source

    pub fn new(id: RecordIdentifier, record: Record) -> Self

    Create a new entry

    source

    pub fn new_empty(id: RecordIdentifier) -> Self

    Create a new empty entry with the current timestamp.

    @@ -15,7 +15,7 @@ of the entry’s content data, the size of this content data, and a timestamp.
    source

    pub fn sign(self, namespace: &NamespaceSecret, author: &Author) -> SignedEntry

    Sign this entry with a NamespaceSecret and Author.

    Methods from Deref<Target = Record>§

    source

    pub fn is_empty(&self) -> bool

    Return true if the entry is empty.

    source

    pub fn content_len(&self) -> u64

    Get the length of the data addressed by this record’s content hash.

    -
    source

    pub fn content_hash(&self) -> Hash

    Get the Hash of the content data of this record.

    +
    source

    pub fn content_hash(&self) -> Hash

    Get the [struct@Hash] of the content data of this record.

    source

    pub fn timestamp(&self) -> u64

    Get the timestamp of this record.

    Trait Implementations§

    source§

    impl Clone for Entry

    source§

    fn clone(&self) -> Entry

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    source§

    impl Debug for Entry

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    source§

    impl Deref for Entry

    §

    type Target = Record

    The resulting type after dereferencing.
    source§

    fn deref(&self) -> &Self::Target

    Dereferences the value.
    source§

    impl<'de> Deserialize<'de> for Entry

    source§

    fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
    where __D: Deserializer<'de>,

    Deserialize this value from the given Serde deserializer. Read more
    source§

    impl From<SignedEntry> for Entry

    source§

    fn from(value: SignedEntry) -> Self

    Converts to this type from the input type.
    source§

    impl Ord for Entry

    source§

    fn cmp(&self, other: &Self) -> Ordering

    This method returns an Ordering between self and other. Read more
    1.21.0 · source§

    fn max(self, other: Self) -> Self
    where diff --git a/pr/2628/docs/iroh_docs/sync/struct.Record.html b/pr/2628/docs/iroh_docs/sync/struct.Record.html index 9848e9b7d7..64887e1d89 100644 --- a/pr/2628/docs/iroh_docs/sync/struct.Record.html +++ b/pr/2628/docs/iroh_docs/sync/struct.Record.html @@ -1,11 +1,11 @@ Record in iroh_docs::sync - Rust

    Struct iroh_docs::sync::Record

    source ·
    pub struct Record { /* private fields */ }
    Expand description

    The data part of an entry in a Replica.

    -

    Implementations§

    source§

    impl Record

    source

    pub fn new(hash: Hash, len: u64, timestamp: u64) -> Self

    Create a new record.

    +

    Implementations§

    source§

    impl Record

    source

    pub fn new(hash: Hash, len: u64, timestamp: u64) -> Self

    Create a new record.

    source

    pub fn empty(timestamp: u64) -> Self

    Create a tombstone record (empty content)

    source

    pub fn empty_current() -> Self

    Create a tombstone record with the timestamp set to now.

    source

    pub fn is_empty(&self) -> bool

    Return true if the entry is empty.

    -
    source

    pub fn new_current(hash: Hash, len: u64) -> Self

    Create a new Record with the timestamp set to now.

    +
    source

    pub fn new_current(hash: Hash, len: u64) -> Self

    Create a new Record with the timestamp set to now.

    source

    pub fn content_len(&self) -> u64

    Get the length of the data addressed by this record’s content hash.

    -
    source

    pub fn content_hash(&self) -> Hash

    Get the Hash of the content data of this record.

    +
    source

    pub fn content_hash(&self) -> Hash

    Get the [struct@Hash] of the content data of this record.

    source

    pub fn timestamp(&self) -> u64

    Get the timestamp of this record.

    Trait Implementations§

    source§

    impl Clone for Record

    source§

    fn clone(&self) -> Record

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    source§

    impl Debug for Record

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    source§

    impl<'de> Deserialize<'de> for Record

    source§

    fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
    where __D: Deserializer<'de>,

    Deserialize this value from the given Serde deserializer. Read more
    source§

    impl Ord for Record

    Ordering for entry values.

    diff --git a/pr/2628/docs/iroh_docs/sync/struct.Replica.html b/pr/2628/docs/iroh_docs/sync/struct.Replica.html index c4e161f3c3..23a9798651 100644 --- a/pr/2628/docs/iroh_docs/sync/struct.Replica.html +++ b/pr/2628/docs/iroh_docs/sync/struct.Replica.html @@ -5,7 +5,7 @@ &mut self, key: impl AsRef<[u8]>, author: &Author, - hash: Hash, + hash: Hash, len: u64 ) -> Result<usize, InsertError>

    Insert a new record at the given key.

    The entry will by signed by the provided author. @@ -35,7 +35,7 @@ or an error if the entry failed to validate or if a store operation failed.

    key: impl AsRef<[u8]>, author: &Author, data: impl AsRef<[u8]> -) -> Result<Hash, InsertError>

    Hashes the given data and inserts it.

    +) -> Result<Hash, InsertError>

    Hashes the given data and inserts it.

    This does not store the content, just the record of it. Returns the calculated hash.

    source

    pub fn record_id( diff --git a/pr/2628/docs/iroh_docs/sync/struct.SignedEntry.html b/pr/2628/docs/iroh_docs/sync/struct.SignedEntry.html index d588c9a0fd..b03a4db008 100644 --- a/pr/2628/docs/iroh_docs/sync/struct.SignedEntry.html +++ b/pr/2628/docs/iroh_docs/sync/struct.SignedEntry.html @@ -14,7 +14,7 @@

    source

    pub fn signature(&self) -> &EntrySignature

    Get the signature.

    source

    pub fn validate_empty(&self) -> Result<(), ValidationFailure>

    Validate that the entry has the empty hash if the length is 0, or a non-zero length.

    source

    pub fn entry(&self) -> &Entry

    Get the Entry.

    -
    source

    pub fn content_hash(&self) -> Hash

    Get the content Hash of the entry.

    +
    source

    pub fn content_hash(&self) -> Hash

    Get the content [struct@Hash] of the entry.

    source

    pub fn content_len(&self) -> u64

    Get the content length of the entry.

    source

    pub fn author_bytes(&self) -> AuthorId

    Get the author bytes of this entry.

    source

    pub fn key(&self) -> &[u8] ⓘ

    Get the key of the entry.

    @@ -29,7 +29,7 @@
    source

    pub fn to_vec(&self) -> Vec<u8> ⓘ

    Serialize this entry into a new vector with its canonical byte representation.

    Methods from Deref<Target = Record>§

    source

    pub fn is_empty(&self) -> bool

    Return true if the entry is empty.

    source

    pub fn content_len(&self) -> u64

    Get the length of the data addressed by this record’s content hash.

    -
    source

    pub fn content_hash(&self) -> Hash

    Get the Hash of the content data of this record.

    +
    source

    pub fn content_hash(&self) -> Hash

    Get the [struct@Hash] of the content data of this record.

    source

    pub fn timestamp(&self) -> u64

    Get the timestamp of this record.

    Trait Implementations§

    source§

    impl Clone for SignedEntry

    source§

    fn clone(&self) -> SignedEntry

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    source§

    impl Debug for SignedEntry

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    source§

    impl Deref for SignedEntry

    §

    type Target = Entry

    The resulting type after dereferencing.
    source§

    fn deref(&self) -> &Self::Target

    Dereferences the value.
    source§

    impl<'de> Deserialize<'de> for SignedEntry

    source§

    fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
    where __D: Deserializer<'de>,

    Deserialize this value from the given Serde deserializer. Read more
    source§

    impl From<SignedEntry> for Entry

    source§

    fn from(value: SignedEntry) -> Self

    Converts to this type from the input type.
    source§

    impl Ord for SignedEntry

    source§

    fn cmp(&self, other: &Self) -> Ordering

    This method returns an Ordering between self and other. Read more
    1.21.0 · source§

    fn max(self, other: Self) -> Self
    where diff --git a/pr/2628/docs/iroh_docs/sync/type.ContentStatusCallback.html b/pr/2628/docs/iroh_docs/sync/type.ContentStatusCallback.html index 84ffdbe8ee..46d5a5a49c 100644 --- a/pr/2628/docs/iroh_docs/sync/type.ContentStatusCallback.html +++ b/pr/2628/docs/iroh_docs/sync/type.ContentStatusCallback.html @@ -1,2 +1,2 @@ -ContentStatusCallback in iroh_docs::sync - Rust

    Type Alias iroh_docs::sync::ContentStatusCallback

    source ·
    pub type ContentStatusCallback = Arc<dyn Fn(Hash) -> ContentStatus + Send + Sync + 'static>;
    Expand description

    Callback that may be set on a replica to determine the availability status for a content hash.

    +ContentStatusCallback in iroh_docs::sync - Rust

    Type Alias iroh_docs::sync::ContentStatusCallback

    source ·
    pub type ContentStatusCallback = Arc<dyn Fn(Hash) -> ContentStatus + Send + Sync + 'static>;
    Expand description

    Callback that may be set on a replica to determine the availability status for a content hash.

    Aliased Type§

    struct ContentStatusCallback { /* private fields */ }
    \ No newline at end of file diff --git a/pr/2628/docs/iroh_gossip/net/enum.Command.html b/pr/2628/docs/iroh_gossip/net/enum.Command.html index 6c35c606e2..600c610824 100644 --- a/pr/2628/docs/iroh_gossip/net/enum.Command.html +++ b/pr/2628/docs/iroh_gossip/net/enum.Command.html @@ -1,11 +1,11 @@ Command in iroh_gossip::net - Rust

    Enum iroh_gossip::net::Command

    source ·
    pub enum Command {
         Broadcast(Bytes),
         BroadcastNeighbors(Bytes),
    -    JoinPeers(Vec<NodeId>),
    +    JoinPeers(Vec<NodeId>),
     }
    Expand description

    Send a gossip message

    Variants§

    §

    Broadcast(Bytes)

    Broadcast a message to all nodes in the swarm

    §

    BroadcastNeighbors(Bytes)

    Broadcast a message to all direct neighbors

    -
    §

    JoinPeers(Vec<NodeId>)

    Connect to a set of peers

    +
    §

    JoinPeers(Vec<NodeId>)

    Connect to a set of peers

    Trait Implementations§

    source§

    impl Debug for Command

    source§

    fn fmt(&self, __derive_more_f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    source§

    impl<'de> Deserialize<'de> for Command

    source§

    fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
    where __D: Deserializer<'de>,

    Deserialize this value from the given Serde deserializer. Read more
    source§

    impl Serialize for Command

    source§

    fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
    where __S: Serializer,

    Serialize this value into the given Serde serializer. Read more

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for T
    where diff --git a/pr/2628/docs/iroh_gossip/net/enum.GossipEvent.html b/pr/2628/docs/iroh_gossip/net/enum.GossipEvent.html index b8690ded0e..c63d0f1288 100644 --- a/pr/2628/docs/iroh_gossip/net/enum.GossipEvent.html +++ b/pr/2628/docs/iroh_gossip/net/enum.GossipEvent.html @@ -1,17 +1,17 @@ GossipEvent in iroh_gossip::net - Rust

    Enum iroh_gossip::net::GossipEvent

    source ·
    pub enum GossipEvent {
    -    Joined(Vec<NodeId>),
    -    NeighborUp(NodeId),
    -    NeighborDown(NodeId),
    +    Joined(Vec<NodeId>),
    +    NeighborUp(NodeId),
    +    NeighborDown(NodeId),
         Received(Message),
     }
    Expand description

    Events emitted from a gossip topic.

    These are the events emitted from a GossipReceiver, wrapped in Event::Gossip.

    -

    Variants§

    §

    Joined(Vec<NodeId>)

    We joined the topic with at least one peer.

    +

    Variants§

    §

    Joined(Vec<NodeId>)

    We joined the topic with at least one peer.

    This is the first event on a GossipReceiver and will only be emitted once.

    -
    §

    NeighborUp(NodeId)

    We have a new, direct neighbor in the swarm membership layer for this topic.

    -
    §

    NeighborDown(NodeId)

    We dropped direct neighbor in the swarm membership layer for this topic.

    +
    §

    NeighborUp(NodeId)

    We have a new, direct neighbor in the swarm membership layer for this topic.

    +
    §

    NeighborDown(NodeId)

    We dropped direct neighbor in the swarm membership layer for this topic.

    §

    Received(Message)

    We received a gossip message for this topic.

    Trait Implementations§

    source§

    impl Clone for GossipEvent

    source§

    fn clone(&self) -> GossipEvent

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    source§

    impl Debug for GossipEvent

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    source§

    impl<'de> Deserialize<'de> for GossipEvent

    source§

    fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
    where - __D: Deserializer<'de>,

    Deserialize this value from the given Serde deserializer. Read more
    source§

    impl From<Event<PublicKey>> for GossipEvent

    source§

    fn from(event: Event<NodeId>) -> Self

    Converts to this type from the input type.
    source§

    impl Ord for GossipEvent

    source§

    fn cmp(&self, other: &GossipEvent) -> Ordering

    This method returns an Ordering between self and other. Read more
    1.21.0 · source§

    fn max(self, other: Self) -> Self
    where + __D: Deserializer<'de>,

    Deserialize this value from the given Serde deserializer. Read more
    source§

    impl From<Event<PublicKey>> for GossipEvent

    source§

    fn from(event: Event<NodeId>) -> Self

    Converts to this type from the input type.
    source§

    impl Ord for GossipEvent

    source§

    fn cmp(&self, other: &GossipEvent) -> Ordering

    This method returns an Ordering between self and other. Read more
    1.21.0 · source§

    fn max(self, other: Self) -> Self
    where Self: Sized,

    Compares and returns the maximum of two values. Read more
    1.21.0 · source§

    fn min(self, other: Self) -> Self
    where Self: Sized,

    Compares and returns the minimum of two values. Read more
    1.50.0 · source§

    fn clamp(self, min: Self, max: Self) -> Self
    where Self: Sized + PartialOrd,

    Restrict a value to a certain interval. Read more
    source§

    impl PartialEq for GossipEvent

    source§

    fn eq(&self, other: &GossipEvent) -> bool

    This method tests for self and other values to be equal, and is used diff --git a/pr/2628/docs/iroh_gossip/net/struct.Gossip.html b/pr/2628/docs/iroh_gossip/net/struct.Gossip.html index 9e5a2918cc..04fd185aac 100644 --- a/pr/2628/docs/iroh_gossip/net/struct.Gossip.html +++ b/pr/2628/docs/iroh_gossip/net/struct.Gossip.html @@ -1,7 +1,7 @@ Gossip in iroh_gossip::net - Rust

    Struct iroh_gossip::net::Gossip

    source ·
    pub struct Gossip { /* private fields */ }
    Expand description

    Publish and subscribe on gossiping topics.

    Each topic is a separate broadcast tree with separate memberships.

    A topic has to be joined before you can publish or subscribe on the topic. -To join the swarm for a topic, you have to know the [PublicKey] of at least one peer that also joined the topic.

    +To join the swarm for a topic, you have to know the PublicKey of at least one peer that also joined the topic.

    Messages published on the swarm will be delivered to all peers that joined the swarm for that topic. You will also be relaying (gossiping) messages published by other peers.

    With the default settings, the protocol will maintain up to 5 peer connections per topic.

    @@ -13,7 +13,7 @@ gossip actor through

    Implementations§

    source§

    impl Gossip

    source

    pub fn from_endpoint( endpoint: Endpoint, config: Config, - my_addr: &AddrInfo + my_addr: &AddrInfo ) -> Self

    Spawn a gossip actor and get a handle for it

    source

    pub fn max_message_size(&self) -> usize

    Get the maximum message size configured for this gossip actor.

    source

    pub async fn handle_connection(&self, conn: Connection) -> Result<()>

    Handle an incoming [Connection].

    @@ -21,7 +21,7 @@ gossip actor through
    source

    pub async fn join( &self, topic_id: TopicId, - bootstrap: Vec<NodeId> + bootstrap: Vec<NodeId> ) -> Result<GossipTopic>

    Join a gossip topic with the default options and wait for at least one active connection.

    source

    pub fn join_with_opts( &self, diff --git a/pr/2628/docs/iroh_gossip/net/struct.GossipReceiver.html b/pr/2628/docs/iroh_gossip/net/struct.GossipReceiver.html index a7ae3ec70d..994780840d 100644 --- a/pr/2628/docs/iroh_gossip/net/struct.GossipReceiver.html +++ b/pr/2628/docs/iroh_gossip/net/struct.GossipReceiver.html @@ -1,6 +1,6 @@ GossipReceiver in iroh_gossip::net - Rust

    Struct iroh_gossip::net::GossipReceiver

    source ·
    pub struct GossipReceiver { /* private fields */ }
    Expand description

    Receiver for gossip events on a topic.

    This is a [Stream] of Events emitted from the topic.

    -

    Implementations§

    source§

    impl GossipReceiver

    source

    pub fn neighbors(&self) -> impl Iterator<Item = NodeId> + '_

    Lists our current direct neighbors.

    +

    Implementations§

    source§

    impl GossipReceiver

    source

    pub fn neighbors(&self) -> impl Iterator<Item = NodeId> + '_

    Lists our current direct neighbors.

    source

    pub async fn joined(&mut self) -> Result<()>

    Waits until we are connected to at least one node.

    This progresses the stream until we received GossipEvent::Joined, which is the first item emitted on the stream.

    diff --git a/pr/2628/docs/iroh_gossip/net/struct.GossipSender.html b/pr/2628/docs/iroh_gossip/net/struct.GossipSender.html index 805a9d514f..2f1f00e31d 100644 --- a/pr/2628/docs/iroh_gossip/net/struct.GossipSender.html +++ b/pr/2628/docs/iroh_gossip/net/struct.GossipSender.html @@ -1,7 +1,7 @@ GossipSender in iroh_gossip::net - Rust

    Struct iroh_gossip::net::GossipSender

    source ·
    pub struct GossipSender(/* private fields */);
    Expand description

    Sender for a gossip topic.

    Implementations§

    source§

    impl GossipSender

    source

    pub async fn broadcast(&self, message: Bytes) -> Result<()>

    Broadcast a message to all nodes.

    source

    pub async fn broadcast_neighbors(&self, message: Bytes) -> Result<()>

    Broadcast a message to our direct neighbors.

    -
    source

    pub async fn join_peers(&self, peers: Vec<NodeId>) -> Result<()>

    Join a set of peers.

    +
    source

    pub async fn join_peers(&self, peers: Vec<NodeId>) -> Result<()>

    Join a set of peers.

    Trait Implementations§

    source§

    impl Debug for GossipSender

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for T
    where T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    §

    impl<'a, T, E> AsTaggedExplicit<'a, E> for T
    where T: 'a,

    §

    fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

    §

    impl<'a, T, E> AsTaggedExplicit<'a, E> for T
    where diff --git a/pr/2628/docs/iroh_gossip/net/struct.JoinOptions.html b/pr/2628/docs/iroh_gossip/net/struct.JoinOptions.html index fc9bce32ef..a1d436f18e 100644 --- a/pr/2628/docs/iroh_gossip/net/struct.JoinOptions.html +++ b/pr/2628/docs/iroh_gossip/net/struct.JoinOptions.html @@ -1,14 +1,14 @@ JoinOptions in iroh_gossip::net - Rust

    Struct iroh_gossip::net::JoinOptions

    source ·
    pub struct JoinOptions {
    -    pub bootstrap: BTreeSet<NodeId>,
    +    pub bootstrap: BTreeSet<NodeId>,
         pub subscription_capacity: usize,
     }
    Expand description

    Options for joining a gossip topic.

    -

    Fields§

    §bootstrap: BTreeSet<NodeId>

    The initial bootstrap nodes

    +

    Fields§

    §bootstrap: BTreeSet<NodeId>

    The initial bootstrap nodes

    §subscription_capacity: usize

    The maximum number of messages that can be buffered in a subscription.

    If this limit is reached, the subscriber will receive a Lagged response, the message will be dropped, and the subscriber will be closed.

    This is to prevent a single slow subscriber from blocking the dispatch loop. If a subscriber is lagging, it should be closed and re-opened.

    -

    Implementations§

    source§

    impl JoinOptions

    source

    pub fn with_bootstrap(nodes: impl IntoIterator<Item = NodeId>) -> Self

    Creates JoinOptions with the provided bootstrap nodes and the default subscription +

    Implementations§

    source§

    impl JoinOptions

    source

    pub fn with_bootstrap(nodes: impl IntoIterator<Item = NodeId>) -> Self

    Creates JoinOptions with the provided bootstrap nodes and the default subscription capacity.

    Trait Implementations§

    source§

    impl Debug for JoinOptions

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    source§

    impl<'de> Deserialize<'de> for JoinOptions

    source§

    fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
    where __D: Deserializer<'de>,

    Deserialize this value from the given Serde deserializer. Read more
    source§

    impl Serialize for JoinOptions

    source§

    fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
    where diff --git a/pr/2628/docs/iroh_gossip/net/struct.Message.html b/pr/2628/docs/iroh_gossip/net/struct.Message.html index cec746fafc..148d3dd789 100644 --- a/pr/2628/docs/iroh_gossip/net/struct.Message.html +++ b/pr/2628/docs/iroh_gossip/net/struct.Message.html @@ -1,12 +1,12 @@ Message in iroh_gossip::net - Rust

    Struct iroh_gossip::net::Message

    source ·
    pub struct Message {
         pub content: Bytes,
         pub scope: DeliveryScope,
    -    pub delivered_from: NodeId,
    +    pub delivered_from: NodeId,
     }
    Expand description

    A gossip message

    Fields§

    §content: Bytes

    The content of the message

    §scope: DeliveryScope

    The scope of the message. This tells us if the message is from a direct neighbor or actual gossip.

    -
    §delivered_from: NodeId

    The node that delivered the message. This is not the same as the original author.

    +
    §delivered_from: NodeId

    The node that delivered the message. This is not the same as the original author.

    Trait Implementations§

    source§

    impl Clone for Message

    source§

    fn clone(&self) -> Message

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    source§

    impl Debug for Message

    source§

    fn fmt(&self, __derive_more_f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    source§

    impl<'de> Deserialize<'de> for Message

    source§

    fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
    where __D: Deserializer<'de>,

    Deserialize this value from the given Serde deserializer. Read more
    source§

    impl Ord for Message

    source§

    fn cmp(&self, other: &Message) -> Ordering

    This method returns an Ordering between self and other. Read more
    1.21.0 · source§

    fn max(self, other: Self) -> Self
    where Self: Sized,

    Compares and returns the maximum of two values. Read more
    1.21.0 · source§

    fn min(self, other: Self) -> Self
    where diff --git a/pr/2628/docs/iroh_gossip/net/type.ProtoCommand.html b/pr/2628/docs/iroh_gossip/net/type.ProtoCommand.html index 83257af5b2..bb3b32a214 100644 --- a/pr/2628/docs/iroh_gossip/net/type.ProtoCommand.html +++ b/pr/2628/docs/iroh_gossip/net/type.ProtoCommand.html @@ -1,9 +1,9 @@ -ProtoCommand in iroh_gossip::net - Rust

    Type Alias iroh_gossip::net::ProtoCommand

    source ·
    pub type ProtoCommand = Command<PublicKey>;
    Expand description

    Commands for the gossip protocol

    +ProtoCommand in iroh_gossip::net - Rust

    Type Alias iroh_gossip::net::ProtoCommand

    source ·
    pub type ProtoCommand = Command<PublicKey>;
    Expand description

    Commands for the gossip protocol

    Aliased Type§

    enum ProtoCommand {
    -    Join(Vec<PublicKey>),
    +    Join(Vec<PublicKey>),
         Broadcast(Bytes, Scope),
         Quit,
    -}

    Variants§

    §

    Join(Vec<PublicKey>)

    Join this topic and connect to peers.

    +}

    Variants§

    §

    Join(Vec<PublicKey>)

    Join this topic and connect to peers.

    If the list of peers is empty, will prepare the state and accept incoming join requests, but only become operational after the first join request by another peer.

    §

    Broadcast(Bytes, Scope)

    Broadcast a message for this topic.

    diff --git a/pr/2628/docs/iroh_gossip/net/type.ProtoEvent.html b/pr/2628/docs/iroh_gossip/net/type.ProtoEvent.html index f72d41e07d..37a9e75a6c 100644 --- a/pr/2628/docs/iroh_gossip/net/type.ProtoEvent.html +++ b/pr/2628/docs/iroh_gossip/net/type.ProtoEvent.html @@ -1,9 +1,9 @@ -ProtoEvent in iroh_gossip::net - Rust

    Type Alias iroh_gossip::net::ProtoEvent

    source ·
    pub type ProtoEvent = Event<PublicKey>;
    Expand description

    Events emitted from the gossip protocol

    +ProtoEvent in iroh_gossip::net - Rust

    Type Alias iroh_gossip::net::ProtoEvent

    source ·
    pub type ProtoEvent = Event<PublicKey>;
    Expand description

    Events emitted from the gossip protocol

    Aliased Type§

    enum ProtoEvent {
    -    NeighborUp(PublicKey),
    -    NeighborDown(PublicKey),
    -    Received(GossipEvent<PublicKey>),
    -}

    Variants§

    §

    NeighborUp(PublicKey)

    We have a new, direct neighbor in the swarm membership layer for this topic

    -
    §

    NeighborDown(PublicKey)

    We dropped direct neighbor in the swarm membership layer for this topic

    -
    §

    Received(GossipEvent<PublicKey>)

    A gossip message was received for this topic

    + NeighborUp(PublicKey), + NeighborDown(PublicKey), + Received(GossipEvent<PublicKey>), +}

    Variants§

    §

    NeighborUp(PublicKey)

    We have a new, direct neighbor in the swarm membership layer for this topic

    +
    §

    NeighborDown(PublicKey)

    We dropped direct neighbor in the swarm membership layer for this topic

    +
    §

    Received(GossipEvent<PublicKey>)

    A gossip message was received for this topic

    \ No newline at end of file diff --git a/pr/2628/docs/iroh_gossip/net/util/fn.read_message.html b/pr/2628/docs/iroh_gossip/net/util/fn.read_message.html index b24a6cb2ba..e08ae9651c 100644 --- a/pr/2628/docs/iroh_gossip/net/util/fn.read_message.html +++ b/pr/2628/docs/iroh_gossip/net/util/fn.read_message.html @@ -2,5 +2,5 @@ reader: impl AsyncRead + Unpin, buffer: &mut BytesMut, max_message_size: usize -) -> Result<Option<Message<PublicKey>>>
    Expand description

    Read a length-prefixed message and decode as ProtoMessage;

    +) -> Result<Option<Message<PublicKey>>>
    Expand description

    Read a length-prefixed message and decode as ProtoMessage;

    \ No newline at end of file diff --git a/pr/2628/docs/iroh_gossip/net/util/fn.write_message.html b/pr/2628/docs/iroh_gossip/net/util/fn.write_message.html index 8fd0f02670..8e9c5dcd1c 100644 --- a/pr/2628/docs/iroh_gossip/net/util/fn.write_message.html +++ b/pr/2628/docs/iroh_gossip/net/util/fn.write_message.html @@ -1,7 +1,7 @@ write_message in iroh_gossip::net::util - Rust

    Function iroh_gossip::net::util::write_message

    source ·
    pub async fn write_message<W: AsyncWrite + Unpin>(
         writer: &mut W,
         buffer: &mut BytesMut,
    -    frame: &Message<PublicKey>,
    +    frame: &Message<PublicKey>,
         max_message_size: usize
     ) -> Result<()>
    Expand description

    Write a ProtoMessage as a length-prefixed, postcard-encoded message.

    \ No newline at end of file diff --git a/pr/2628/docs/iroh_gossip/proto/topic/enum.Event.html b/pr/2628/docs/iroh_gossip/proto/topic/enum.Event.html index f41b8e8ff7..715a58ee6a 100644 --- a/pr/2628/docs/iroh_gossip/proto/topic/enum.Event.html +++ b/pr/2628/docs/iroh_gossip/proto/topic/enum.Event.html @@ -8,7 +8,7 @@
    §

    Received(GossipEvent<PI>)

    A gossip message was received for this topic

    Trait Implementations§

    source§

    impl<PI: Clone> Clone for Event<PI>

    source§

    fn clone(&self) -> Event<PI>

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    source§

    impl<PI: Debug> Debug for Event<PI>

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    source§

    impl<'de, PI> Deserialize<'de> for Event<PI>
    where PI: Deserialize<'de>,

    source§

    fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
    where - __D: Deserializer<'de>,

    Deserialize this value from the given Serde deserializer. Read more
    source§

    impl From<Event<PublicKey>> for GossipEvent

    source§

    fn from(event: Event<NodeId>) -> Self

    Converts to this type from the input type.
    source§

    impl<PI: Ord> Ord for Event<PI>

    source§

    fn cmp(&self, other: &Event<PI>) -> Ordering

    This method returns an Ordering between self and other. Read more
    1.21.0 · source§

    fn max(self, other: Self) -> Self
    where + __D: Deserializer<'de>,

    Deserialize this value from the given Serde deserializer. Read more
    source§

    impl From<Event<PublicKey>> for GossipEvent

    source§

    fn from(event: Event<NodeId>) -> Self

    Converts to this type from the input type.
    source§

    impl<PI: Ord> Ord for Event<PI>

    source§

    fn cmp(&self, other: &Event<PI>) -> Ordering

    This method returns an Ordering between self and other. Read more
    1.21.0 · source§

    fn max(self, other: Self) -> Self
    where Self: Sized,

    Compares and returns the maximum of two values. Read more
    1.21.0 · source§

    fn min(self, other: Self) -> Self
    where Self: Sized,

    Compares and returns the minimum of two values. Read more
    1.50.0 · source§

    fn clamp(self, min: Self, max: Self) -> Self
    where Self: Sized + PartialOrd,

    Restrict a value to a certain interval. Read more
    source§

    impl<PI: PartialEq> PartialEq for Event<PI>

    source§

    fn eq(&self, other: &Event<PI>) -> bool

    This method tests for self and other values to be equal, and is used diff --git a/pr/2628/docs/src/iroh_net/discovery/pkarr/dht.rs.html b/pr/2628/docs/src/iroh_net/discovery/pkarr/dht.rs.html index d30346460e..ae9297e126 100644 --- a/pr/2628/docs/src/iroh_net/discovery/pkarr/dht.rs.html +++ b/pr/2628/docs/src/iroh_net/discovery/pkarr/dht.rs.html @@ -376,8 +376,6 @@ time::Duration, }; -use futures_lite::StreamExt; -use genawaiter::sync::{Co, Gen}; use crate::{ discovery::{ pkarr::{DEFAULT_PKARR_TTL, N0_DNS_PKARR_RELAY_PROD}, @@ -388,6 +386,8 @@ util::AbortingJoinHandle, AddrInfo, Endpoint, NodeId, }; +use futures_lite::StreamExt; +use genawaiter::sync::{Co, Gen}; use pkarr::{ PkarrClient, PkarrClientAsync, PkarrRelayClient, PkarrRelayClientAsync, PublicKey, RelaySettings, SignedPacket, diff --git a/pr/2628/docs/trait.impl/core/convert/trait.From.js b/pr/2628/docs/trait.impl/core/convert/trait.From.js index c8100adcf0..844a5e8e5e 100644 --- a/pr/2628/docs/trait.impl/core/convert/trait.From.js +++ b/pr/2628/docs/trait.impl/core/convert/trait.From.js @@ -3,6 +3,6 @@ "iroh_base":[["impl From<&[u8; 32]> for Hash"],["impl From<(PublicKey, Option<RelayUrl>, &[SocketAddr])> for NodeAddr"],["impl From<FromHexError> for HexOrBase32ParseError"],["impl From<HexOrBase32ParseError> for KeyParsingError"],["impl From<BlobFormat> for u64"],["impl From<Error> for RpcError"],["impl From<Error> for RpcError"],["impl From<Url> for RelayUrl"],["impl From<DecodeError> for HexOrBase32ParseError"],["impl From<DecodeError> for Error"],["impl From<Hash> for Hash"],["impl From<Hash> for [u8; 32]"],["impl From<PublicKey> for NodeAddr"],["impl From<RelayUrl> for Url"],["impl From<Error> for KeyParsingError"],["impl From<Error> for Error"],["impl From<Hash> for Hash"],["impl From<SigningKey> for SecretKey"],["impl From<VerifyingKey> for PublicKey"],["impl From<[u8; 32]> for Hash"],["impl From<[u8; 32]> for SecretKey"]], "iroh_blobs":[["impl From<&str> for Tag"],["impl From<(AtBlobContent, Result<BaoContentItem, DecodeError>)> for BlobContentNext"],["impl From<BlobId> for u64"],["impl From<GetResponseError> for Error"],["impl From<GetError> for FailureAction"],["impl From<AtBlobHeaderNextError> for GetError"],["impl From<AtBlobHeaderNextError> for DecodeError"],["impl From<AtBlobHeaderNextError> for Error"],["impl From<ConnectedNextError> for GetError"],["impl From<ConnectedNextError> for Error"],["impl From<DecodeError> for GetError"],["impl From<DecodeError> for Error"],["impl From<Closed> for VarInt"],["impl From<SpawnError> for Error"],["impl From<ProgressSendError> for GetError"],["impl From<ProgressSendError> for Error"],["impl From<String> for Tag"],["impl From<Vec<u8>> for SparseMemFile"],["impl From<Error> for GetError"],["impl From<Error> for DecodeError"],["impl From<Error> for GetResponseError"],["impl From<DownloadKind> for HashAndFormat"],["impl From<AtClosing> for ConnectedNext"],["impl From<AtClosing> for EndBlobNext"],["impl From<AtEndBlob> for BlobContentNext"],["impl From<AtStartChild> for ConnectedNext"],["impl From<AtStartChild> for EndBlobNext"],["impl From<AtStartRoot> for ConnectedNext"],["impl From<HashSeq> for Bytes"],["impl From<GetRequest> for Request"],["impl From<HashAndFormat> for DownloadKind"],["impl From<Tag> for Bytes"],["impl From<Bytes> for Tag"],["impl From<ConnectionError> for GetResponseError"],["impl From<ConnectionError> for GetError"],["impl From<DecodeError> for GetResponseError"],["impl From<DecodeError> for DecodeError"],["impl From<Error> for GetResponseError"],["impl From<ReadError> for GetResponseError"],["impl From<ReadError> for GetError"],["impl From<WriteError> for GetResponseError"],["impl From<WriteError> for GetError"],["impl From<WriteError> for ConnectedNextError"],["impl<T: CustomEventSender> From<T> for EventSender"]], "iroh_docs":[["impl From<&Author> for AuthorPublicKey"],["impl From<&AuthorPublicKey> for AuthorId"],["impl From<&NamespacePublicKey> for NamespaceId"],["impl From<&NamespaceSecret> for NamespacePublicKey"],["impl From<&[u8; 32]> for AuthorId"],["impl From<&[u8; 32]> for NamespaceId"],["impl From<CapabilityKind> for u8"],["impl From<ValidationFailure> for InsertError"],["impl From<Error> for OpenError"],["impl From<QueryBuilder<FlatQuery>> for Query"],["impl From<QueryBuilder<SingleLatestPerKeyQuery>> for Query"],["impl From<Author> for AuthorId"],["impl From<Author> for AuthorPublicKey"],["impl From<AuthorId> for AuthorFilter"],["impl From<AuthorId> for [u8; 32]"],["impl From<AuthorPublicKey> for AuthorId"],["impl From<NamespaceId> for Capability"],["impl From<NamespaceId> for [u8; 32]"],["impl From<NamespacePublicKey> for NamespaceId"],["impl From<NamespaceSecret> for Capability"],["impl From<NamespaceSecret> for NamespaceId"],["impl From<NamespaceSecret> for NamespacePublicKey"],["impl From<ReadOnly> for InsertError"],["impl From<SignedEntry> for Entry"],["impl From<SigningKey> for Author"],["impl From<SigningKey> for NamespaceSecret"],["impl From<VerifyingKey> for AuthorPublicKey"],["impl From<VerifyingKey> for NamespacePublicKey"],["impl From<[u8; 32]> for AuthorId"],["impl From<[u8; 32]> for NamespaceId"],["impl<T: AsRef<[u8]>> From<T> for KeyFilter"]], -"iroh_gossip":[["impl From<Event<PublicKey>> for GossipEvent"],["impl<T: Into<[u8; 32]>> From<T> for TopicId"]], +"iroh_gossip":[["impl From<Event<PublicKey>> for GossipEvent"],["impl<T: Into<[u8; 32]>> From<T> for TopicId"]], "iroh_net":[["impl From<&NodeInfo> for TxtAttrs<IrohAttr>"],["impl From<&TxtAttrs<IrohAttr>> for NodeInfo"],["impl From<&Peer> for DiscoveryItem"],["impl From<IpAddr> for IpFamily"],["impl From<IpFamily> for Domain"],["impl From<Error> for ClientError"],["impl From<Error> for PingError"],["impl From<NodeInfo> for AddrInfo"],["impl From<NodeInfo> for NodeAddr"],["impl From<TxtAttrs<IrohAttr>> for NodeInfo"],["impl From<NodeInfo> for NodeAddr"],["impl From<ParseError> for Error"],["impl From<VerificationError> for Error"],["impl From<Error> for ClientError"],["impl From<Error> for ClientError"],["impl From<Error> for ClientError"],["impl From<Error> for GenError"],["impl From<Error> for ParseError"],["impl From<Error> for VerificationError"],["impl From<JoinError> for ClientError"],["impl From<SurgeError> for PingError"],["impl From<UdpSocket> for UdpSocket"],["impl<T> From<JoinHandle<T>> for AbortingJoinHandle<T>"],["impl<T> From<T> for ConcurrentDiscovery
    where\n T: IntoIterator<Item = Box<dyn Discovery>>,
    "],["impl<T: Clone + Send + 'static> From<JoinHandle<T>> for SharedAbortingJoinHandle<T>"]] };if (window.register_implementors) {window.register_implementors(implementors);} else {window.pending_implementors = implementors;}})() \ No newline at end of file diff --git a/pr/2628/docs/trait.impl/iroh_base/ticket/trait.Ticket.js b/pr/2628/docs/trait.impl/iroh_base/ticket/trait.Ticket.js index 5d209fabd2..12fa1e3ee5 100644 --- a/pr/2628/docs/trait.impl/iroh_base/ticket/trait.Ticket.js +++ b/pr/2628/docs/trait.impl/iroh_base/ticket/trait.Ticket.js @@ -1,5 +1,5 @@ (function() {var implementors = { "iroh":[], "iroh_base":[], -"iroh_docs":[["impl Ticket for DocTicket"]] +"iroh_docs":[["impl Ticket for DocTicket"]] };if (window.register_implementors) {window.register_implementors(implementors);} else {window.pending_implementors = implementors;}})() \ No newline at end of file diff --git a/pr/2628/docs/trait.impl/iroh_metrics/core/trait.Metric.js b/pr/2628/docs/trait.impl/iroh_metrics/core/trait.Metric.js index 8902586109..d96c0fcf7e 100644 --- a/pr/2628/docs/trait.impl/iroh_metrics/core/trait.Metric.js +++ b/pr/2628/docs/trait.impl/iroh_metrics/core/trait.Metric.js @@ -1,6 +1,6 @@ (function() {var implementors = { "iroh":[["impl Metric for Metrics"]], -"iroh_blobs":[["impl Metric for Metrics"]], +"iroh_blobs":[["impl Metric for Metrics"]], "iroh_dns_server":[["impl Metric for Metrics"]], "iroh_docs":[["impl Metric for Metrics"]], "iroh_gossip":[["impl Metric for Metrics"]], diff --git a/pr/2628/docs/type.impl/std/primitive.array.js b/pr/2628/docs/type.impl/std/primitive.array.js index 4d4303e493..3f9a615647 100644 --- a/pr/2628/docs/type.impl/std/primitive.array.js +++ b/pr/2628/docs/type.impl/std/primitive.array.js @@ -1,4 +1,4 @@ (function() {var type_impls = { "iroh":[["
    source§

    impl<T, const N: usize> [T; N]

    1.55.0 · source

    pub fn map<F, U>(self, f: F) -> [U; N]
    where\n F: FnMut(T) -> U,

    Returns an array of the same size as self, with function f applied to each element\nin order.

    \n

    If you don’t necessarily need a new fixed-size array, consider using\nIterator::map instead.

    \n
    §Note on performance and stack usage
    \n

    Unfortunately, usages of this method are currently not always optimized\nas well as they could be. This mainly concerns large arrays, as mapping\nover small arrays seem to be optimized just fine. Also note that in\ndebug mode (i.e. without any optimizations), this method can use a lot\nof stack space (a few times the size of the array or more).

    \n

    Therefore, in performance-critical code, try to avoid using this method\non large arrays or check the emitted code. Also try to avoid chained\nmaps (e.g. arr.map(...).map(...)).

    \n

    In many cases, you can instead use Iterator::map by calling .iter()\nor .into_iter() on your array. [T; N]::map is only necessary if you\nreally need a new array of the same size as the result. Rust’s lazy\niterators tend to get optimized very well.

    \n
    §Examples
    \n
    let x = [1, 2, 3];\nlet y = x.map(|v| v + 1);\nassert_eq!(y, [2, 3, 4]);\n\nlet x = [1, 2, 3];\nlet mut temp = 0;\nlet y = x.map(|v| { temp += 1; v * temp });\nassert_eq!(y, [1, 4, 9]);\n\nlet x = [\"Ferris\", \"Bueller's\", \"Day\", \"Off\"];\nlet y = x.map(|v| v.len());\nassert_eq!(y, [6, 9, 3, 3]);
    \n
    source

    pub fn try_map<F, R>(\n self,\n f: F\n) -> <<R as Try>::Residual as Residual<[<R as Try>::Output; N]>>::TryType
    where\n F: FnMut(T) -> R,\n R: Try,\n <R as Try>::Residual: Residual<[<R as Try>::Output; N]>,

    🔬This is a nightly-only experimental API. (array_try_map)

    A fallible function f applied to each element on array self in order to\nreturn an array the same size as self or the first error encountered.

    \n

    The return type of this function depends on the return type of the closure.\nIf you return Result<T, E> from the closure, you’ll get a Result<[T; N], E>.\nIf you return Option<T> from the closure, you’ll get an Option<[T; N]>.

    \n
    §Examples
    \n
    #![feature(array_try_map)]\n\nlet a = [\"1\", \"2\", \"3\"];\nlet b = a.try_map(|v| v.parse::<u32>()).unwrap().map(|v| v + 1);\nassert_eq!(b, [2, 3, 4]);\n\nlet a = [\"1\", \"2a\", \"3\"];\nlet b = a.try_map(|v| v.parse::<u32>());\nassert!(b.is_err());\n\nuse std::num::NonZero;\n\nlet z = [1, 2, 0, 3, 4];\nassert_eq!(z.try_map(NonZero::new), None);\n\nlet a = [1, 2, 3];\nlet b = a.try_map(NonZero::new);\nlet c = b.map(|x| x.map(NonZero::get));\nassert_eq!(c, Some(a));
    \n
    1.57.0 (const: 1.57.0) · source

    pub const fn as_slice(&self) -> &[T]

    Returns a slice containing the entire array. Equivalent to &s[..].

    \n
    1.57.0 · source

    pub fn as_mut_slice(&mut self) -> &mut [T]

    Returns a mutable slice containing the entire array. Equivalent to\n&mut s[..].

    \n
    1.77.0 · source

    pub fn each_ref(&self) -> [&T; N]

    Borrows each element and returns an array of references with the same\nsize as self.

    \n
    §Example
    \n
    let floats = [3.1, 2.7, -1.0];\nlet float_refs: [&f64; 3] = floats.each_ref();\nassert_eq!(float_refs, [&3.1, &2.7, &-1.0]);
    \n

    This method is particularly useful if combined with other methods, like\nmap. This way, you can avoid moving the original\narray if its elements are not Copy.

    \n\n
    let strings = [\"Ferris\".to_string(), \"♥\".to_string(), \"Rust\".to_string()];\nlet is_ascii = strings.each_ref().map(|s| s.is_ascii());\nassert_eq!(is_ascii, [true, false, true]);\n\n// We can still access the original array: it has not been moved.\nassert_eq!(strings.len(), 3);
    \n
    1.77.0 · source

    pub fn each_mut(&mut self) -> [&mut T; N]

    Borrows each element mutably and returns an array of mutable references\nwith the same size as self.

    \n
    §Example
    \n
    \nlet mut floats = [3.1, 2.7, -1.0];\nlet float_refs: [&mut f64; 3] = floats.each_mut();\n*float_refs[0] = 0.0;\nassert_eq!(float_refs, [&mut 0.0, &mut 2.7, &mut -1.0]);\nassert_eq!(floats, [0.0, 2.7, -1.0]);
    \n
    source

    pub fn split_array_ref<const M: usize>(&self) -> (&[T; M], &[T])

    🔬This is a nightly-only experimental API. (split_array)

    Divides one array reference into two at an index.

    \n

    The first will contain all indices from [0, M) (excluding\nthe index M itself) and the second will contain all\nindices from [M, N) (excluding the index N itself).

    \n
    §Panics
    \n

    Panics if M > N.

    \n
    §Examples
    \n
    #![feature(split_array)]\n\nlet v = [1, 2, 3, 4, 5, 6];\n\n{\n   let (left, right) = v.split_array_ref::<0>();\n   assert_eq!(left, &[]);\n   assert_eq!(right, &[1, 2, 3, 4, 5, 6]);\n}\n\n{\n    let (left, right) = v.split_array_ref::<2>();\n    assert_eq!(left, &[1, 2]);\n    assert_eq!(right, &[3, 4, 5, 6]);\n}\n\n{\n    let (left, right) = v.split_array_ref::<6>();\n    assert_eq!(left, &[1, 2, 3, 4, 5, 6]);\n    assert_eq!(right, &[]);\n}
    \n
    source

    pub fn split_array_mut<const M: usize>(&mut self) -> (&mut [T; M], &mut [T])

    🔬This is a nightly-only experimental API. (split_array)

    Divides one mutable array reference into two at an index.

    \n

    The first will contain all indices from [0, M) (excluding\nthe index M itself) and the second will contain all\nindices from [M, N) (excluding the index N itself).

    \n
    §Panics
    \n

    Panics if M > N.

    \n
    §Examples
    \n
    #![feature(split_array)]\n\nlet mut v = [1, 0, 3, 0, 5, 6];\nlet (left, right) = v.split_array_mut::<2>();\nassert_eq!(left, &mut [1, 0][..]);\nassert_eq!(right, &mut [3, 0, 5, 6]);\nleft[1] = 2;\nright[1] = 4;\nassert_eq!(v, [1, 2, 3, 4, 5, 6]);
    \n
    source

    pub fn rsplit_array_ref<const M: usize>(&self) -> (&[T], &[T; M])

    🔬This is a nightly-only experimental API. (split_array)

    Divides one array reference into two at an index from the end.

    \n

    The first will contain all indices from [0, N - M) (excluding\nthe index N - M itself) and the second will contain all\nindices from [N - M, N) (excluding the index N itself).

    \n
    §Panics
    \n

    Panics if M > N.

    \n
    §Examples
    \n
    #![feature(split_array)]\n\nlet v = [1, 2, 3, 4, 5, 6];\n\n{\n   let (left, right) = v.rsplit_array_ref::<0>();\n   assert_eq!(left, &[1, 2, 3, 4, 5, 6]);\n   assert_eq!(right, &[]);\n}\n\n{\n    let (left, right) = v.rsplit_array_ref::<2>();\n    assert_eq!(left, &[1, 2, 3, 4]);\n    assert_eq!(right, &[5, 6]);\n}\n\n{\n    let (left, right) = v.rsplit_array_ref::<6>();\n    assert_eq!(left, &[]);\n    assert_eq!(right, &[1, 2, 3, 4, 5, 6]);\n}
    \n
    source

    pub fn rsplit_array_mut<const M: usize>(&mut self) -> (&mut [T], &mut [T; M])

    🔬This is a nightly-only experimental API. (split_array)

    Divides one mutable array reference into two at an index from the end.

    \n

    The first will contain all indices from [0, N - M) (excluding\nthe index N - M itself) and the second will contain all\nindices from [N - M, N) (excluding the index N itself).

    \n
    §Panics
    \n

    Panics if M > N.

    \n
    §Examples
    \n
    #![feature(split_array)]\n\nlet mut v = [1, 0, 3, 0, 5, 6];\nlet (left, right) = v.rsplit_array_mut::<4>();\nassert_eq!(left, &mut [1, 0]);\nassert_eq!(right, &mut [3, 0, 5, 6][..]);\nleft[1] = 2;\nright[1] = 4;\nassert_eq!(v, [1, 2, 3, 4, 5, 6]);
    \n
    ",0,"iroh::docs::PeerIdBytes"],["
    source§

    impl<const N: usize> [u8; N]

    source

    pub const fn as_ascii(&self) -> Option<&[AsciiChar; N]>

    🔬This is a nightly-only experimental API. (ascii_char)

    Converts this array of bytes into a array of ASCII characters,\nor returns None if any of the characters is non-ASCII.

    \n
    §Examples
    \n
    #![feature(ascii_char)]\n#![feature(const_option)]\n\nconst HEX_DIGITS: [std::ascii::Char; 16] =\n    *b\"0123456789abcdef\".as_ascii().unwrap();\n\nassert_eq!(HEX_DIGITS[1].as_str(), \"1\");\nassert_eq!(HEX_DIGITS[10].as_str(), \"a\");
    \n
    source

    pub const unsafe fn as_ascii_unchecked(&self) -> &[AsciiChar; N]

    🔬This is a nightly-only experimental API. (ascii_char)

    Converts this array of bytes into a array of ASCII characters,\nwithout checking whether they’re valid.

    \n
    §Safety
    \n

    Every byte in the array must be in 0..=127, or else this is UB.

    \n
    ",0,"iroh::docs::PeerIdBytes"],["
    §

    impl<T> Array for [T; 32]
    where\n T: Default,

    §

    type Item = T

    The type of the items in the thing.
    §

    const CAPACITY: usize = 32usize

    The number of slots in the thing.
    §

    fn as_slice(&self) -> &[T]

    Gives a shared slice over the whole thing. Read more
    §

    fn as_slice_mut(&mut self) -> &mut [T]

    Gives a unique slice over the whole thing. Read more
    §

    fn default() -> [T; 32]

    Create a default-initialized instance of ourself, similar to the\nDefault trait, but implemented for the same range of sizes as\n[Array].
    ","Array","iroh::docs::PeerIdBytes"],["
    §

    impl<T, const N: usize> Array for [T; N]

    §

    type Item = T

    The type of the array’s elements.
    §

    fn size() -> usize

    Returns the number of items the array can hold.
    ","Array","iroh::docs::PeerIdBytes"],["
    §

    impl<const N: usize, T> AsBytes for [T; N]
    where\n T: AsBytes,

    §

    fn as_bytes(&self) -> &[u8] ⓘ

    Gets the bytes of this value. Read more
    §

    fn write_to(&self, bytes: &mut [u8]) -> Option<()>

    Writes a copy of self to bytes. Read more
    §

    fn write_to_prefix(&self, bytes: &mut [u8]) -> Option<()>

    Writes a copy of self to the prefix of bytes. Read more
    §

    fn write_to_suffix(&self, bytes: &mut [u8]) -> Option<()>

    Writes a copy of self to the suffix of bytes. Read more
    ","AsBytes","iroh::docs::PeerIdBytes"],["
    §

    impl AsBytes for [u8; 32]

    §

    fn as_bytes(&self) -> &[u8] ⓘ

    Casts the input type to a byte slice
    ","AsBytes","iroh::docs::PeerIdBytes"],["
    1.0.0 · source§

    impl<T, const N: usize> AsMut<[T]> for [T; N]

    source§

    fn as_mut(&mut self) -> &mut [T]

    Converts this type into a mutable reference of the (usually inferred) input type.
    ","AsMut<[T]>","iroh::docs::PeerIdBytes"],["
    1.0.0 · source§

    impl<T, const N: usize> AsRef<[T]> for [T; N]

    source§

    fn as_ref(&self) -> &[T]

    Converts this type into a shared reference of the (usually inferred) input type.
    ","AsRef<[T]>","iroh::docs::PeerIdBytes"],["
    §

    impl<T, const N: usize> BitView for [T; N]
    where\n T: BitStore,

    Note that overly-large arrays may cause the conversions to fail.

    \n
    §

    type Store = T

    The underlying element type.
    §

    fn view_bits<O>(&self) -> &BitSlice<T, O>
    where\n O: BitOrder,

    Views a memory region as an immutable bit-slice.
    §

    fn try_view_bits<O>(&self) -> Result<&BitSlice<T, O>, BitSpanError<T>>
    where\n O: BitOrder,

    Attempts to view a memory region as an immutable bit-slice. Read more
    §

    fn view_bits_mut<O>(&mut self) -> &mut BitSlice<T, O>
    where\n O: BitOrder,

    Views a memory region as a mutable bit-slice.
    §

    fn try_view_bits_mut<O>(\n &mut self\n) -> Result<&mut BitSlice<T, O>, BitSpanError<T>>
    where\n O: BitOrder,

    Attempts to view a memory region as a mutable bit-slice. Read more
    ","BitView","iroh::docs::PeerIdBytes"],["
    §

    impl<T, const N: usize> BitViewSized for [T; N]
    where\n T: BitStore,

    §

    const ZERO: [T; N] = _

    The zero constant.
    §

    fn as_raw_slice(&self) -> &[<[T; N] as BitView>::Store]

    Views the type as a slice of its elements.
    §

    fn as_raw_mut_slice(&mut self) -> &mut [<[T; N] as BitView>::Store]

    Views the type as a mutable slice of its elements.
    §

    fn into_bitarray<O>(self) -> BitArray<Self, O>
    where\n O: BitOrder,

    Wraps self in a BitArray.
    ","BitViewSized","iroh::docs::PeerIdBytes"],["
    1.4.0 · source§

    impl<T, const N: usize> Borrow<[T]> for [T; N]

    source§

    fn borrow(&self) -> &[T]

    Immutably borrows from an owned value. Read more
    ","Borrow<[T]>","iroh::docs::PeerIdBytes"],["
    1.4.0 · source§

    impl<T, const N: usize> BorrowMut<[T]> for [T; N]

    source§

    fn borrow_mut(&mut self) -> &mut [T]

    Mutably borrows from an owned value. Read more
    ","BorrowMut<[T]>","iroh::docs::PeerIdBytes"],["
    §

    impl<S, const N: usize> Chain for [S; N]
    where\n S: Stream,

    §

    type Item = <S as Stream>::Item

    What’s the return type of our stream?
    §

    type Stream = Chain<S, N>

    What stream do we return?
    §

    fn chain(self) -> <[S; N] as Chain>::Stream

    Combine multiple streams into a single stream.
    ","Chain","iroh::docs::PeerIdBytes"],["
    1.58.0 · source§

    impl<T, const N: usize> Clone for [T; N]
    where\n T: Clone,

    source§

    fn clone(&self) -> [T; N]

    Returns a copy of the value. Read more
    source§

    fn clone_from(&mut self, other: &[T; N])

    Performs copy-assignment from source. Read more
    ","Clone","iroh::docs::PeerIdBytes"],["
    1.0.0 · source§

    impl<T, const N: usize> Debug for [T; N]
    where\n T: Debug,

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more
    ","Debug","iroh::docs::PeerIdBytes"],["
    §

    impl<const N: usize> Decode for [u8; N]

    Decodes a byte array from byte[n] as described in RFC4251 § 5:

    \n
    \n

    A byte represents an arbitrary 8-bit value (octet). Fixed length\ndata is sometimes represented as an array of bytes, written\nbyte[n], where n is the number of bytes in the array.

    \n
    \n
    §

    type Error = Error

    Type returned in the event of a decoding error.
    §

    fn decode(reader: &mut impl Reader) -> Result<[u8; N], Error>

    Attempt to decode a value of this type using the provided [Reader].
    ","Decode","iroh::docs::PeerIdBytes"],["
    §

    impl<'a, T, const N: usize> DecodeValue<'a> for [T; N]
    where\n T: Decode<'a>,

    §

    fn decode_value<R>(reader: &mut R, header: Header) -> Result<[T; N], Error>
    where\n R: Reader<'a>,

    Attempt to decode this message using the provided [Reader].
    ","DecodeValue<'a>","iroh::docs::PeerIdBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 32]
    where\n T: Default,

    source§

    fn default() -> [T; 32]

    Returns the “default value” for a type. Read more
    ","Default","iroh::docs::PeerIdBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 31]
    where\n T: Default,

    source§

    fn default() -> [T; 31]

    Returns the “default value” for a type. Read more
    ","Default","iroh::docs::PeerIdBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 30]
    where\n T: Default,

    source§

    fn default() -> [T; 30]

    Returns the “default value” for a type. Read more
    ","Default","iroh::docs::PeerIdBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 29]
    where\n T: Default,

    source§

    fn default() -> [T; 29]

    Returns the “default value” for a type. Read more
    ","Default","iroh::docs::PeerIdBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 28]
    where\n T: Default,

    source§

    fn default() -> [T; 28]

    Returns the “default value” for a type. Read more
    ","Default","iroh::docs::PeerIdBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 27]
    where\n T: Default,

    source§

    fn default() -> [T; 27]

    Returns the “default value” for a type. Read more
    ","Default","iroh::docs::PeerIdBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 26]
    where\n T: Default,

    source§

    fn default() -> [T; 26]

    Returns the “default value” for a type. Read more
    ","Default","iroh::docs::PeerIdBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 25]
    where\n T: Default,

    source§

    fn default() -> [T; 25]

    Returns the “default value” for a type. Read more
    ","Default","iroh::docs::PeerIdBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 24]
    where\n T: Default,

    source§

    fn default() -> [T; 24]

    Returns the “default value” for a type. Read more
    ","Default","iroh::docs::PeerIdBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 23]
    where\n T: Default,

    source§

    fn default() -> [T; 23]

    Returns the “default value” for a type. Read more
    ","Default","iroh::docs::PeerIdBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 22]
    where\n T: Default,

    source§

    fn default() -> [T; 22]

    Returns the “default value” for a type. Read more
    ","Default","iroh::docs::PeerIdBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 21]
    where\n T: Default,

    source§

    fn default() -> [T; 21]

    Returns the “default value” for a type. Read more
    ","Default","iroh::docs::PeerIdBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 20]
    where\n T: Default,

    source§

    fn default() -> [T; 20]

    Returns the “default value” for a type. Read more
    ","Default","iroh::docs::PeerIdBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 19]
    where\n T: Default,

    source§

    fn default() -> [T; 19]

    Returns the “default value” for a type. Read more
    ","Default","iroh::docs::PeerIdBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 18]
    where\n T: Default,

    source§

    fn default() -> [T; 18]

    Returns the “default value” for a type. Read more
    ","Default","iroh::docs::PeerIdBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 17]
    where\n T: Default,

    source§

    fn default() -> [T; 17]

    Returns the “default value” for a type. Read more
    ","Default","iroh::docs::PeerIdBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 16]
    where\n T: Default,

    source§

    fn default() -> [T; 16]

    Returns the “default value” for a type. Read more
    ","Default","iroh::docs::PeerIdBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 15]
    where\n T: Default,

    source§

    fn default() -> [T; 15]

    Returns the “default value” for a type. Read more
    ","Default","iroh::docs::PeerIdBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 14]
    where\n T: Default,

    source§

    fn default() -> [T; 14]

    Returns the “default value” for a type. Read more
    ","Default","iroh::docs::PeerIdBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 13]
    where\n T: Default,

    source§

    fn default() -> [T; 13]

    Returns the “default value” for a type. Read more
    ","Default","iroh::docs::PeerIdBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 12]
    where\n T: Default,

    source§

    fn default() -> [T; 12]

    Returns the “default value” for a type. Read more
    ","Default","iroh::docs::PeerIdBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 11]
    where\n T: Default,

    source§

    fn default() -> [T; 11]

    Returns the “default value” for a type. Read more
    ","Default","iroh::docs::PeerIdBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 10]
    where\n T: Default,

    source§

    fn default() -> [T; 10]

    Returns the “default value” for a type. Read more
    ","Default","iroh::docs::PeerIdBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 9]
    where\n T: Default,

    source§

    fn default() -> [T; 9]

    Returns the “default value” for a type. Read more
    ","Default","iroh::docs::PeerIdBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 8]
    where\n T: Default,

    source§

    fn default() -> [T; 8]

    Returns the “default value” for a type. Read more
    ","Default","iroh::docs::PeerIdBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 7]
    where\n T: Default,

    source§

    fn default() -> [T; 7]

    Returns the “default value” for a type. Read more
    ","Default","iroh::docs::PeerIdBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 6]
    where\n T: Default,

    source§

    fn default() -> [T; 6]

    Returns the “default value” for a type. Read more
    ","Default","iroh::docs::PeerIdBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 5]
    where\n T: Default,

    source§

    fn default() -> [T; 5]

    Returns the “default value” for a type. Read more
    ","Default","iroh::docs::PeerIdBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 4]
    where\n T: Default,

    source§

    fn default() -> [T; 4]

    Returns the “default value” for a type. Read more
    ","Default","iroh::docs::PeerIdBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 3]
    where\n T: Default,

    source§

    fn default() -> [T; 3]

    Returns the “default value” for a type. Read more
    ","Default","iroh::docs::PeerIdBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 2]
    where\n T: Default,

    source§

    fn default() -> [T; 2]

    Returns the “default value” for a type. Read more
    ","Default","iroh::docs::PeerIdBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 1]
    where\n T: Default,

    source§

    fn default() -> [T; 1]

    Returns the “default value” for a type. Read more
    ","Default","iroh::docs::PeerIdBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 0]

    source§

    fn default() -> [T; 0]

    Returns the “default value” for a type. Read more
    ","Default","iroh::docs::PeerIdBytes"],["
    source§

    impl<'de, T> Deserialize<'de> for [T; 32]
    where\n T: Deserialize<'de>,

    source§

    fn deserialize<D>(\n deserializer: D\n) -> Result<[T; 32], <D as Deserializer<'de>>::Error>
    where\n D: Deserializer<'de>,

    Deserialize this value from the given Serde deserializer. Read more
    ","Deserialize<'de>","iroh::docs::PeerIdBytes"],["
    source§

    impl<'de, const N: usize> Deserialize<'de> for [u8; N]

    source§

    fn deserialize<D>(\n deserializer: D\n) -> Result<[u8; N], <D as Deserializer<'de>>::Error>
    where\n D: Deserializer<'de>,

    ","Deserialize<'de>","iroh::docs::PeerIdBytes"],["
    §

    impl<const N: usize> Encode for [u8; N]

    Encodes [u8; N] into byte[n] as described in RFC4251 § 5:

    \n
    \n

    A byte represents an arbitrary 8-bit value (octet). Fixed length\ndata is sometimes represented as an array of bytes, written\nbyte[n], where n is the number of bytes in the array.

    \n
    \n
    §

    fn encoded_len(&self) -> Result<usize, Error>

    Get the length of this type encoded in bytes, prior to Base64 encoding.
    §

    fn encode(&self, writer: &mut impl Writer) -> Result<(), Error>

    Encode this value using the provided [Writer].
    §

    fn encoded_len_prefixed(&self) -> Result<usize, Error>

    Return the length of this type after encoding when prepended with a\nuint32 length prefix.
    §

    fn encode_prefixed(&self, writer: &mut impl Writer) -> Result<(), Error>

    Encode this value, first prepending a uint32 length prefix\nset to [Encode::encoded_len].
    ","Encode","iroh::docs::PeerIdBytes"],["
    §

    impl<T, const N: usize> EncodeLabelSet for [T; N]
    where\n T: EncodeLabel,

    §

    fn encode(&self, encoder: LabelSetEncoder<'_>) -> Result<(), Error>

    Encode oneself into the given encoder.
    ","EncodeLabelSet","iroh::docs::PeerIdBytes"],["
    §

    impl<T, const N: usize> EncodeValue for [T; N]
    where\n T: Encode,

    §

    fn value_len(&self) -> Result<Length, Error>

    Compute the length of this value (sans [Tag]+[Length] header) when\nencoded as ASN.1 DER.
    §

    fn encode_value(&self, writer: &mut impl Writer) -> Result<(), Error>

    Encode value (sans [Tag]+[Length] header) as ASN.1 DER using the\nprovided [Writer].
    §

    fn header(&self) -> Result<Header, Error>
    where\n Self: Tagged,

    Get the [Header] used to encode this value.
    ","EncodeValue","iroh::docs::PeerIdBytes"],["
    source§

    impl<T> Fill for [T; 32]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh::docs::PeerIdBytes"],["
    source§

    impl<T> Fill for [T; 31]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh::docs::PeerIdBytes"],["
    source§

    impl<T> Fill for [T; 30]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh::docs::PeerIdBytes"],["
    source§

    impl<T> Fill for [T; 29]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh::docs::PeerIdBytes"],["
    source§

    impl<T> Fill for [T; 28]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh::docs::PeerIdBytes"],["
    source§

    impl<T> Fill for [T; 27]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh::docs::PeerIdBytes"],["
    source§

    impl<T> Fill for [T; 26]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh::docs::PeerIdBytes"],["
    source§

    impl<T> Fill for [T; 25]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh::docs::PeerIdBytes"],["
    source§

    impl<T> Fill for [T; 24]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh::docs::PeerIdBytes"],["
    source§

    impl<T> Fill for [T; 23]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh::docs::PeerIdBytes"],["
    source§

    impl<T> Fill for [T; 22]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh::docs::PeerIdBytes"],["
    source§

    impl<T> Fill for [T; 21]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh::docs::PeerIdBytes"],["
    source§

    impl<T> Fill for [T; 20]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh::docs::PeerIdBytes"],["
    source§

    impl<T> Fill for [T; 19]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh::docs::PeerIdBytes"],["
    source§

    impl<T> Fill for [T; 18]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh::docs::PeerIdBytes"],["
    source§

    impl<T> Fill for [T; 17]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh::docs::PeerIdBytes"],["
    source§

    impl<T> Fill for [T; 16]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh::docs::PeerIdBytes"],["
    source§

    impl<T> Fill for [T; 15]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh::docs::PeerIdBytes"],["
    source§

    impl<T> Fill for [T; 14]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh::docs::PeerIdBytes"],["
    source§

    impl<T> Fill for [T; 13]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh::docs::PeerIdBytes"],["
    source§

    impl<T> Fill for [T; 12]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh::docs::PeerIdBytes"],["
    source§

    impl<T> Fill for [T; 11]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh::docs::PeerIdBytes"],["
    source§

    impl<T> Fill for [T; 10]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh::docs::PeerIdBytes"],["
    source§

    impl<T> Fill for [T; 9]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh::docs::PeerIdBytes"],["
    source§

    impl<T> Fill for [T; 8]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh::docs::PeerIdBytes"],["
    source§

    impl<T> Fill for [T; 7]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh::docs::PeerIdBytes"],["
    source§

    impl<T> Fill for [T; 6]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh::docs::PeerIdBytes"],["
    source§

    impl<T> Fill for [T; 5]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh::docs::PeerIdBytes"],["
    source§

    impl<T> Fill for [T; 4]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh::docs::PeerIdBytes"],["
    source§

    impl<T> Fill for [T; 3]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh::docs::PeerIdBytes"],["
    source§

    impl<T> Fill for [T; 2]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh::docs::PeerIdBytes"],["
    source§

    impl<T> Fill for [T; 1]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh::docs::PeerIdBytes"],["
    source§

    impl<T> Fill for [T; 0]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh::docs::PeerIdBytes"],["
    source§

    impl<T> Fill for [T; 2048]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh::docs::PeerIdBytes"],["
    source§

    impl<T> Fill for [T; 1024]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh::docs::PeerIdBytes"],["
    source§

    impl<T> Fill for [T; 512]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh::docs::PeerIdBytes"],["
    source§

    impl<T> Fill for [T; 256]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh::docs::PeerIdBytes"],["
    source§

    impl<T> Fill for [T; 128]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh::docs::PeerIdBytes"],["
    source§

    impl<T> Fill for [T; 64]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh::docs::PeerIdBytes"],["
    §

    impl<'a> FindToken<&'a u8> for [u8; 32]

    §

    fn find_token(&self, token: &u8) -> bool

    Returns true if self contains the token
    ","FindToken<&'a u8>","iroh::docs::PeerIdBytes"],["
    §

    impl FindToken<u8> for [u8; 32]

    §

    fn find_token(&self, token: u8) -> bool

    Returns true if self contains the token
    ","FindToken","iroh::docs::PeerIdBytes"],["
    §

    impl<T, const N: usize> FixedTag for [T; N]

    §

    const TAG: Tag = Tag::Sequence

    ASN.1 tag
    ","FixedTag","iroh::docs::PeerIdBytes"],["
    §

    impl From<&Signature> for [u8; 64]

    §

    fn from(sig: &Signature) -> [u8; 64]

    Converts to this type from the input type.
    ","From<&Signature>","iroh::docs::PeerIdBytes"],["
    source§

    impl From<AuthorId> for [u8; 32]

    source§

    fn from(value: AuthorId) -> [u8; 32]

    Converts to this type from the input type.
    ","From","iroh::docs::PeerIdBytes"],["
    §

    impl<T> From<GenericArray<T, UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>, B0>, B0>>> for [T; 32]

    §

    fn from(\n sel: GenericArray<T, UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>, B0>, B0>>\n) -> [T; 32]

    Converts to this type from the input type.
    ","From, B0>, B0>, B0>, B0>, B0>>>","iroh::docs::PeerIdBytes"],["
    source§

    impl From<Hash> for [u8; 32]

    source§

    fn from(value: Hash) -> [u8; 32]

    Converts to this type from the input type.
    ","From","iroh::docs::PeerIdBytes"],["
    §

    impl From<Hash> for [u8; 32]

    §

    fn from(hash: Hash) -> [u8; 32]

    Converts to this type from the input type.
    ","From","iroh::docs::PeerIdBytes"],["
    §

    impl<const N: usize, const UPPERCASE: bool> From<HexOrBin<N, UPPERCASE>> for [u8; N]

    §

    fn from(hex_or_bin: HexOrBin<N, UPPERCASE>) -> [u8; N]

    Converts to this type from the input type.
    ","From>","iroh::docs::PeerIdBytes"],["
    §

    impl From<MacAddr> for [u8; 6]

    §

    fn from(addr: MacAddr) -> [u8; 6]

    Converts to this type from the input type.
    ","From","iroh::docs::PeerIdBytes"],["
    source§

    impl From<NamespaceId> for [u8; 32]

    source§

    fn from(value: NamespaceId) -> [u8; 32]

    Converts to this type from the input type.
    ","From","iroh::docs::PeerIdBytes"],["
    §

    impl From<Signature> for [u8; 64]

    §

    fn from(sig: Signature) -> [u8; 64]

    Converts to this type from the input type.
    ","From","iroh::docs::PeerIdBytes"],["
    source§

    impl<T, const N: usize> From<Simd<T, N>> for [T; N]

    source§

    fn from(vector: Simd<T, N>) -> [T; N]

    Converts to this type from the input type.
    ","From>","iroh::docs::PeerIdBytes"],["
    §

    impl<const N: usize, T> FromBytes for [T; N]
    where\n T: FromBytes,

    §

    fn ref_from(bytes: &[u8]) -> Option<&Self>
    where\n Self: Sized,

    Interprets the given bytes as a &Self without copying. Read more
    §

    fn ref_from_prefix(bytes: &[u8]) -> Option<&Self>
    where\n Self: Sized,

    Interprets the prefix of the given bytes as a &Self without copying. Read more
    §

    fn ref_from_suffix(bytes: &[u8]) -> Option<&Self>
    where\n Self: Sized,

    Interprets the suffix of the given bytes as a &Self without copying. Read more
    §

    fn slice_from(bytes: &[u8]) -> Option<&[Self]>
    where\n Self: Sized,

    Interprets the given bytes as a &[Self] without copying. Read more
    §

    fn slice_from_prefix(bytes: &[u8], count: usize) -> Option<(&[Self], &[u8])>
    where\n Self: Sized,

    Interprets the prefix of the given bytes as a &[Self] with length\nequal to count without copying. Read more
    §

    fn slice_from_suffix(bytes: &[u8], count: usize) -> Option<(&[u8], &[Self])>
    where\n Self: Sized,

    Interprets the suffix of the given bytes as a &[Self] with length\nequal to count without copying. Read more
    §

    fn read_from(bytes: &[u8]) -> Option<Self>
    where\n Self: Sized,

    Reads a copy of Self from bytes. Read more
    §

    fn read_from_prefix(bytes: &[u8]) -> Option<Self>
    where\n Self: Sized,

    Reads a copy of Self from the prefix of bytes. Read more
    §

    fn read_from_suffix(bytes: &[u8]) -> Option<Self>
    where\n Self: Sized,

    Reads a copy of Self from the suffix of bytes. Read more
    ","FromBytes","iroh::docs::PeerIdBytes"],["
    source§

    impl FromHex for [u8; 32]

    §

    type Error = FromHexError

    source§

    fn from_hex<T>(hex: T) -> Result<[u8; 32], <[u8; 32] as FromHex>::Error>
    where\n T: AsRef<[u8]>,

    Creates an instance of type Self from the given hex string, or fails\nwith a custom error type. Read more
    ","FromHex","iroh::docs::PeerIdBytes"],["
    §

    impl<const N: usize, T> FromZeroes for [T; N]
    where\n T: FromZeroes,

    §

    fn zero(&mut self)

    Overwrites self with zeroes. Read more
    §

    fn new_zeroed() -> Self
    where\n Self: Sized,

    Creates an instance of Self from zeroed bytes. Read more
    ","FromZeroes","iroh::docs::PeerIdBytes"],["
    §

    impl<T> Hash for [T; 32]
    where\n T: Hash,

    §

    fn hash<H>(&self, state: &mut H)
    where\n H: Hasher,

    Feeds this value into the given Hasher.
    §

    fn hash_slice<H>(data: &[Self], state: &mut H)
    where\n H: Hasher,\n Self: Sized,

    Feeds a slice of this type into the given Hasher.
    ","Hash","iroh::docs::PeerIdBytes"],["
    1.0.0 · source§

    impl<T, const N: usize> Hash for [T; N]
    where\n T: Hash,

    The hash of an array is the same as that of the corresponding slice,\nas required by the Borrow implementation.

    \n\n
    use std::hash::BuildHasher;\n\nlet b = std::hash::RandomState::new();\nlet a: [u8; 3] = [0xa8, 0x3c, 0x09];\nlet s: &[u8] = &[0xa8, 0x3c, 0x09];\nassert_eq!(b.hash_one(a), b.hash_one(s));
    \n
    source§

    fn hash<H>(&self, state: &mut H)
    where\n H: Hasher,

    Feeds this value into the given Hasher. Read more
    1.3.0 · source§

    fn hash_slice<H>(data: &[Self], state: &mut H)
    where\n H: Hasher,\n Self: Sized,

    Feeds a slice of this type into the given Hasher. Read more
    ","Hash","iroh::docs::PeerIdBytes"],["
    1.50.0 · source§

    impl<T, I, const N: usize> Index<I> for [T; N]
    where\n [T]: Index<I>,

    §

    type Output = <[T] as Index<I>>::Output

    The returned type after indexing.
    source§

    fn index(&self, index: I) -> &<[T; N] as Index<I>>::Output

    Performs the indexing (container[index]) operation. Read more
    ","Index","iroh::docs::PeerIdBytes"],["
    1.50.0 · source§

    impl<T, I, const N: usize> IndexMut<I> for [T; N]
    where\n [T]: IndexMut<I>,

    source§

    fn index_mut(&mut self, index: I) -> &mut <[T; N] as Index<I>>::Output

    Performs the mutable indexing (container[index]) operation. Read more
    ","IndexMut","iroh::docs::PeerIdBytes"],["
    §

    impl InputLength for [u8; 32]

    §

    fn input_len(&self) -> usize

    Calculates the input length, as indicated by its name,\nand the name of the trait itself
    ","InputLength","iroh::docs::PeerIdBytes"],["
    1.53.0 · source§

    impl<T, const N: usize> IntoIterator for [T; N]

    source§

    fn into_iter(self) -> <[T; N] as IntoIterator>::IntoIter

    Creates a consuming iterator, that is, one that moves each value out of\nthe array (from start to end). The array cannot be used after calling\nthis unless T implements Copy, so the whole array is copied.

    \n

    Arrays have special behavior when calling .into_iter() prior to the\n2021 edition – see the array Editions section for more information.

    \n
    §

    type Item = T

    The type of the elements being iterated over.
    §

    type IntoIter = IntoIter<T, N>

    Which kind of iterator are we turning this into?
    ","IntoIterator","iroh::docs::PeerIdBytes"],["
    §

    impl<const N: usize> IntoResponse for [u8; N]

    §

    fn into_response(self) -> Response<Body>

    Create a response.
    ","IntoResponse","iroh::docs::PeerIdBytes"],["
    §

    impl<Fut, const N: usize> Join for [Fut; N]
    where\n Fut: IntoFuture,

    §

    type Output = [<Fut as IntoFuture>::Output; N]

    The resulting output type.
    §

    type Future = Join<<Fut as IntoFuture>::IntoFuture, N>

    The Future implementation returned by this method.
    §

    fn join(self) -> <[Fut; N] as Join>::Future

    Waits for multiple futures to complete. Read more
    ","Join","iroh::docs::PeerIdBytes"],["
    §

    impl<const N: usize, T> Key for [T; N]
    where\n T: Key,

    §

    fn compare(data1: &[u8], data2: &[u8]) -> Ordering

    Compare data1 with data2
    ","Key","iroh::docs::PeerIdBytes"],["
    §

    impl<T, const N: usize> MaxSize for [T; N]
    where\n T: MaxSize,

    §

    const POSTCARD_MAX_SIZE: usize = _

    The maximum possible size that the serialization of this\ntype can have, in bytes.
    ","MaxSize","iroh::docs::PeerIdBytes"],["
    §

    impl<S, const N: usize> Merge for [S; N]
    where\n S: IntoStream,

    §

    type Item = <Merge<<S as IntoStream>::IntoStream, N> as Stream>::Item

    The resulting output type.
    §

    type Stream = Merge<<S as IntoStream>::IntoStream, N>

    The stream type.
    §

    fn merge(self) -> <[S; N] as Merge>::Stream

    Combine multiple streams into a single stream.
    ","Merge","iroh::docs::PeerIdBytes"],["
    1.0.0 · source§

    impl<T, const N: usize> Ord for [T; N]
    where\n T: Ord,

    Implements comparison of arrays lexicographically.

    \n
    source§

    fn cmp(&self, other: &[T; N]) -> Ordering

    This method returns an Ordering between self and other. Read more
    1.21.0 · source§

    fn max(self, other: Self) -> Self
    where\n Self: Sized,

    Compares and returns the maximum of two values. Read more
    1.21.0 · source§

    fn min(self, other: Self) -> Self
    where\n Self: Sized,

    Compares and returns the minimum of two values. Read more
    1.50.0 · source§

    fn clamp(self, min: Self, max: Self) -> Self
    where\n Self: Sized + PartialOrd,

    Restrict a value to a certain interval. Read more
    ","Ord","iroh::docs::PeerIdBytes"],["
    1.0.0 · source§

    impl<T, U, const N: usize> PartialEq<&[U]> for [T; N]
    where\n T: PartialEq<U>,

    source§

    fn eq(&self, other: &&[U]) -> bool

    This method tests for self and other values to be equal, and is used\nby ==.
    source§

    fn ne(&self, other: &&[U]) -> bool

    This method tests for !=. The default implementation is almost always\nsufficient, and should not be overridden without very good reason.
    ","PartialEq<&[U]>","iroh::docs::PeerIdBytes"],["
    1.0.0 · source§

    impl<T, U, const N: usize> PartialEq<&mut [U]> for [T; N]
    where\n T: PartialEq<U>,

    source§

    fn eq(&self, other: &&mut [U]) -> bool

    This method tests for self and other values to be equal, and is used\nby ==.
    source§

    fn ne(&self, other: &&mut [U]) -> bool

    This method tests for !=. The default implementation is almost always\nsufficient, and should not be overridden without very good reason.
    ","PartialEq<&mut [U]>","iroh::docs::PeerIdBytes"],["
    1.0.0 · source§

    impl<T, U, const N: usize> PartialEq<[U]> for [T; N]
    where\n T: PartialEq<U>,

    source§

    fn eq(&self, other: &[U]) -> bool

    This method tests for self and other values to be equal, and is used\nby ==.
    source§

    fn ne(&self, other: &[U]) -> bool

    This method tests for !=. The default implementation is almost always\nsufficient, and should not be overridden without very good reason.
    ","PartialEq<[U]>","iroh::docs::PeerIdBytes"],["
    1.0.0 · source§

    impl<T, U, const N: usize> PartialEq<[U; N]> for [T; N]
    where\n T: PartialEq<U>,

    source§

    fn eq(&self, other: &[U; N]) -> bool

    This method tests for self and other values to be equal, and is used\nby ==.
    source§

    fn ne(&self, other: &[U; N]) -> bool

    This method tests for !=. The default implementation is almost always\nsufficient, and should not be overridden without very good reason.
    ","PartialEq<[U; N]>","iroh::docs::PeerIdBytes"],["
    §

    impl PartialEq<Cookie> for [u8; 4]

    §

    fn eq(&self, other: &Cookie) -> bool

    This method tests for self and other values to be equal, and is used\nby ==.
    1.0.0 · source§

    fn ne(&self, other: &Rhs) -> bool

    This method tests for !=. The default implementation is almost always\nsufficient, and should not be overridden without very good reason.
    ","PartialEq","iroh::docs::PeerIdBytes"],["
    §

    impl<A, B, const N: usize, const M: usize> PartialEq<Vec<A, N>> for [B; M]
    where\n A: PartialEq<B>,

    §

    fn eq(&self, other: &Vec<A, N>) -> bool

    This method tests for self and other values to be equal, and is used\nby ==.
    1.0.0 · source§

    fn ne(&self, other: &Rhs) -> bool

    This method tests for !=. The default implementation is almost always\nsufficient, and should not be overridden without very good reason.
    ","PartialEq>","iroh::docs::PeerIdBytes"],["
    1.0.0 · source§

    impl<T, const N: usize> PartialOrd for [T; N]
    where\n T: PartialOrd,

    Implements comparison of arrays lexicographically.

    \n
    source§

    fn partial_cmp(&self, other: &[T; N]) -> Option<Ordering>

    This method returns an ordering between self and other values if one exists. Read more
    source§

    fn lt(&self, other: &[T; N]) -> bool

    This method tests less than (for self and other) and is used by the < operator. Read more
    source§

    fn le(&self, other: &[T; N]) -> bool

    This method tests less than or equal to (for self and other) and is used by the <=\noperator. Read more
    source§

    fn ge(&self, other: &[T; N]) -> bool

    This method tests greater than or equal to (for self and other) and is used by the >=\noperator. Read more
    source§

    fn gt(&self, other: &[T; N]) -> bool

    This method tests greater than (for self and other) and is used by the > operator. Read more
    ","PartialOrd","iroh::docs::PeerIdBytes"],["
    §

    impl<Fut, const N: usize> Race for [Fut; N]
    where\n Fut: IntoFuture,

    §

    type Output = <Fut as IntoFuture>::Output

    The resulting output type.
    §

    type Future = Race<<Fut as IntoFuture>::IntoFuture, N>

    Which kind of future are we turning this into?
    §

    fn race(self) -> <[Fut; N] as Race>::Future

    Wait for the first future to complete. Read more
    ","Race","iroh::docs::PeerIdBytes"],["
    §

    impl<Fut, T, E, const N: usize> RaceOk for [Fut; N]
    where\n Fut: IntoFuture<Output = Result<T, E>>,

    §

    type Output = T

    The resulting output type.
    §

    type Error = AggregateError<E, N>

    The resulting error type.
    §

    type Future = RaceOk<<Fut as IntoFuture>::IntoFuture, T, E, N>

    Which kind of future are we turning this into?
    §

    fn race_ok(self) -> <[Fut; N] as RaceOk>::Future

    Waits for the first successful future to complete.
    ","RaceOk","iroh::docs::PeerIdBytes"],["
    §

    impl<T, const N: usize> Schema for [T; N]
    where\n T: Schema,

    §

    const SCHEMA: &'static NamedType = _

    A recursive data structure that describes the schema of the given\ntype.
    ","Schema","iroh::docs::PeerIdBytes"],["
    source§

    impl<T> Serialize for [T; 32]
    where\n T: Serialize,

    source§

    fn serialize<S>(\n &self,\n serializer: S\n) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>
    where\n S: Serializer,

    Serialize this value into the given Serde serializer. Read more
    ","Serialize","iroh::docs::PeerIdBytes"],["
    source§

    impl<const N: usize> Serialize for [u8; N]

    source§

    fn serialize<S>(\n &self,\n serializer: S\n) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>
    where\n S: Serializer,

    ","Serialize","iroh::docs::PeerIdBytes"],["
    1.51.0 · source§

    impl<T, const N: usize> SlicePattern for [T; N]

    §

    type Item = T

    🔬This is a nightly-only experimental API. (slice_pattern)
    The element type of the slice being matched on.
    source§

    fn as_slice(&self) -> &[<[T; N] as SlicePattern>::Item]

    🔬This is a nightly-only experimental API. (slice_pattern)
    Currently, the consumers of SlicePattern need a slice.
    ","SlicePattern","iroh::docs::PeerIdBytes"],["
    1.34.0 · source§

    impl<T, const N: usize> TryFrom<&[T]> for [T; N]
    where\n T: Copy,

    Tries to create an array [T; N] by copying from a slice &[T]. Succeeds if\nslice.len() == N.

    \n\n
    let bytes: [u8; 3] = [1, 0, 2];\n\nlet bytes_head: [u8; 2] = <[u8; 2]>::try_from(&bytes[0..2]).unwrap();\nassert_eq!(1, u16::from_le_bytes(bytes_head));\n\nlet bytes_tail: [u8; 2] = bytes[1..3].try_into().unwrap();\nassert_eq!(512, u16::from_le_bytes(bytes_tail));
    \n
    §

    type Error = TryFromSliceError

    The type returned in the event of a conversion error.
    source§

    fn try_from(slice: &[T]) -> Result<[T; N], TryFromSliceError>

    Performs the conversion.
    ","TryFrom<&[T]>","iroh::docs::PeerIdBytes"],["
    1.59.0 · source§

    impl<T, const N: usize> TryFrom<&mut [T]> for [T; N]
    where\n T: Copy,

    Tries to create an array [T; N] by copying from a mutable slice &mut [T].\nSucceeds if slice.len() == N.

    \n\n
    let mut bytes: [u8; 3] = [1, 0, 2];\n\nlet bytes_head: [u8; 2] = <[u8; 2]>::try_from(&mut bytes[0..2]).unwrap();\nassert_eq!(1, u16::from_le_bytes(bytes_head));\n\nlet bytes_tail: [u8; 2] = (&mut bytes[1..3]).try_into().unwrap();\nassert_eq!(512, u16::from_le_bytes(bytes_tail));
    \n
    §

    type Error = TryFromSliceError

    The type returned in the event of a conversion error.
    source§

    fn try_from(slice: &mut [T]) -> Result<[T; N], TryFromSliceError>

    Performs the conversion.
    ","TryFrom<&mut [T]>","iroh::docs::PeerIdBytes"],["
    §

    impl<T, A, const N: usize> TryFrom<Vec<T, A>> for [T; N]
    where\n A: Allocator,

    §

    fn try_from(vec: Vec<T, A>) -> Result<[T; N], Vec<T, A>>

    Gets the entire contents of the Vec<T> as an array,\nif its size exactly matches that of the requested array.

    \n
    §Examples
    \n
    assert_eq!(vec![1, 2, 3].try_into(), Ok([1, 2, 3]));\nassert_eq!(<Vec<i32>>::new().try_into(), Ok([]));
    \n

    If the length doesn’t match, the input comes back in Err:

    \n\n
    let r: Result<[i32; 4], _> = (0..10).collect::<Vec<_>>().try_into();\nassert_eq!(r, Err(vec![0, 1, 2, 3, 4, 5, 6, 7, 8, 9]));
    \n

    If you’re fine with just getting a prefix of the Vec<T>,\nyou can call .truncate(N) first.

    \n\n
    let mut v = String::from(\"hello world\").into_bytes();\nv.sort();\nv.truncate(2);\nlet [a, b]: [_; 2] = v.try_into().unwrap();\nassert_eq!(a, b' ');\nassert_eq!(b, b'd');
    \n
    §

    type Error = Vec<T, A>

    The type returned in the event of a conversion error.
    ","TryFrom>","iroh::docs::PeerIdBytes"],["
    1.48.0 · source§

    impl<T, A, const N: usize> TryFrom<Vec<T, A>> for [T; N]
    where\n A: Allocator,

    source§

    fn try_from(vec: Vec<T, A>) -> Result<[T; N], Vec<T, A>>

    Gets the entire contents of the Vec<T> as an array,\nif its size exactly matches that of the requested array.

    \n
    §Examples
    \n
    assert_eq!(vec![1, 2, 3].try_into(), Ok([1, 2, 3]));\nassert_eq!(<Vec<i32>>::new().try_into(), Ok([]));
    \n

    If the length doesn’t match, the input comes back in Err:

    \n\n
    let r: Result<[i32; 4], _> = (0..10).collect::<Vec<_>>().try_into();\nassert_eq!(r, Err(vec![0, 1, 2, 3, 4, 5, 6, 7, 8, 9]));
    \n

    If you’re fine with just getting a prefix of the Vec<T>,\nyou can call .truncate(N) first.

    \n\n
    let mut v = String::from(\"hello world\").into_bytes();\nv.sort();\nv.truncate(2);\nlet [a, b]: [_; 2] = v.try_into().unwrap();\nassert_eq!(a, b' ');\nassert_eq!(b, b'd');
    \n
    §

    type Error = Vec<T, A>

    The type returned in the event of a conversion error.
    ","TryFrom>","iroh::docs::PeerIdBytes"],["
    §

    impl<Fut, T, E, const N: usize> TryJoin for [Fut; N]
    where\n Fut: IntoFuture<Output = Result<T, E>>,

    §

    type Output = [T; N]

    The resulting output type.
    §

    type Error = E

    The resulting error type.
    §

    type Future = TryJoin<<Fut as IntoFuture>::IntoFuture, T, E, N>

    Which kind of future are we turning this into?
    §

    fn try_join(self) -> <[Fut; N] as TryJoin>::Future

    Waits for multiple futures to complete, either returning when all\nfutures complete successfully, or return early when any future completes\nwith an error.
    ","TryJoin","iroh::docs::PeerIdBytes"],["
    §

    impl<const N: usize, T> Value for [T; N]
    where\n T: Value,

    §

    type SelfType<'a> = [<T as Value>::SelfType<'a>; N]\nwhere\n [T; N]: 'a

    SelfType<’a> must be the same type as Self with all lifetimes replaced with ’a
    §

    type AsBytes<'a> = Vec<u8>\nwhere\n [T; N]: 'a

    §

    fn fixed_width() -> Option<usize>

    Width of a fixed type, or None for variable width
    §

    fn from_bytes<'a>(data: &'a [u8]) -> [<T as Value>::SelfType<'a>; N]
    where\n [T; N]: 'a,

    Deserializes data\nImplementations may return a view over data, or an owned type
    §

    fn as_bytes<'a, 'b>(value: &'a <[T; N] as Value>::SelfType<'b>) -> Vec<u8> ⓘ
    where\n 'b: 'a,\n [T; N]: 'a + 'b,

    Serialize the value to a slice
    §

    fn type_name() -> TypeName

    Globally unique identifier for this type
    ","Value","iroh::docs::PeerIdBytes"],["
    §

    impl<T, const N: usize> ValueOrd for [T; N]
    where\n T: DerOrd,

    §

    fn value_cmp(&self, other: &[T; N]) -> Result<Ordering, Error>

    Return an Ordering between value portion of TLV-encoded self and\nother when serialized as ASN.1 DER.
    ","ValueOrd","iroh::docs::PeerIdBytes"],["
    §

    impl<Z, const N: usize> Zeroize for [Z; N]
    where\n Z: Zeroize,

    Impl [Zeroize] on arrays of types that impl [Zeroize].

    \n
    §

    fn zeroize(&mut self)

    Zero out this object from memory using Rust intrinsics which ensure the\nzeroization operation is not “optimized away” by the compiler.
    ","Zeroize","iroh::docs::PeerIdBytes"],["
    §

    impl<S, const N: usize> Zip for [S; N]
    where\n S: IntoStream,

    §

    type Item = <Zip<<S as IntoStream>::IntoStream, N> as Stream>::Item

    What’s the return type of our stream?
    §

    type Stream = Zip<<S as IntoStream>::IntoStream, N>

    What stream do we return?
    §

    fn zip(self) -> <[S; N] as Zip>::Stream

    Combine multiple streams into a single stream.
    ","Zip","iroh::docs::PeerIdBytes"],["
    source§

    impl<T, const N: usize> ConstParamTy for [T; N]
    where\n T: ConstParamTy,

    ","ConstParamTy","iroh::docs::PeerIdBytes"],["
    1.58.0 · source§

    impl<T, const N: usize> Copy for [T; N]
    where\n T: Copy,

    ","Copy","iroh::docs::PeerIdBytes"],["
    1.0.0 · source§

    impl<T, const N: usize> Eq for [T; N]
    where\n T: Eq,

    ","Eq","iroh::docs::PeerIdBytes"],["
    source§

    impl<T, const N: usize> StructuralPartialEq for [T; N]

    ","StructuralPartialEq","iroh::docs::PeerIdBytes"],["
    §

    impl<const N: usize, T> Unaligned for [T; N]
    where\n T: Unaligned,

    ","Unaligned","iroh::docs::PeerIdBytes"],["
    §

    impl<Z, const N: usize> ZeroizeOnDrop for [Z; N]
    where\n Z: ZeroizeOnDrop,

    Impl [ZeroizeOnDrop] on arrays of types that impl [ZeroizeOnDrop].

    \n
    ","ZeroizeOnDrop","iroh::docs::PeerIdBytes"]], -"iroh_docs":[["
    source§

    impl<T, const N: usize> [T; N]

    1.55.0 · source

    pub fn map<F, U>(self, f: F) -> [U; N]
    where\n F: FnMut(T) -> U,

    Returns an array of the same size as self, with function f applied to each element\nin order.

    \n

    If you don’t necessarily need a new fixed-size array, consider using\nIterator::map instead.

    \n
    §Note on performance and stack usage
    \n

    Unfortunately, usages of this method are currently not always optimized\nas well as they could be. This mainly concerns large arrays, as mapping\nover small arrays seem to be optimized just fine. Also note that in\ndebug mode (i.e. without any optimizations), this method can use a lot\nof stack space (a few times the size of the array or more).

    \n

    Therefore, in performance-critical code, try to avoid using this method\non large arrays or check the emitted code. Also try to avoid chained\nmaps (e.g. arr.map(...).map(...)).

    \n

    In many cases, you can instead use Iterator::map by calling .iter()\nor .into_iter() on your array. [T; N]::map is only necessary if you\nreally need a new array of the same size as the result. Rust’s lazy\niterators tend to get optimized very well.

    \n
    §Examples
    \n
    let x = [1, 2, 3];\nlet y = x.map(|v| v + 1);\nassert_eq!(y, [2, 3, 4]);\n\nlet x = [1, 2, 3];\nlet mut temp = 0;\nlet y = x.map(|v| { temp += 1; v * temp });\nassert_eq!(y, [1, 4, 9]);\n\nlet x = [\"Ferris\", \"Bueller's\", \"Day\", \"Off\"];\nlet y = x.map(|v| v.len());\nassert_eq!(y, [6, 9, 3, 3]);
    \n
    source

    pub fn try_map<F, R>(\n self,\n f: F\n) -> <<R as Try>::Residual as Residual<[<R as Try>::Output; N]>>::TryType
    where\n F: FnMut(T) -> R,\n R: Try,\n <R as Try>::Residual: Residual<[<R as Try>::Output; N]>,

    🔬This is a nightly-only experimental API. (array_try_map)

    A fallible function f applied to each element on array self in order to\nreturn an array the same size as self or the first error encountered.

    \n

    The return type of this function depends on the return type of the closure.\nIf you return Result<T, E> from the closure, you’ll get a Result<[T; N], E>.\nIf you return Option<T> from the closure, you’ll get an Option<[T; N]>.

    \n
    §Examples
    \n
    #![feature(array_try_map)]\n\nlet a = [\"1\", \"2\", \"3\"];\nlet b = a.try_map(|v| v.parse::<u32>()).unwrap().map(|v| v + 1);\nassert_eq!(b, [2, 3, 4]);\n\nlet a = [\"1\", \"2a\", \"3\"];\nlet b = a.try_map(|v| v.parse::<u32>());\nassert!(b.is_err());\n\nuse std::num::NonZero;\n\nlet z = [1, 2, 0, 3, 4];\nassert_eq!(z.try_map(NonZero::new), None);\n\nlet a = [1, 2, 3];\nlet b = a.try_map(NonZero::new);\nlet c = b.map(|x| x.map(NonZero::get));\nassert_eq!(c, Some(a));
    \n
    1.57.0 (const: 1.57.0) · source

    pub const fn as_slice(&self) -> &[T]

    Returns a slice containing the entire array. Equivalent to &s[..].

    \n
    1.57.0 · source

    pub fn as_mut_slice(&mut self) -> &mut [T]

    Returns a mutable slice containing the entire array. Equivalent to\n&mut s[..].

    \n
    1.77.0 · source

    pub fn each_ref(&self) -> [&T; N]

    Borrows each element and returns an array of references with the same\nsize as self.

    \n
    §Example
    \n
    let floats = [3.1, 2.7, -1.0];\nlet float_refs: [&f64; 3] = floats.each_ref();\nassert_eq!(float_refs, [&3.1, &2.7, &-1.0]);
    \n

    This method is particularly useful if combined with other methods, like\nmap. This way, you can avoid moving the original\narray if its elements are not Copy.

    \n\n
    let strings = [\"Ferris\".to_string(), \"♥\".to_string(), \"Rust\".to_string()];\nlet is_ascii = strings.each_ref().map(|s| s.is_ascii());\nassert_eq!(is_ascii, [true, false, true]);\n\n// We can still access the original array: it has not been moved.\nassert_eq!(strings.len(), 3);
    \n
    1.77.0 · source

    pub fn each_mut(&mut self) -> [&mut T; N]

    Borrows each element mutably and returns an array of mutable references\nwith the same size as self.

    \n
    §Example
    \n
    \nlet mut floats = [3.1, 2.7, -1.0];\nlet float_refs: [&mut f64; 3] = floats.each_mut();\n*float_refs[0] = 0.0;\nassert_eq!(float_refs, [&mut 0.0, &mut 2.7, &mut -1.0]);\nassert_eq!(floats, [0.0, 2.7, -1.0]);
    \n
    source

    pub fn split_array_ref<const M: usize>(&self) -> (&[T; M], &[T])

    🔬This is a nightly-only experimental API. (split_array)

    Divides one array reference into two at an index.

    \n

    The first will contain all indices from [0, M) (excluding\nthe index M itself) and the second will contain all\nindices from [M, N) (excluding the index N itself).

    \n
    §Panics
    \n

    Panics if M > N.

    \n
    §Examples
    \n
    #![feature(split_array)]\n\nlet v = [1, 2, 3, 4, 5, 6];\n\n{\n   let (left, right) = v.split_array_ref::<0>();\n   assert_eq!(left, &[]);\n   assert_eq!(right, &[1, 2, 3, 4, 5, 6]);\n}\n\n{\n    let (left, right) = v.split_array_ref::<2>();\n    assert_eq!(left, &[1, 2]);\n    assert_eq!(right, &[3, 4, 5, 6]);\n}\n\n{\n    let (left, right) = v.split_array_ref::<6>();\n    assert_eq!(left, &[1, 2, 3, 4, 5, 6]);\n    assert_eq!(right, &[]);\n}
    \n
    source

    pub fn split_array_mut<const M: usize>(&mut self) -> (&mut [T; M], &mut [T])

    🔬This is a nightly-only experimental API. (split_array)

    Divides one mutable array reference into two at an index.

    \n

    The first will contain all indices from [0, M) (excluding\nthe index M itself) and the second will contain all\nindices from [M, N) (excluding the index N itself).

    \n
    §Panics
    \n

    Panics if M > N.

    \n
    §Examples
    \n
    #![feature(split_array)]\n\nlet mut v = [1, 0, 3, 0, 5, 6];\nlet (left, right) = v.split_array_mut::<2>();\nassert_eq!(left, &mut [1, 0][..]);\nassert_eq!(right, &mut [3, 0, 5, 6]);\nleft[1] = 2;\nright[1] = 4;\nassert_eq!(v, [1, 2, 3, 4, 5, 6]);
    \n
    source

    pub fn rsplit_array_ref<const M: usize>(&self) -> (&[T], &[T; M])

    🔬This is a nightly-only experimental API. (split_array)

    Divides one array reference into two at an index from the end.

    \n

    The first will contain all indices from [0, N - M) (excluding\nthe index N - M itself) and the second will contain all\nindices from [N - M, N) (excluding the index N itself).

    \n
    §Panics
    \n

    Panics if M > N.

    \n
    §Examples
    \n
    #![feature(split_array)]\n\nlet v = [1, 2, 3, 4, 5, 6];\n\n{\n   let (left, right) = v.rsplit_array_ref::<0>();\n   assert_eq!(left, &[1, 2, 3, 4, 5, 6]);\n   assert_eq!(right, &[]);\n}\n\n{\n    let (left, right) = v.rsplit_array_ref::<2>();\n    assert_eq!(left, &[1, 2, 3, 4]);\n    assert_eq!(right, &[5, 6]);\n}\n\n{\n    let (left, right) = v.rsplit_array_ref::<6>();\n    assert_eq!(left, &[]);\n    assert_eq!(right, &[1, 2, 3, 4, 5, 6]);\n}
    \n
    source

    pub fn rsplit_array_mut<const M: usize>(&mut self) -> (&mut [T], &mut [T; M])

    🔬This is a nightly-only experimental API. (split_array)

    Divides one mutable array reference into two at an index from the end.

    \n

    The first will contain all indices from [0, N - M) (excluding\nthe index N - M itself) and the second will contain all\nindices from [N - M, N) (excluding the index N itself).

    \n
    §Panics
    \n

    Panics if M > N.

    \n
    §Examples
    \n
    #![feature(split_array)]\n\nlet mut v = [1, 0, 3, 0, 5, 6];\nlet (left, right) = v.rsplit_array_mut::<4>();\nassert_eq!(left, &mut [1, 0]);\nassert_eq!(right, &mut [3, 0, 5, 6][..]);\nleft[1] = 2;\nright[1] = 4;\nassert_eq!(v, [1, 2, 3, 4, 5, 6]);
    \n
    ",0,"iroh_docs::sync::PeerIdBytes"],["
    source§

    impl<const N: usize> [u8; N]

    source

    pub const fn as_ascii(&self) -> Option<&[AsciiChar; N]>

    🔬This is a nightly-only experimental API. (ascii_char)

    Converts this array of bytes into a array of ASCII characters,\nor returns None if any of the characters is non-ASCII.

    \n
    §Examples
    \n
    #![feature(ascii_char)]\n#![feature(const_option)]\n\nconst HEX_DIGITS: [std::ascii::Char; 16] =\n    *b\"0123456789abcdef\".as_ascii().unwrap();\n\nassert_eq!(HEX_DIGITS[1].as_str(), \"1\");\nassert_eq!(HEX_DIGITS[10].as_str(), \"a\");
    \n
    source

    pub const unsafe fn as_ascii_unchecked(&self) -> &[AsciiChar; N]

    🔬This is a nightly-only experimental API. (ascii_char)

    Converts this array of bytes into a array of ASCII characters,\nwithout checking whether they’re valid.

    \n
    §Safety
    \n

    Every byte in the array must be in 0..=127, or else this is UB.

    \n
    ",0,"iroh_docs::sync::PeerIdBytes"],["
    §

    impl<T> Array for [T; 32]
    where\n T: Default,

    §

    type Item = T

    The type of the items in the thing.
    §

    const CAPACITY: usize = 32usize

    The number of slots in the thing.
    §

    fn as_slice(&self) -> &[T]

    Gives a shared slice over the whole thing. Read more
    §

    fn as_slice_mut(&mut self) -> &mut [T]

    Gives a unique slice over the whole thing. Read more
    §

    fn default() -> [T; 32]

    Create a default-initialized instance of ourself, similar to the\nDefault trait, but implemented for the same range of sizes as\n[Array].
    ","Array","iroh_docs::sync::PeerIdBytes"],["
    §

    impl<T, const N: usize> Array for [T; N]

    §

    type Item = T

    The type of the array’s elements.
    §

    fn size() -> usize

    Returns the number of items the array can hold.
    ","Array","iroh_docs::sync::PeerIdBytes"],["
    §

    impl<const N: usize, T> AsBytes for [T; N]
    where\n T: AsBytes,

    §

    fn as_bytes(&self) -> &[u8] ⓘ

    Gets the bytes of this value. Read more
    §

    fn write_to(&self, bytes: &mut [u8]) -> Option<()>

    Writes a copy of self to bytes. Read more
    §

    fn write_to_prefix(&self, bytes: &mut [u8]) -> Option<()>

    Writes a copy of self to the prefix of bytes. Read more
    §

    fn write_to_suffix(&self, bytes: &mut [u8]) -> Option<()>

    Writes a copy of self to the suffix of bytes. Read more
    ","AsBytes","iroh_docs::sync::PeerIdBytes"],["
    §

    impl AsBytes for [u8; 32]

    §

    fn as_bytes(&self) -> &[u8] ⓘ

    Casts the input type to a byte slice
    ","AsBytes","iroh_docs::sync::PeerIdBytes"],["
    1.0.0 · source§

    impl<T, const N: usize> AsMut<[T]> for [T; N]

    source§

    fn as_mut(&mut self) -> &mut [T]

    Converts this type into a mutable reference of the (usually inferred) input type.
    ","AsMut<[T]>","iroh_docs::sync::PeerIdBytes"],["
    1.0.0 · source§

    impl<T, const N: usize> AsRef<[T]> for [T; N]

    source§

    fn as_ref(&self) -> &[T]

    Converts this type into a shared reference of the (usually inferred) input type.
    ","AsRef<[T]>","iroh_docs::sync::PeerIdBytes"],["
    §

    impl<T, const N: usize> BitView for [T; N]
    where\n T: BitStore,

    Note that overly-large arrays may cause the conversions to fail.

    \n
    §

    type Store = T

    The underlying element type.
    §

    fn view_bits<O>(&self) -> &BitSlice<T, O>
    where\n O: BitOrder,

    Views a memory region as an immutable bit-slice.
    §

    fn try_view_bits<O>(&self) -> Result<&BitSlice<T, O>, BitSpanError<T>>
    where\n O: BitOrder,

    Attempts to view a memory region as an immutable bit-slice. Read more
    §

    fn view_bits_mut<O>(&mut self) -> &mut BitSlice<T, O>
    where\n O: BitOrder,

    Views a memory region as a mutable bit-slice.
    §

    fn try_view_bits_mut<O>(\n &mut self\n) -> Result<&mut BitSlice<T, O>, BitSpanError<T>>
    where\n O: BitOrder,

    Attempts to view a memory region as a mutable bit-slice. Read more
    ","BitView","iroh_docs::sync::PeerIdBytes"],["
    §

    impl<T, const N: usize> BitViewSized for [T; N]
    where\n T: BitStore,

    §

    const ZERO: [T; N] = _

    The zero constant.
    §

    fn as_raw_slice(&self) -> &[<[T; N] as BitView>::Store]

    Views the type as a slice of its elements.
    §

    fn as_raw_mut_slice(&mut self) -> &mut [<[T; N] as BitView>::Store]

    Views the type as a mutable slice of its elements.
    §

    fn into_bitarray<O>(self) -> BitArray<Self, O>
    where\n O: BitOrder,

    Wraps self in a BitArray.
    ","BitViewSized","iroh_docs::sync::PeerIdBytes"],["
    1.4.0 · source§

    impl<T, const N: usize> Borrow<[T]> for [T; N]

    source§

    fn borrow(&self) -> &[T]

    Immutably borrows from an owned value. Read more
    ","Borrow<[T]>","iroh_docs::sync::PeerIdBytes"],["
    1.4.0 · source§

    impl<T, const N: usize> BorrowMut<[T]> for [T; N]

    source§

    fn borrow_mut(&mut self) -> &mut [T]

    Mutably borrows from an owned value. Read more
    ","BorrowMut<[T]>","iroh_docs::sync::PeerIdBytes"],["
    §

    impl<S, const N: usize> Chain for [S; N]
    where\n S: Stream,

    §

    type Item = <S as Stream>::Item

    What’s the return type of our stream?
    §

    type Stream = Chain<S, N>

    What stream do we return?
    §

    fn chain(self) -> <[S; N] as Chain>::Stream

    Combine multiple streams into a single stream.
    ","Chain","iroh_docs::sync::PeerIdBytes"],["
    1.58.0 · source§

    impl<T, const N: usize> Clone for [T; N]
    where\n T: Clone,

    source§

    fn clone(&self) -> [T; N]

    Returns a copy of the value. Read more
    source§

    fn clone_from(&mut self, other: &[T; N])

    Performs copy-assignment from source. Read more
    ","Clone","iroh_docs::sync::PeerIdBytes"],["
    1.0.0 · source§

    impl<T, const N: usize> Debug for [T; N]
    where\n T: Debug,

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more
    ","Debug","iroh_docs::sync::PeerIdBytes"],["
    §

    impl<const N: usize> Decode for [u8; N]

    Decodes a byte array from byte[n] as described in RFC4251 § 5:

    \n
    \n

    A byte represents an arbitrary 8-bit value (octet). Fixed length\ndata is sometimes represented as an array of bytes, written\nbyte[n], where n is the number of bytes in the array.

    \n
    \n
    §

    type Error = Error

    Type returned in the event of a decoding error.
    §

    fn decode(reader: &mut impl Reader) -> Result<[u8; N], Error>

    Attempt to decode a value of this type using the provided [Reader].
    ","Decode","iroh_docs::sync::PeerIdBytes"],["
    §

    impl<'a, T, const N: usize> DecodeValue<'a> for [T; N]
    where\n T: Decode<'a>,

    §

    fn decode_value<R>(reader: &mut R, header: Header) -> Result<[T; N], Error>
    where\n R: Reader<'a>,

    Attempt to decode this message using the provided [Reader].
    ","DecodeValue<'a>","iroh_docs::sync::PeerIdBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 32]
    where\n T: Default,

    source§

    fn default() -> [T; 32]

    Returns the “default value” for a type. Read more
    ","Default","iroh_docs::sync::PeerIdBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 31]
    where\n T: Default,

    source§

    fn default() -> [T; 31]

    Returns the “default value” for a type. Read more
    ","Default","iroh_docs::sync::PeerIdBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 30]
    where\n T: Default,

    source§

    fn default() -> [T; 30]

    Returns the “default value” for a type. Read more
    ","Default","iroh_docs::sync::PeerIdBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 29]
    where\n T: Default,

    source§

    fn default() -> [T; 29]

    Returns the “default value” for a type. Read more
    ","Default","iroh_docs::sync::PeerIdBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 28]
    where\n T: Default,

    source§

    fn default() -> [T; 28]

    Returns the “default value” for a type. Read more
    ","Default","iroh_docs::sync::PeerIdBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 27]
    where\n T: Default,

    source§

    fn default() -> [T; 27]

    Returns the “default value” for a type. Read more
    ","Default","iroh_docs::sync::PeerIdBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 26]
    where\n T: Default,

    source§

    fn default() -> [T; 26]

    Returns the “default value” for a type. Read more
    ","Default","iroh_docs::sync::PeerIdBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 25]
    where\n T: Default,

    source§

    fn default() -> [T; 25]

    Returns the “default value” for a type. Read more
    ","Default","iroh_docs::sync::PeerIdBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 24]
    where\n T: Default,

    source§

    fn default() -> [T; 24]

    Returns the “default value” for a type. Read more
    ","Default","iroh_docs::sync::PeerIdBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 23]
    where\n T: Default,

    source§

    fn default() -> [T; 23]

    Returns the “default value” for a type. Read more
    ","Default","iroh_docs::sync::PeerIdBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 22]
    where\n T: Default,

    source§

    fn default() -> [T; 22]

    Returns the “default value” for a type. Read more
    ","Default","iroh_docs::sync::PeerIdBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 21]
    where\n T: Default,

    source§

    fn default() -> [T; 21]

    Returns the “default value” for a type. Read more
    ","Default","iroh_docs::sync::PeerIdBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 20]
    where\n T: Default,

    source§

    fn default() -> [T; 20]

    Returns the “default value” for a type. Read more
    ","Default","iroh_docs::sync::PeerIdBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 19]
    where\n T: Default,

    source§

    fn default() -> [T; 19]

    Returns the “default value” for a type. Read more
    ","Default","iroh_docs::sync::PeerIdBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 18]
    where\n T: Default,

    source§

    fn default() -> [T; 18]

    Returns the “default value” for a type. Read more
    ","Default","iroh_docs::sync::PeerIdBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 17]
    where\n T: Default,

    source§

    fn default() -> [T; 17]

    Returns the “default value” for a type. Read more
    ","Default","iroh_docs::sync::PeerIdBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 16]
    where\n T: Default,

    source§

    fn default() -> [T; 16]

    Returns the “default value” for a type. Read more
    ","Default","iroh_docs::sync::PeerIdBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 15]
    where\n T: Default,

    source§

    fn default() -> [T; 15]

    Returns the “default value” for a type. Read more
    ","Default","iroh_docs::sync::PeerIdBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 14]
    where\n T: Default,

    source§

    fn default() -> [T; 14]

    Returns the “default value” for a type. Read more
    ","Default","iroh_docs::sync::PeerIdBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 13]
    where\n T: Default,

    source§

    fn default() -> [T; 13]

    Returns the “default value” for a type. Read more
    ","Default","iroh_docs::sync::PeerIdBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 12]
    where\n T: Default,

    source§

    fn default() -> [T; 12]

    Returns the “default value” for a type. Read more
    ","Default","iroh_docs::sync::PeerIdBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 11]
    where\n T: Default,

    source§

    fn default() -> [T; 11]

    Returns the “default value” for a type. Read more
    ","Default","iroh_docs::sync::PeerIdBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 10]
    where\n T: Default,

    source§

    fn default() -> [T; 10]

    Returns the “default value” for a type. Read more
    ","Default","iroh_docs::sync::PeerIdBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 9]
    where\n T: Default,

    source§

    fn default() -> [T; 9]

    Returns the “default value” for a type. Read more
    ","Default","iroh_docs::sync::PeerIdBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 8]
    where\n T: Default,

    source§

    fn default() -> [T; 8]

    Returns the “default value” for a type. Read more
    ","Default","iroh_docs::sync::PeerIdBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 7]
    where\n T: Default,

    source§

    fn default() -> [T; 7]

    Returns the “default value” for a type. Read more
    ","Default","iroh_docs::sync::PeerIdBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 6]
    where\n T: Default,

    source§

    fn default() -> [T; 6]

    Returns the “default value” for a type. Read more
    ","Default","iroh_docs::sync::PeerIdBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 5]
    where\n T: Default,

    source§

    fn default() -> [T; 5]

    Returns the “default value” for a type. Read more
    ","Default","iroh_docs::sync::PeerIdBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 4]
    where\n T: Default,

    source§

    fn default() -> [T; 4]

    Returns the “default value” for a type. Read more
    ","Default","iroh_docs::sync::PeerIdBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 3]
    where\n T: Default,

    source§

    fn default() -> [T; 3]

    Returns the “default value” for a type. Read more
    ","Default","iroh_docs::sync::PeerIdBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 2]
    where\n T: Default,

    source§

    fn default() -> [T; 2]

    Returns the “default value” for a type. Read more
    ","Default","iroh_docs::sync::PeerIdBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 1]
    where\n T: Default,

    source§

    fn default() -> [T; 1]

    Returns the “default value” for a type. Read more
    ","Default","iroh_docs::sync::PeerIdBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 0]

    source§

    fn default() -> [T; 0]

    Returns the “default value” for a type. Read more
    ","Default","iroh_docs::sync::PeerIdBytes"],["
    source§

    impl<'de, T> Deserialize<'de> for [T; 32]
    where\n T: Deserialize<'de>,

    source§

    fn deserialize<D>(\n deserializer: D\n) -> Result<[T; 32], <D as Deserializer<'de>>::Error>
    where\n D: Deserializer<'de>,

    Deserialize this value from the given Serde deserializer. Read more
    ","Deserialize<'de>","iroh_docs::sync::PeerIdBytes"],["
    source§

    impl<'de, const N: usize> Deserialize<'de> for [u8; N]

    source§

    fn deserialize<D>(\n deserializer: D\n) -> Result<[u8; N], <D as Deserializer<'de>>::Error>
    where\n D: Deserializer<'de>,

    ","Deserialize<'de>","iroh_docs::sync::PeerIdBytes"],["
    §

    impl<const N: usize> Encode for [u8; N]

    Encodes [u8; N] into byte[n] as described in RFC4251 § 5:

    \n
    \n

    A byte represents an arbitrary 8-bit value (octet). Fixed length\ndata is sometimes represented as an array of bytes, written\nbyte[n], where n is the number of bytes in the array.

    \n
    \n
    §

    fn encoded_len(&self) -> Result<usize, Error>

    Get the length of this type encoded in bytes, prior to Base64 encoding.
    §

    fn encode(&self, writer: &mut impl Writer) -> Result<(), Error>

    Encode this value using the provided [Writer].
    §

    fn encoded_len_prefixed(&self) -> Result<usize, Error>

    Return the length of this type after encoding when prepended with a\nuint32 length prefix.
    §

    fn encode_prefixed(&self, writer: &mut impl Writer) -> Result<(), Error>

    Encode this value, first prepending a uint32 length prefix\nset to [Encode::encoded_len].
    ","Encode","iroh_docs::sync::PeerIdBytes"],["
    §

    impl<T, const N: usize> EncodeLabelSet for [T; N]
    where\n T: EncodeLabel,

    §

    fn encode(&self, encoder: LabelSetEncoder<'_>) -> Result<(), Error>

    Encode oneself into the given encoder.
    ","EncodeLabelSet","iroh_docs::sync::PeerIdBytes"],["
    §

    impl<T, const N: usize> EncodeValue for [T; N]
    where\n T: Encode,

    §

    fn value_len(&self) -> Result<Length, Error>

    Compute the length of this value (sans [Tag]+[Length] header) when\nencoded as ASN.1 DER.
    §

    fn encode_value(&self, writer: &mut impl Writer) -> Result<(), Error>

    Encode value (sans [Tag]+[Length] header) as ASN.1 DER using the\nprovided [Writer].
    §

    fn header(&self) -> Result<Header, Error>
    where\n Self: Tagged,

    Get the [Header] used to encode this value.
    ","EncodeValue","iroh_docs::sync::PeerIdBytes"],["
    source§

    impl<T> Fill for [T; 32]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh_docs::sync::PeerIdBytes"],["
    source§

    impl<T> Fill for [T; 31]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh_docs::sync::PeerIdBytes"],["
    source§

    impl<T> Fill for [T; 30]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh_docs::sync::PeerIdBytes"],["
    source§

    impl<T> Fill for [T; 29]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh_docs::sync::PeerIdBytes"],["
    source§

    impl<T> Fill for [T; 28]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh_docs::sync::PeerIdBytes"],["
    source§

    impl<T> Fill for [T; 27]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh_docs::sync::PeerIdBytes"],["
    source§

    impl<T> Fill for [T; 26]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh_docs::sync::PeerIdBytes"],["
    source§

    impl<T> Fill for [T; 25]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh_docs::sync::PeerIdBytes"],["
    source§

    impl<T> Fill for [T; 24]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh_docs::sync::PeerIdBytes"],["
    source§

    impl<T> Fill for [T; 23]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh_docs::sync::PeerIdBytes"],["
    source§

    impl<T> Fill for [T; 22]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh_docs::sync::PeerIdBytes"],["
    source§

    impl<T> Fill for [T; 21]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh_docs::sync::PeerIdBytes"],["
    source§

    impl<T> Fill for [T; 20]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh_docs::sync::PeerIdBytes"],["
    source§

    impl<T> Fill for [T; 19]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh_docs::sync::PeerIdBytes"],["
    source§

    impl<T> Fill for [T; 18]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh_docs::sync::PeerIdBytes"],["
    source§

    impl<T> Fill for [T; 17]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh_docs::sync::PeerIdBytes"],["
    source§

    impl<T> Fill for [T; 16]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh_docs::sync::PeerIdBytes"],["
    source§

    impl<T> Fill for [T; 15]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh_docs::sync::PeerIdBytes"],["
    source§

    impl<T> Fill for [T; 14]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh_docs::sync::PeerIdBytes"],["
    source§

    impl<T> Fill for [T; 13]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh_docs::sync::PeerIdBytes"],["
    source§

    impl<T> Fill for [T; 12]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh_docs::sync::PeerIdBytes"],["
    source§

    impl<T> Fill for [T; 11]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh_docs::sync::PeerIdBytes"],["
    source§

    impl<T> Fill for [T; 10]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh_docs::sync::PeerIdBytes"],["
    source§

    impl<T> Fill for [T; 9]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh_docs::sync::PeerIdBytes"],["
    source§

    impl<T> Fill for [T; 8]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh_docs::sync::PeerIdBytes"],["
    source§

    impl<T> Fill for [T; 7]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh_docs::sync::PeerIdBytes"],["
    source§

    impl<T> Fill for [T; 6]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh_docs::sync::PeerIdBytes"],["
    source§

    impl<T> Fill for [T; 5]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh_docs::sync::PeerIdBytes"],["
    source§

    impl<T> Fill for [T; 4]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh_docs::sync::PeerIdBytes"],["
    source§

    impl<T> Fill for [T; 3]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh_docs::sync::PeerIdBytes"],["
    source§

    impl<T> Fill for [T; 2]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh_docs::sync::PeerIdBytes"],["
    source§

    impl<T> Fill for [T; 1]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh_docs::sync::PeerIdBytes"],["
    source§

    impl<T> Fill for [T; 0]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh_docs::sync::PeerIdBytes"],["
    source§

    impl<T> Fill for [T; 2048]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh_docs::sync::PeerIdBytes"],["
    source§

    impl<T> Fill for [T; 1024]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh_docs::sync::PeerIdBytes"],["
    source§

    impl<T> Fill for [T; 512]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh_docs::sync::PeerIdBytes"],["
    source§

    impl<T> Fill for [T; 256]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh_docs::sync::PeerIdBytes"],["
    source§

    impl<T> Fill for [T; 128]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh_docs::sync::PeerIdBytes"],["
    source§

    impl<T> Fill for [T; 64]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh_docs::sync::PeerIdBytes"],["
    §

    impl<'a> FindToken<&'a u8> for [u8; 32]

    §

    fn find_token(&self, token: &u8) -> bool

    Returns true if self contains the token
    ","FindToken<&'a u8>","iroh_docs::sync::PeerIdBytes"],["
    §

    impl FindToken<u8> for [u8; 32]

    §

    fn find_token(&self, token: u8) -> bool

    Returns true if self contains the token
    ","FindToken","iroh_docs::sync::PeerIdBytes"],["
    §

    impl<T, const N: usize> FixedTag for [T; N]

    §

    const TAG: Tag = Tag::Sequence

    ASN.1 tag
    ","FixedTag","iroh_docs::sync::PeerIdBytes"],["
    §

    impl From<&Signature> for [u8; 64]

    §

    fn from(sig: &Signature) -> [u8; 64]

    Converts to this type from the input type.
    ","From<&Signature>","iroh_docs::sync::PeerIdBytes"],["
    source§

    impl From<AuthorId> for [u8; 32]

    source§

    fn from(value: AuthorId) -> Self

    Converts to this type from the input type.
    ","From","iroh_docs::sync::PeerIdBytes"],["
    §

    impl<T> From<GenericArray<T, UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>, B0>, B0>>> for [T; 32]

    §

    fn from(\n sel: GenericArray<T, UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>, B0>, B0>>\n) -> [T; 32]

    Converts to this type from the input type.
    ","From, B0>, B0>, B0>, B0>, B0>>>","iroh_docs::sync::PeerIdBytes"],["
    source§

    impl From<Hash> for [u8; 32]

    source§

    fn from(value: Hash) -> [u8; 32]

    Converts to this type from the input type.
    ","From","iroh_docs::sync::PeerIdBytes"],["
    §

    impl From<Hash> for [u8; 32]

    §

    fn from(hash: Hash) -> [u8; 32]

    Converts to this type from the input type.
    ","From","iroh_docs::sync::PeerIdBytes"],["
    §

    impl<const N: usize, const UPPERCASE: bool> From<HexOrBin<N, UPPERCASE>> for [u8; N]

    §

    fn from(hex_or_bin: HexOrBin<N, UPPERCASE>) -> [u8; N]

    Converts to this type from the input type.
    ","From>","iroh_docs::sync::PeerIdBytes"],["
    §

    impl From<MacAddr> for [u8; 6]

    §

    fn from(addr: MacAddr) -> [u8; 6]

    Converts to this type from the input type.
    ","From","iroh_docs::sync::PeerIdBytes"],["
    source§

    impl From<NamespaceId> for [u8; 32]

    source§

    fn from(value: NamespaceId) -> Self

    Converts to this type from the input type.
    ","From","iroh_docs::sync::PeerIdBytes"],["
    §

    impl From<Signature> for [u8; 64]

    §

    fn from(sig: Signature) -> [u8; 64]

    Converts to this type from the input type.
    ","From","iroh_docs::sync::PeerIdBytes"],["
    source§

    impl<T, const N: usize> From<Simd<T, N>> for [T; N]

    source§

    fn from(vector: Simd<T, N>) -> [T; N]

    Converts to this type from the input type.
    ","From>","iroh_docs::sync::PeerIdBytes"],["
    §

    impl<const N: usize, T> FromBytes for [T; N]
    where\n T: FromBytes,

    §

    fn ref_from(bytes: &[u8]) -> Option<&Self>
    where\n Self: Sized,

    Interprets the given bytes as a &Self without copying. Read more
    §

    fn ref_from_prefix(bytes: &[u8]) -> Option<&Self>
    where\n Self: Sized,

    Interprets the prefix of the given bytes as a &Self without copying. Read more
    §

    fn ref_from_suffix(bytes: &[u8]) -> Option<&Self>
    where\n Self: Sized,

    Interprets the suffix of the given bytes as a &Self without copying. Read more
    §

    fn slice_from(bytes: &[u8]) -> Option<&[Self]>
    where\n Self: Sized,

    Interprets the given bytes as a &[Self] without copying. Read more
    §

    fn slice_from_prefix(bytes: &[u8], count: usize) -> Option<(&[Self], &[u8])>
    where\n Self: Sized,

    Interprets the prefix of the given bytes as a &[Self] with length\nequal to count without copying. Read more
    §

    fn slice_from_suffix(bytes: &[u8], count: usize) -> Option<(&[u8], &[Self])>
    where\n Self: Sized,

    Interprets the suffix of the given bytes as a &[Self] with length\nequal to count without copying. Read more
    §

    fn read_from(bytes: &[u8]) -> Option<Self>
    where\n Self: Sized,

    Reads a copy of Self from bytes. Read more
    §

    fn read_from_prefix(bytes: &[u8]) -> Option<Self>
    where\n Self: Sized,

    Reads a copy of Self from the prefix of bytes. Read more
    §

    fn read_from_suffix(bytes: &[u8]) -> Option<Self>
    where\n Self: Sized,

    Reads a copy of Self from the suffix of bytes. Read more
    ","FromBytes","iroh_docs::sync::PeerIdBytes"],["
    source§

    impl FromHex for [u8; 32]

    §

    type Error = FromHexError

    source§

    fn from_hex<T>(hex: T) -> Result<[u8; 32], <[u8; 32] as FromHex>::Error>
    where\n T: AsRef<[u8]>,

    Creates an instance of type Self from the given hex string, or fails\nwith a custom error type. Read more
    ","FromHex","iroh_docs::sync::PeerIdBytes"],["
    §

    impl<const N: usize, T> FromZeroes for [T; N]
    where\n T: FromZeroes,

    §

    fn zero(&mut self)

    Overwrites self with zeroes. Read more
    §

    fn new_zeroed() -> Self
    where\n Self: Sized,

    Creates an instance of Self from zeroed bytes. Read more
    ","FromZeroes","iroh_docs::sync::PeerIdBytes"],["
    §

    impl<T> Hash for [T; 32]
    where\n T: Hash,

    §

    fn hash<H>(&self, state: &mut H)
    where\n H: Hasher,

    Feeds this value into the given Hasher.
    §

    fn hash_slice<H>(data: &[Self], state: &mut H)
    where\n H: Hasher,\n Self: Sized,

    Feeds a slice of this type into the given Hasher.
    ","Hash","iroh_docs::sync::PeerIdBytes"],["
    1.0.0 · source§

    impl<T, const N: usize> Hash for [T; N]
    where\n T: Hash,

    The hash of an array is the same as that of the corresponding slice,\nas required by the Borrow implementation.

    \n\n
    use std::hash::BuildHasher;\n\nlet b = std::hash::RandomState::new();\nlet a: [u8; 3] = [0xa8, 0x3c, 0x09];\nlet s: &[u8] = &[0xa8, 0x3c, 0x09];\nassert_eq!(b.hash_one(a), b.hash_one(s));
    \n
    source§

    fn hash<H>(&self, state: &mut H)
    where\n H: Hasher,

    Feeds this value into the given Hasher. Read more
    1.3.0 · source§

    fn hash_slice<H>(data: &[Self], state: &mut H)
    where\n H: Hasher,\n Self: Sized,

    Feeds a slice of this type into the given Hasher. Read more
    ","Hash","iroh_docs::sync::PeerIdBytes"],["
    1.50.0 · source§

    impl<T, I, const N: usize> Index<I> for [T; N]
    where\n [T]: Index<I>,

    §

    type Output = <[T] as Index<I>>::Output

    The returned type after indexing.
    source§

    fn index(&self, index: I) -> &<[T; N] as Index<I>>::Output

    Performs the indexing (container[index]) operation. Read more
    ","Index","iroh_docs::sync::PeerIdBytes"],["
    1.50.0 · source§

    impl<T, I, const N: usize> IndexMut<I> for [T; N]
    where\n [T]: IndexMut<I>,

    source§

    fn index_mut(&mut self, index: I) -> &mut <[T; N] as Index<I>>::Output

    Performs the mutable indexing (container[index]) operation. Read more
    ","IndexMut","iroh_docs::sync::PeerIdBytes"],["
    §

    impl InputLength for [u8; 32]

    §

    fn input_len(&self) -> usize

    Calculates the input length, as indicated by its name,\nand the name of the trait itself
    ","InputLength","iroh_docs::sync::PeerIdBytes"],["
    1.53.0 · source§

    impl<T, const N: usize> IntoIterator for [T; N]

    source§

    fn into_iter(self) -> <[T; N] as IntoIterator>::IntoIter

    Creates a consuming iterator, that is, one that moves each value out of\nthe array (from start to end). The array cannot be used after calling\nthis unless T implements Copy, so the whole array is copied.

    \n

    Arrays have special behavior when calling .into_iter() prior to the\n2021 edition – see the array Editions section for more information.

    \n
    §

    type Item = T

    The type of the elements being iterated over.
    §

    type IntoIter = IntoIter<T, N>

    Which kind of iterator are we turning this into?
    ","IntoIterator","iroh_docs::sync::PeerIdBytes"],["
    §

    impl<const N: usize> IntoResponse for [u8; N]

    §

    fn into_response(self) -> Response<Body>

    Create a response.
    ","IntoResponse","iroh_docs::sync::PeerIdBytes"],["
    §

    impl<Fut, const N: usize> Join for [Fut; N]
    where\n Fut: IntoFuture,

    §

    type Output = [<Fut as IntoFuture>::Output; N]

    The resulting output type.
    §

    type Future = Join<<Fut as IntoFuture>::IntoFuture, N>

    The Future implementation returned by this method.
    §

    fn join(self) -> <[Fut; N] as Join>::Future

    Waits for multiple futures to complete. Read more
    ","Join","iroh_docs::sync::PeerIdBytes"],["
    §

    impl<const N: usize, T> Key for [T; N]
    where\n T: Key,

    §

    fn compare(data1: &[u8], data2: &[u8]) -> Ordering

    Compare data1 with data2
    ","Key","iroh_docs::sync::PeerIdBytes"],["
    §

    impl<T, const N: usize> MaxSize for [T; N]
    where\n T: MaxSize,

    §

    const POSTCARD_MAX_SIZE: usize = _

    The maximum possible size that the serialization of this\ntype can have, in bytes.
    ","MaxSize","iroh_docs::sync::PeerIdBytes"],["
    §

    impl<S, const N: usize> Merge for [S; N]
    where\n S: IntoStream,

    §

    type Item = <Merge<<S as IntoStream>::IntoStream, N> as Stream>::Item

    The resulting output type.
    §

    type Stream = Merge<<S as IntoStream>::IntoStream, N>

    The stream type.
    §

    fn merge(self) -> <[S; N] as Merge>::Stream

    Combine multiple streams into a single stream.
    ","Merge","iroh_docs::sync::PeerIdBytes"],["
    1.0.0 · source§

    impl<T, const N: usize> Ord for [T; N]
    where\n T: Ord,

    Implements comparison of arrays lexicographically.

    \n
    source§

    fn cmp(&self, other: &[T; N]) -> Ordering

    This method returns an Ordering between self and other. Read more
    1.21.0 · source§

    fn max(self, other: Self) -> Self
    where\n Self: Sized,

    Compares and returns the maximum of two values. Read more
    1.21.0 · source§

    fn min(self, other: Self) -> Self
    where\n Self: Sized,

    Compares and returns the minimum of two values. Read more
    1.50.0 · source§

    fn clamp(self, min: Self, max: Self) -> Self
    where\n Self: Sized + PartialOrd,

    Restrict a value to a certain interval. Read more
    ","Ord","iroh_docs::sync::PeerIdBytes"],["
    1.0.0 · source§

    impl<T, U, const N: usize> PartialEq<&[U]> for [T; N]
    where\n T: PartialEq<U>,

    source§

    fn eq(&self, other: &&[U]) -> bool

    This method tests for self and other values to be equal, and is used\nby ==.
    source§

    fn ne(&self, other: &&[U]) -> bool

    This method tests for !=. The default implementation is almost always\nsufficient, and should not be overridden without very good reason.
    ","PartialEq<&[U]>","iroh_docs::sync::PeerIdBytes"],["
    1.0.0 · source§

    impl<T, U, const N: usize> PartialEq<&mut [U]> for [T; N]
    where\n T: PartialEq<U>,

    source§

    fn eq(&self, other: &&mut [U]) -> bool

    This method tests for self and other values to be equal, and is used\nby ==.
    source§

    fn ne(&self, other: &&mut [U]) -> bool

    This method tests for !=. The default implementation is almost always\nsufficient, and should not be overridden without very good reason.
    ","PartialEq<&mut [U]>","iroh_docs::sync::PeerIdBytes"],["
    1.0.0 · source§

    impl<T, U, const N: usize> PartialEq<[U]> for [T; N]
    where\n T: PartialEq<U>,

    source§

    fn eq(&self, other: &[U]) -> bool

    This method tests for self and other values to be equal, and is used\nby ==.
    source§

    fn ne(&self, other: &[U]) -> bool

    This method tests for !=. The default implementation is almost always\nsufficient, and should not be overridden without very good reason.
    ","PartialEq<[U]>","iroh_docs::sync::PeerIdBytes"],["
    1.0.0 · source§

    impl<T, U, const N: usize> PartialEq<[U; N]> for [T; N]
    where\n T: PartialEq<U>,

    source§

    fn eq(&self, other: &[U; N]) -> bool

    This method tests for self and other values to be equal, and is used\nby ==.
    source§

    fn ne(&self, other: &[U; N]) -> bool

    This method tests for !=. The default implementation is almost always\nsufficient, and should not be overridden without very good reason.
    ","PartialEq<[U; N]>","iroh_docs::sync::PeerIdBytes"],["
    §

    impl PartialEq<Cookie> for [u8; 4]

    §

    fn eq(&self, other: &Cookie) -> bool

    This method tests for self and other values to be equal, and is used\nby ==.
    1.0.0 · source§

    fn ne(&self, other: &Rhs) -> bool

    This method tests for !=. The default implementation is almost always\nsufficient, and should not be overridden without very good reason.
    ","PartialEq","iroh_docs::sync::PeerIdBytes"],["
    §

    impl<A, B, const N: usize, const M: usize> PartialEq<Vec<A, N>> for [B; M]
    where\n A: PartialEq<B>,

    §

    fn eq(&self, other: &Vec<A, N>) -> bool

    This method tests for self and other values to be equal, and is used\nby ==.
    1.0.0 · source§

    fn ne(&self, other: &Rhs) -> bool

    This method tests for !=. The default implementation is almost always\nsufficient, and should not be overridden without very good reason.
    ","PartialEq>","iroh_docs::sync::PeerIdBytes"],["
    1.0.0 · source§

    impl<T, const N: usize> PartialOrd for [T; N]
    where\n T: PartialOrd,

    Implements comparison of arrays lexicographically.

    \n
    source§

    fn partial_cmp(&self, other: &[T; N]) -> Option<Ordering>

    This method returns an ordering between self and other values if one exists. Read more
    source§

    fn lt(&self, other: &[T; N]) -> bool

    This method tests less than (for self and other) and is used by the < operator. Read more
    source§

    fn le(&self, other: &[T; N]) -> bool

    This method tests less than or equal to (for self and other) and is used by the <=\noperator. Read more
    source§

    fn ge(&self, other: &[T; N]) -> bool

    This method tests greater than or equal to (for self and other) and is used by the >=\noperator. Read more
    source§

    fn gt(&self, other: &[T; N]) -> bool

    This method tests greater than (for self and other) and is used by the > operator. Read more
    ","PartialOrd","iroh_docs::sync::PeerIdBytes"],["
    §

    impl<Fut, const N: usize> Race for [Fut; N]
    where\n Fut: IntoFuture,

    §

    type Output = <Fut as IntoFuture>::Output

    The resulting output type.
    §

    type Future = Race<<Fut as IntoFuture>::IntoFuture, N>

    Which kind of future are we turning this into?
    §

    fn race(self) -> <[Fut; N] as Race>::Future

    Wait for the first future to complete. Read more
    ","Race","iroh_docs::sync::PeerIdBytes"],["
    §

    impl<Fut, T, E, const N: usize> RaceOk for [Fut; N]
    where\n Fut: IntoFuture<Output = Result<T, E>>,

    §

    type Output = T

    The resulting output type.
    §

    type Error = AggregateError<E, N>

    The resulting error type.
    §

    type Future = RaceOk<<Fut as IntoFuture>::IntoFuture, T, E, N>

    Which kind of future are we turning this into?
    §

    fn race_ok(self) -> <[Fut; N] as RaceOk>::Future

    Waits for the first successful future to complete.
    ","RaceOk","iroh_docs::sync::PeerIdBytes"],["
    §

    impl<T, const N: usize> Schema for [T; N]
    where\n T: Schema,

    §

    const SCHEMA: &'static NamedType = _

    A recursive data structure that describes the schema of the given\ntype.
    ","Schema","iroh_docs::sync::PeerIdBytes"],["
    source§

    impl<T> Serialize for [T; 32]
    where\n T: Serialize,

    source§

    fn serialize<S>(\n &self,\n serializer: S\n) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>
    where\n S: Serializer,

    Serialize this value into the given Serde serializer. Read more
    ","Serialize","iroh_docs::sync::PeerIdBytes"],["
    source§

    impl<const N: usize> Serialize for [u8; N]

    source§

    fn serialize<S>(\n &self,\n serializer: S\n) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>
    where\n S: Serializer,

    ","Serialize","iroh_docs::sync::PeerIdBytes"],["
    1.51.0 · source§

    impl<T, const N: usize> SlicePattern for [T; N]

    §

    type Item = T

    🔬This is a nightly-only experimental API. (slice_pattern)
    The element type of the slice being matched on.
    source§

    fn as_slice(&self) -> &[<[T; N] as SlicePattern>::Item]

    🔬This is a nightly-only experimental API. (slice_pattern)
    Currently, the consumers of SlicePattern need a slice.
    ","SlicePattern","iroh_docs::sync::PeerIdBytes"],["
    1.34.0 · source§

    impl<T, const N: usize> TryFrom<&[T]> for [T; N]
    where\n T: Copy,

    Tries to create an array [T; N] by copying from a slice &[T]. Succeeds if\nslice.len() == N.

    \n\n
    let bytes: [u8; 3] = [1, 0, 2];\n\nlet bytes_head: [u8; 2] = <[u8; 2]>::try_from(&bytes[0..2]).unwrap();\nassert_eq!(1, u16::from_le_bytes(bytes_head));\n\nlet bytes_tail: [u8; 2] = bytes[1..3].try_into().unwrap();\nassert_eq!(512, u16::from_le_bytes(bytes_tail));
    \n
    §

    type Error = TryFromSliceError

    The type returned in the event of a conversion error.
    source§

    fn try_from(slice: &[T]) -> Result<[T; N], TryFromSliceError>

    Performs the conversion.
    ","TryFrom<&[T]>","iroh_docs::sync::PeerIdBytes"],["
    1.59.0 · source§

    impl<T, const N: usize> TryFrom<&mut [T]> for [T; N]
    where\n T: Copy,

    Tries to create an array [T; N] by copying from a mutable slice &mut [T].\nSucceeds if slice.len() == N.

    \n\n
    let mut bytes: [u8; 3] = [1, 0, 2];\n\nlet bytes_head: [u8; 2] = <[u8; 2]>::try_from(&mut bytes[0..2]).unwrap();\nassert_eq!(1, u16::from_le_bytes(bytes_head));\n\nlet bytes_tail: [u8; 2] = (&mut bytes[1..3]).try_into().unwrap();\nassert_eq!(512, u16::from_le_bytes(bytes_tail));
    \n
    §

    type Error = TryFromSliceError

    The type returned in the event of a conversion error.
    source§

    fn try_from(slice: &mut [T]) -> Result<[T; N], TryFromSliceError>

    Performs the conversion.
    ","TryFrom<&mut [T]>","iroh_docs::sync::PeerIdBytes"],["
    §

    impl<T, A, const N: usize> TryFrom<Vec<T, A>> for [T; N]
    where\n A: Allocator,

    §

    fn try_from(vec: Vec<T, A>) -> Result<[T; N], Vec<T, A>>

    Gets the entire contents of the Vec<T> as an array,\nif its size exactly matches that of the requested array.

    \n
    §Examples
    \n
    assert_eq!(vec![1, 2, 3].try_into(), Ok([1, 2, 3]));\nassert_eq!(<Vec<i32>>::new().try_into(), Ok([]));
    \n

    If the length doesn’t match, the input comes back in Err:

    \n\n
    let r: Result<[i32; 4], _> = (0..10).collect::<Vec<_>>().try_into();\nassert_eq!(r, Err(vec![0, 1, 2, 3, 4, 5, 6, 7, 8, 9]));
    \n

    If you’re fine with just getting a prefix of the Vec<T>,\nyou can call .truncate(N) first.

    \n\n
    let mut v = String::from(\"hello world\").into_bytes();\nv.sort();\nv.truncate(2);\nlet [a, b]: [_; 2] = v.try_into().unwrap();\nassert_eq!(a, b' ');\nassert_eq!(b, b'd');
    \n
    §

    type Error = Vec<T, A>

    The type returned in the event of a conversion error.
    ","TryFrom>","iroh_docs::sync::PeerIdBytes"],["
    1.48.0 · source§

    impl<T, A, const N: usize> TryFrom<Vec<T, A>> for [T; N]
    where\n A: Allocator,

    source§

    fn try_from(vec: Vec<T, A>) -> Result<[T; N], Vec<T, A>>

    Gets the entire contents of the Vec<T> as an array,\nif its size exactly matches that of the requested array.

    \n
    §Examples
    \n
    assert_eq!(vec![1, 2, 3].try_into(), Ok([1, 2, 3]));\nassert_eq!(<Vec<i32>>::new().try_into(), Ok([]));
    \n

    If the length doesn’t match, the input comes back in Err:

    \n\n
    let r: Result<[i32; 4], _> = (0..10).collect::<Vec<_>>().try_into();\nassert_eq!(r, Err(vec![0, 1, 2, 3, 4, 5, 6, 7, 8, 9]));
    \n

    If you’re fine with just getting a prefix of the Vec<T>,\nyou can call .truncate(N) first.

    \n\n
    let mut v = String::from(\"hello world\").into_bytes();\nv.sort();\nv.truncate(2);\nlet [a, b]: [_; 2] = v.try_into().unwrap();\nassert_eq!(a, b' ');\nassert_eq!(b, b'd');
    \n
    §

    type Error = Vec<T, A>

    The type returned in the event of a conversion error.
    ","TryFrom>","iroh_docs::sync::PeerIdBytes"],["
    §

    impl<Fut, T, E, const N: usize> TryJoin for [Fut; N]
    where\n Fut: IntoFuture<Output = Result<T, E>>,

    §

    type Output = [T; N]

    The resulting output type.
    §

    type Error = E

    The resulting error type.
    §

    type Future = TryJoin<<Fut as IntoFuture>::IntoFuture, T, E, N>

    Which kind of future are we turning this into?
    §

    fn try_join(self) -> <[Fut; N] as TryJoin>::Future

    Waits for multiple futures to complete, either returning when all\nfutures complete successfully, or return early when any future completes\nwith an error.
    ","TryJoin","iroh_docs::sync::PeerIdBytes"],["
    §

    impl<const N: usize, T> Value for [T; N]
    where\n T: Value,

    §

    type SelfType<'a> = [<T as Value>::SelfType<'a>; N]\nwhere\n [T; N]: 'a

    SelfType<’a> must be the same type as Self with all lifetimes replaced with ’a
    §

    type AsBytes<'a> = Vec<u8>\nwhere\n [T; N]: 'a

    §

    fn fixed_width() -> Option<usize>

    Width of a fixed type, or None for variable width
    §

    fn from_bytes<'a>(data: &'a [u8]) -> [<T as Value>::SelfType<'a>; N]
    where\n [T; N]: 'a,

    Deserializes data\nImplementations may return a view over data, or an owned type
    §

    fn as_bytes<'a, 'b>(value: &'a <[T; N] as Value>::SelfType<'b>) -> Vec<u8> ⓘ
    where\n 'b: 'a,\n [T; N]: 'a + 'b,

    Serialize the value to a slice
    §

    fn type_name() -> TypeName

    Globally unique identifier for this type
    ","Value","iroh_docs::sync::PeerIdBytes"],["
    §

    impl<T, const N: usize> ValueOrd for [T; N]
    where\n T: DerOrd,

    §

    fn value_cmp(&self, other: &[T; N]) -> Result<Ordering, Error>

    Return an Ordering between value portion of TLV-encoded self and\nother when serialized as ASN.1 DER.
    ","ValueOrd","iroh_docs::sync::PeerIdBytes"],["
    §

    impl<Z, const N: usize> Zeroize for [Z; N]
    where\n Z: Zeroize,

    Impl [Zeroize] on arrays of types that impl [Zeroize].

    \n
    §

    fn zeroize(&mut self)

    Zero out this object from memory using Rust intrinsics which ensure the\nzeroization operation is not “optimized away” by the compiler.
    ","Zeroize","iroh_docs::sync::PeerIdBytes"],["
    §

    impl<S, const N: usize> Zip for [S; N]
    where\n S: IntoStream,

    §

    type Item = <Zip<<S as IntoStream>::IntoStream, N> as Stream>::Item

    What’s the return type of our stream?
    §

    type Stream = Zip<<S as IntoStream>::IntoStream, N>

    What stream do we return?
    §

    fn zip(self) -> <[S; N] as Zip>::Stream

    Combine multiple streams into a single stream.
    ","Zip","iroh_docs::sync::PeerIdBytes"],["
    source§

    impl<T, const N: usize> ConstParamTy for [T; N]
    where\n T: ConstParamTy,

    ","ConstParamTy","iroh_docs::sync::PeerIdBytes"],["
    1.58.0 · source§

    impl<T, const N: usize> Copy for [T; N]
    where\n T: Copy,

    ","Copy","iroh_docs::sync::PeerIdBytes"],["
    1.0.0 · source§

    impl<T, const N: usize> Eq for [T; N]
    where\n T: Eq,

    ","Eq","iroh_docs::sync::PeerIdBytes"],["
    source§

    impl<T, const N: usize> StructuralPartialEq for [T; N]

    ","StructuralPartialEq","iroh_docs::sync::PeerIdBytes"],["
    §

    impl<const N: usize, T> Unaligned for [T; N]
    where\n T: Unaligned,

    ","Unaligned","iroh_docs::sync::PeerIdBytes"],["
    §

    impl<Z, const N: usize> ZeroizeOnDrop for [Z; N]
    where\n Z: ZeroizeOnDrop,

    Impl [ZeroizeOnDrop] on arrays of types that impl [ZeroizeOnDrop].

    \n
    ","ZeroizeOnDrop","iroh_docs::sync::PeerIdBytes"]] +"iroh_docs":[["
    source§

    impl<T, const N: usize> [T; N]

    1.55.0 · source

    pub fn map<F, U>(self, f: F) -> [U; N]
    where\n F: FnMut(T) -> U,

    Returns an array of the same size as self, with function f applied to each element\nin order.

    \n

    If you don’t necessarily need a new fixed-size array, consider using\nIterator::map instead.

    \n
    §Note on performance and stack usage
    \n

    Unfortunately, usages of this method are currently not always optimized\nas well as they could be. This mainly concerns large arrays, as mapping\nover small arrays seem to be optimized just fine. Also note that in\ndebug mode (i.e. without any optimizations), this method can use a lot\nof stack space (a few times the size of the array or more).

    \n

    Therefore, in performance-critical code, try to avoid using this method\non large arrays or check the emitted code. Also try to avoid chained\nmaps (e.g. arr.map(...).map(...)).

    \n

    In many cases, you can instead use Iterator::map by calling .iter()\nor .into_iter() on your array. [T; N]::map is only necessary if you\nreally need a new array of the same size as the result. Rust’s lazy\niterators tend to get optimized very well.

    \n
    §Examples
    \n
    let x = [1, 2, 3];\nlet y = x.map(|v| v + 1);\nassert_eq!(y, [2, 3, 4]);\n\nlet x = [1, 2, 3];\nlet mut temp = 0;\nlet y = x.map(|v| { temp += 1; v * temp });\nassert_eq!(y, [1, 4, 9]);\n\nlet x = [\"Ferris\", \"Bueller's\", \"Day\", \"Off\"];\nlet y = x.map(|v| v.len());\nassert_eq!(y, [6, 9, 3, 3]);
    \n
    source

    pub fn try_map<F, R>(\n self,\n f: F\n) -> <<R as Try>::Residual as Residual<[<R as Try>::Output; N]>>::TryType
    where\n F: FnMut(T) -> R,\n R: Try,\n <R as Try>::Residual: Residual<[<R as Try>::Output; N]>,

    🔬This is a nightly-only experimental API. (array_try_map)

    A fallible function f applied to each element on array self in order to\nreturn an array the same size as self or the first error encountered.

    \n

    The return type of this function depends on the return type of the closure.\nIf you return Result<T, E> from the closure, you’ll get a Result<[T; N], E>.\nIf you return Option<T> from the closure, you’ll get an Option<[T; N]>.

    \n
    §Examples
    \n
    #![feature(array_try_map)]\n\nlet a = [\"1\", \"2\", \"3\"];\nlet b = a.try_map(|v| v.parse::<u32>()).unwrap().map(|v| v + 1);\nassert_eq!(b, [2, 3, 4]);\n\nlet a = [\"1\", \"2a\", \"3\"];\nlet b = a.try_map(|v| v.parse::<u32>());\nassert!(b.is_err());\n\nuse std::num::NonZero;\n\nlet z = [1, 2, 0, 3, 4];\nassert_eq!(z.try_map(NonZero::new), None);\n\nlet a = [1, 2, 3];\nlet b = a.try_map(NonZero::new);\nlet c = b.map(|x| x.map(NonZero::get));\nassert_eq!(c, Some(a));
    \n
    1.57.0 (const: 1.57.0) · source

    pub const fn as_slice(&self) -> &[T]

    Returns a slice containing the entire array. Equivalent to &s[..].

    \n
    1.57.0 · source

    pub fn as_mut_slice(&mut self) -> &mut [T]

    Returns a mutable slice containing the entire array. Equivalent to\n&mut s[..].

    \n
    1.77.0 · source

    pub fn each_ref(&self) -> [&T; N]

    Borrows each element and returns an array of references with the same\nsize as self.

    \n
    §Example
    \n
    let floats = [3.1, 2.7, -1.0];\nlet float_refs: [&f64; 3] = floats.each_ref();\nassert_eq!(float_refs, [&3.1, &2.7, &-1.0]);
    \n

    This method is particularly useful if combined with other methods, like\nmap. This way, you can avoid moving the original\narray if its elements are not Copy.

    \n\n
    let strings = [\"Ferris\".to_string(), \"♥\".to_string(), \"Rust\".to_string()];\nlet is_ascii = strings.each_ref().map(|s| s.is_ascii());\nassert_eq!(is_ascii, [true, false, true]);\n\n// We can still access the original array: it has not been moved.\nassert_eq!(strings.len(), 3);
    \n
    1.77.0 · source

    pub fn each_mut(&mut self) -> [&mut T; N]

    Borrows each element mutably and returns an array of mutable references\nwith the same size as self.

    \n
    §Example
    \n
    \nlet mut floats = [3.1, 2.7, -1.0];\nlet float_refs: [&mut f64; 3] = floats.each_mut();\n*float_refs[0] = 0.0;\nassert_eq!(float_refs, [&mut 0.0, &mut 2.7, &mut -1.0]);\nassert_eq!(floats, [0.0, 2.7, -1.0]);
    \n
    source

    pub fn split_array_ref<const M: usize>(&self) -> (&[T; M], &[T])

    🔬This is a nightly-only experimental API. (split_array)

    Divides one array reference into two at an index.

    \n

    The first will contain all indices from [0, M) (excluding\nthe index M itself) and the second will contain all\nindices from [M, N) (excluding the index N itself).

    \n
    §Panics
    \n

    Panics if M > N.

    \n
    §Examples
    \n
    #![feature(split_array)]\n\nlet v = [1, 2, 3, 4, 5, 6];\n\n{\n   let (left, right) = v.split_array_ref::<0>();\n   assert_eq!(left, &[]);\n   assert_eq!(right, &[1, 2, 3, 4, 5, 6]);\n}\n\n{\n    let (left, right) = v.split_array_ref::<2>();\n    assert_eq!(left, &[1, 2]);\n    assert_eq!(right, &[3, 4, 5, 6]);\n}\n\n{\n    let (left, right) = v.split_array_ref::<6>();\n    assert_eq!(left, &[1, 2, 3, 4, 5, 6]);\n    assert_eq!(right, &[]);\n}
    \n
    source

    pub fn split_array_mut<const M: usize>(&mut self) -> (&mut [T; M], &mut [T])

    🔬This is a nightly-only experimental API. (split_array)

    Divides one mutable array reference into two at an index.

    \n

    The first will contain all indices from [0, M) (excluding\nthe index M itself) and the second will contain all\nindices from [M, N) (excluding the index N itself).

    \n
    §Panics
    \n

    Panics if M > N.

    \n
    §Examples
    \n
    #![feature(split_array)]\n\nlet mut v = [1, 0, 3, 0, 5, 6];\nlet (left, right) = v.split_array_mut::<2>();\nassert_eq!(left, &mut [1, 0][..]);\nassert_eq!(right, &mut [3, 0, 5, 6]);\nleft[1] = 2;\nright[1] = 4;\nassert_eq!(v, [1, 2, 3, 4, 5, 6]);
    \n
    source

    pub fn rsplit_array_ref<const M: usize>(&self) -> (&[T], &[T; M])

    🔬This is a nightly-only experimental API. (split_array)

    Divides one array reference into two at an index from the end.

    \n

    The first will contain all indices from [0, N - M) (excluding\nthe index N - M itself) and the second will contain all\nindices from [N - M, N) (excluding the index N itself).

    \n
    §Panics
    \n

    Panics if M > N.

    \n
    §Examples
    \n
    #![feature(split_array)]\n\nlet v = [1, 2, 3, 4, 5, 6];\n\n{\n   let (left, right) = v.rsplit_array_ref::<0>();\n   assert_eq!(left, &[1, 2, 3, 4, 5, 6]);\n   assert_eq!(right, &[]);\n}\n\n{\n    let (left, right) = v.rsplit_array_ref::<2>();\n    assert_eq!(left, &[1, 2, 3, 4]);\n    assert_eq!(right, &[5, 6]);\n}\n\n{\n    let (left, right) = v.rsplit_array_ref::<6>();\n    assert_eq!(left, &[]);\n    assert_eq!(right, &[1, 2, 3, 4, 5, 6]);\n}
    \n
    source

    pub fn rsplit_array_mut<const M: usize>(&mut self) -> (&mut [T], &mut [T; M])

    🔬This is a nightly-only experimental API. (split_array)

    Divides one mutable array reference into two at an index from the end.

    \n

    The first will contain all indices from [0, N - M) (excluding\nthe index N - M itself) and the second will contain all\nindices from [N - M, N) (excluding the index N itself).

    \n
    §Panics
    \n

    Panics if M > N.

    \n
    §Examples
    \n
    #![feature(split_array)]\n\nlet mut v = [1, 0, 3, 0, 5, 6];\nlet (left, right) = v.rsplit_array_mut::<4>();\nassert_eq!(left, &mut [1, 0]);\nassert_eq!(right, &mut [3, 0, 5, 6][..]);\nleft[1] = 2;\nright[1] = 4;\nassert_eq!(v, [1, 2, 3, 4, 5, 6]);
    \n
    ",0,"iroh_docs::sync::PeerIdBytes"],["
    source§

    impl<const N: usize> [u8; N]

    source

    pub const fn as_ascii(&self) -> Option<&[AsciiChar; N]>

    🔬This is a nightly-only experimental API. (ascii_char)

    Converts this array of bytes into a array of ASCII characters,\nor returns None if any of the characters is non-ASCII.

    \n
    §Examples
    \n
    #![feature(ascii_char)]\n#![feature(const_option)]\n\nconst HEX_DIGITS: [std::ascii::Char; 16] =\n    *b\"0123456789abcdef\".as_ascii().unwrap();\n\nassert_eq!(HEX_DIGITS[1].as_str(), \"1\");\nassert_eq!(HEX_DIGITS[10].as_str(), \"a\");
    \n
    source

    pub const unsafe fn as_ascii_unchecked(&self) -> &[AsciiChar; N]

    🔬This is a nightly-only experimental API. (ascii_char)

    Converts this array of bytes into a array of ASCII characters,\nwithout checking whether they’re valid.

    \n
    §Safety
    \n

    Every byte in the array must be in 0..=127, or else this is UB.

    \n
    ",0,"iroh_docs::sync::PeerIdBytes"],["
    §

    impl<T> Array for [T; 32]
    where\n T: Default,

    §

    type Item = T

    The type of the items in the thing.
    §

    const CAPACITY: usize = 32usize

    The number of slots in the thing.
    §

    fn as_slice(&self) -> &[T]

    Gives a shared slice over the whole thing. Read more
    §

    fn as_slice_mut(&mut self) -> &mut [T]

    Gives a unique slice over the whole thing. Read more
    §

    fn default() -> [T; 32]

    Create a default-initialized instance of ourself, similar to the\nDefault trait, but implemented for the same range of sizes as\n[Array].
    ","Array","iroh_docs::sync::PeerIdBytes"],["
    §

    impl<T, const N: usize> Array for [T; N]

    §

    type Item = T

    The type of the array’s elements.
    §

    fn size() -> usize

    Returns the number of items the array can hold.
    ","Array","iroh_docs::sync::PeerIdBytes"],["
    §

    impl<const N: usize, T> AsBytes for [T; N]
    where\n T: AsBytes,

    §

    fn as_bytes(&self) -> &[u8] ⓘ

    Gets the bytes of this value. Read more
    §

    fn write_to(&self, bytes: &mut [u8]) -> Option<()>

    Writes a copy of self to bytes. Read more
    §

    fn write_to_prefix(&self, bytes: &mut [u8]) -> Option<()>

    Writes a copy of self to the prefix of bytes. Read more
    §

    fn write_to_suffix(&self, bytes: &mut [u8]) -> Option<()>

    Writes a copy of self to the suffix of bytes. Read more
    ","AsBytes","iroh_docs::sync::PeerIdBytes"],["
    §

    impl AsBytes for [u8; 32]

    §

    fn as_bytes(&self) -> &[u8] ⓘ

    Casts the input type to a byte slice
    ","AsBytes","iroh_docs::sync::PeerIdBytes"],["
    1.0.0 · source§

    impl<T, const N: usize> AsMut<[T]> for [T; N]

    source§

    fn as_mut(&mut self) -> &mut [T]

    Converts this type into a mutable reference of the (usually inferred) input type.
    ","AsMut<[T]>","iroh_docs::sync::PeerIdBytes"],["
    1.0.0 · source§

    impl<T, const N: usize> AsRef<[T]> for [T; N]

    source§

    fn as_ref(&self) -> &[T]

    Converts this type into a shared reference of the (usually inferred) input type.
    ","AsRef<[T]>","iroh_docs::sync::PeerIdBytes"],["
    §

    impl<T, const N: usize> BitView for [T; N]
    where\n T: BitStore,

    Note that overly-large arrays may cause the conversions to fail.

    \n
    §

    type Store = T

    The underlying element type.
    §

    fn view_bits<O>(&self) -> &BitSlice<T, O>
    where\n O: BitOrder,

    Views a memory region as an immutable bit-slice.
    §

    fn try_view_bits<O>(&self) -> Result<&BitSlice<T, O>, BitSpanError<T>>
    where\n O: BitOrder,

    Attempts to view a memory region as an immutable bit-slice. Read more
    §

    fn view_bits_mut<O>(&mut self) -> &mut BitSlice<T, O>
    where\n O: BitOrder,

    Views a memory region as a mutable bit-slice.
    §

    fn try_view_bits_mut<O>(\n &mut self\n) -> Result<&mut BitSlice<T, O>, BitSpanError<T>>
    where\n O: BitOrder,

    Attempts to view a memory region as a mutable bit-slice. Read more
    ","BitView","iroh_docs::sync::PeerIdBytes"],["
    §

    impl<T, const N: usize> BitViewSized for [T; N]
    where\n T: BitStore,

    §

    const ZERO: [T; N] = _

    The zero constant.
    §

    fn as_raw_slice(&self) -> &[<[T; N] as BitView>::Store]

    Views the type as a slice of its elements.
    §

    fn as_raw_mut_slice(&mut self) -> &mut [<[T; N] as BitView>::Store]

    Views the type as a mutable slice of its elements.
    §

    fn into_bitarray<O>(self) -> BitArray<Self, O>
    where\n O: BitOrder,

    Wraps self in a BitArray.
    ","BitViewSized","iroh_docs::sync::PeerIdBytes"],["
    1.4.0 · source§

    impl<T, const N: usize> Borrow<[T]> for [T; N]

    source§

    fn borrow(&self) -> &[T]

    Immutably borrows from an owned value. Read more
    ","Borrow<[T]>","iroh_docs::sync::PeerIdBytes"],["
    1.4.0 · source§

    impl<T, const N: usize> BorrowMut<[T]> for [T; N]

    source§

    fn borrow_mut(&mut self) -> &mut [T]

    Mutably borrows from an owned value. Read more
    ","BorrowMut<[T]>","iroh_docs::sync::PeerIdBytes"],["
    §

    impl<S, const N: usize> Chain for [S; N]
    where\n S: Stream,

    §

    type Item = <S as Stream>::Item

    What’s the return type of our stream?
    §

    type Stream = Chain<S, N>

    What stream do we return?
    §

    fn chain(self) -> <[S; N] as Chain>::Stream

    Combine multiple streams into a single stream.
    ","Chain","iroh_docs::sync::PeerIdBytes"],["
    1.58.0 · source§

    impl<T, const N: usize> Clone for [T; N]
    where\n T: Clone,

    source§

    fn clone(&self) -> [T; N]

    Returns a copy of the value. Read more
    source§

    fn clone_from(&mut self, other: &[T; N])

    Performs copy-assignment from source. Read more
    ","Clone","iroh_docs::sync::PeerIdBytes"],["
    1.0.0 · source§

    impl<T, const N: usize> Debug for [T; N]
    where\n T: Debug,

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more
    ","Debug","iroh_docs::sync::PeerIdBytes"],["
    §

    impl<const N: usize> Decode for [u8; N]

    Decodes a byte array from byte[n] as described in RFC4251 § 5:

    \n
    \n

    A byte represents an arbitrary 8-bit value (octet). Fixed length\ndata is sometimes represented as an array of bytes, written\nbyte[n], where n is the number of bytes in the array.

    \n
    \n
    §

    type Error = Error

    Type returned in the event of a decoding error.
    §

    fn decode(reader: &mut impl Reader) -> Result<[u8; N], Error>

    Attempt to decode a value of this type using the provided [Reader].
    ","Decode","iroh_docs::sync::PeerIdBytes"],["
    §

    impl<'a, T, const N: usize> DecodeValue<'a> for [T; N]
    where\n T: Decode<'a>,

    §

    fn decode_value<R>(reader: &mut R, header: Header) -> Result<[T; N], Error>
    where\n R: Reader<'a>,

    Attempt to decode this message using the provided [Reader].
    ","DecodeValue<'a>","iroh_docs::sync::PeerIdBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 32]
    where\n T: Default,

    source§

    fn default() -> [T; 32]

    Returns the “default value” for a type. Read more
    ","Default","iroh_docs::sync::PeerIdBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 31]
    where\n T: Default,

    source§

    fn default() -> [T; 31]

    Returns the “default value” for a type. Read more
    ","Default","iroh_docs::sync::PeerIdBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 30]
    where\n T: Default,

    source§

    fn default() -> [T; 30]

    Returns the “default value” for a type. Read more
    ","Default","iroh_docs::sync::PeerIdBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 29]
    where\n T: Default,

    source§

    fn default() -> [T; 29]

    Returns the “default value” for a type. Read more
    ","Default","iroh_docs::sync::PeerIdBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 28]
    where\n T: Default,

    source§

    fn default() -> [T; 28]

    Returns the “default value” for a type. Read more
    ","Default","iroh_docs::sync::PeerIdBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 27]
    where\n T: Default,

    source§

    fn default() -> [T; 27]

    Returns the “default value” for a type. Read more
    ","Default","iroh_docs::sync::PeerIdBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 26]
    where\n T: Default,

    source§

    fn default() -> [T; 26]

    Returns the “default value” for a type. Read more
    ","Default","iroh_docs::sync::PeerIdBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 25]
    where\n T: Default,

    source§

    fn default() -> [T; 25]

    Returns the “default value” for a type. Read more
    ","Default","iroh_docs::sync::PeerIdBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 24]
    where\n T: Default,

    source§

    fn default() -> [T; 24]

    Returns the “default value” for a type. Read more
    ","Default","iroh_docs::sync::PeerIdBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 23]
    where\n T: Default,

    source§

    fn default() -> [T; 23]

    Returns the “default value” for a type. Read more
    ","Default","iroh_docs::sync::PeerIdBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 22]
    where\n T: Default,

    source§

    fn default() -> [T; 22]

    Returns the “default value” for a type. Read more
    ","Default","iroh_docs::sync::PeerIdBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 21]
    where\n T: Default,

    source§

    fn default() -> [T; 21]

    Returns the “default value” for a type. Read more
    ","Default","iroh_docs::sync::PeerIdBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 20]
    where\n T: Default,

    source§

    fn default() -> [T; 20]

    Returns the “default value” for a type. Read more
    ","Default","iroh_docs::sync::PeerIdBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 19]
    where\n T: Default,

    source§

    fn default() -> [T; 19]

    Returns the “default value” for a type. Read more
    ","Default","iroh_docs::sync::PeerIdBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 18]
    where\n T: Default,

    source§

    fn default() -> [T; 18]

    Returns the “default value” for a type. Read more
    ","Default","iroh_docs::sync::PeerIdBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 17]
    where\n T: Default,

    source§

    fn default() -> [T; 17]

    Returns the “default value” for a type. Read more
    ","Default","iroh_docs::sync::PeerIdBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 16]
    where\n T: Default,

    source§

    fn default() -> [T; 16]

    Returns the “default value” for a type. Read more
    ","Default","iroh_docs::sync::PeerIdBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 15]
    where\n T: Default,

    source§

    fn default() -> [T; 15]

    Returns the “default value” for a type. Read more
    ","Default","iroh_docs::sync::PeerIdBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 14]
    where\n T: Default,

    source§

    fn default() -> [T; 14]

    Returns the “default value” for a type. Read more
    ","Default","iroh_docs::sync::PeerIdBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 13]
    where\n T: Default,

    source§

    fn default() -> [T; 13]

    Returns the “default value” for a type. Read more
    ","Default","iroh_docs::sync::PeerIdBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 12]
    where\n T: Default,

    source§

    fn default() -> [T; 12]

    Returns the “default value” for a type. Read more
    ","Default","iroh_docs::sync::PeerIdBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 11]
    where\n T: Default,

    source§

    fn default() -> [T; 11]

    Returns the “default value” for a type. Read more
    ","Default","iroh_docs::sync::PeerIdBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 10]
    where\n T: Default,

    source§

    fn default() -> [T; 10]

    Returns the “default value” for a type. Read more
    ","Default","iroh_docs::sync::PeerIdBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 9]
    where\n T: Default,

    source§

    fn default() -> [T; 9]

    Returns the “default value” for a type. Read more
    ","Default","iroh_docs::sync::PeerIdBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 8]
    where\n T: Default,

    source§

    fn default() -> [T; 8]

    Returns the “default value” for a type. Read more
    ","Default","iroh_docs::sync::PeerIdBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 7]
    where\n T: Default,

    source§

    fn default() -> [T; 7]

    Returns the “default value” for a type. Read more
    ","Default","iroh_docs::sync::PeerIdBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 6]
    where\n T: Default,

    source§

    fn default() -> [T; 6]

    Returns the “default value” for a type. Read more
    ","Default","iroh_docs::sync::PeerIdBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 5]
    where\n T: Default,

    source§

    fn default() -> [T; 5]

    Returns the “default value” for a type. Read more
    ","Default","iroh_docs::sync::PeerIdBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 4]
    where\n T: Default,

    source§

    fn default() -> [T; 4]

    Returns the “default value” for a type. Read more
    ","Default","iroh_docs::sync::PeerIdBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 3]
    where\n T: Default,

    source§

    fn default() -> [T; 3]

    Returns the “default value” for a type. Read more
    ","Default","iroh_docs::sync::PeerIdBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 2]
    where\n T: Default,

    source§

    fn default() -> [T; 2]

    Returns the “default value” for a type. Read more
    ","Default","iroh_docs::sync::PeerIdBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 1]
    where\n T: Default,

    source§

    fn default() -> [T; 1]

    Returns the “default value” for a type. Read more
    ","Default","iroh_docs::sync::PeerIdBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 0]

    source§

    fn default() -> [T; 0]

    Returns the “default value” for a type. Read more
    ","Default","iroh_docs::sync::PeerIdBytes"],["
    source§

    impl<'de, T> Deserialize<'de> for [T; 32]
    where\n T: Deserialize<'de>,

    source§

    fn deserialize<D>(\n deserializer: D\n) -> Result<[T; 32], <D as Deserializer<'de>>::Error>
    where\n D: Deserializer<'de>,

    Deserialize this value from the given Serde deserializer. Read more
    ","Deserialize<'de>","iroh_docs::sync::PeerIdBytes"],["
    source§

    impl<'de, const N: usize> Deserialize<'de> for [u8; N]

    source§

    fn deserialize<D>(\n deserializer: D\n) -> Result<[u8; N], <D as Deserializer<'de>>::Error>
    where\n D: Deserializer<'de>,

    ","Deserialize<'de>","iroh_docs::sync::PeerIdBytes"],["
    §

    impl<const N: usize> Encode for [u8; N]

    Encodes [u8; N] into byte[n] as described in RFC4251 § 5:

    \n
    \n

    A byte represents an arbitrary 8-bit value (octet). Fixed length\ndata is sometimes represented as an array of bytes, written\nbyte[n], where n is the number of bytes in the array.

    \n
    \n
    §

    fn encoded_len(&self) -> Result<usize, Error>

    Get the length of this type encoded in bytes, prior to Base64 encoding.
    §

    fn encode(&self, writer: &mut impl Writer) -> Result<(), Error>

    Encode this value using the provided [Writer].
    §

    fn encoded_len_prefixed(&self) -> Result<usize, Error>

    Return the length of this type after encoding when prepended with a\nuint32 length prefix.
    §

    fn encode_prefixed(&self, writer: &mut impl Writer) -> Result<(), Error>

    Encode this value, first prepending a uint32 length prefix\nset to [Encode::encoded_len].
    ","Encode","iroh_docs::sync::PeerIdBytes"],["
    §

    impl<T, const N: usize> EncodeLabelSet for [T; N]
    where\n T: EncodeLabel,

    §

    fn encode(&self, encoder: LabelSetEncoder<'_>) -> Result<(), Error>

    Encode oneself into the given encoder.
    ","EncodeLabelSet","iroh_docs::sync::PeerIdBytes"],["
    §

    impl<T, const N: usize> EncodeValue for [T; N]
    where\n T: Encode,

    §

    fn value_len(&self) -> Result<Length, Error>

    Compute the length of this value (sans [Tag]+[Length] header) when\nencoded as ASN.1 DER.
    §

    fn encode_value(&self, writer: &mut impl Writer) -> Result<(), Error>

    Encode value (sans [Tag]+[Length] header) as ASN.1 DER using the\nprovided [Writer].
    §

    fn header(&self) -> Result<Header, Error>
    where\n Self: Tagged,

    Get the [Header] used to encode this value.
    ","EncodeValue","iroh_docs::sync::PeerIdBytes"],["
    source§

    impl<T> Fill for [T; 32]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh_docs::sync::PeerIdBytes"],["
    source§

    impl<T> Fill for [T; 31]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh_docs::sync::PeerIdBytes"],["
    source§

    impl<T> Fill for [T; 30]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh_docs::sync::PeerIdBytes"],["
    source§

    impl<T> Fill for [T; 29]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh_docs::sync::PeerIdBytes"],["
    source§

    impl<T> Fill for [T; 28]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh_docs::sync::PeerIdBytes"],["
    source§

    impl<T> Fill for [T; 27]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh_docs::sync::PeerIdBytes"],["
    source§

    impl<T> Fill for [T; 26]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh_docs::sync::PeerIdBytes"],["
    source§

    impl<T> Fill for [T; 25]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh_docs::sync::PeerIdBytes"],["
    source§

    impl<T> Fill for [T; 24]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh_docs::sync::PeerIdBytes"],["
    source§

    impl<T> Fill for [T; 23]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh_docs::sync::PeerIdBytes"],["
    source§

    impl<T> Fill for [T; 22]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh_docs::sync::PeerIdBytes"],["
    source§

    impl<T> Fill for [T; 21]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh_docs::sync::PeerIdBytes"],["
    source§

    impl<T> Fill for [T; 20]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh_docs::sync::PeerIdBytes"],["
    source§

    impl<T> Fill for [T; 19]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh_docs::sync::PeerIdBytes"],["
    source§

    impl<T> Fill for [T; 18]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh_docs::sync::PeerIdBytes"],["
    source§

    impl<T> Fill for [T; 17]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh_docs::sync::PeerIdBytes"],["
    source§

    impl<T> Fill for [T; 16]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh_docs::sync::PeerIdBytes"],["
    source§

    impl<T> Fill for [T; 15]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh_docs::sync::PeerIdBytes"],["
    source§

    impl<T> Fill for [T; 14]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh_docs::sync::PeerIdBytes"],["
    source§

    impl<T> Fill for [T; 13]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh_docs::sync::PeerIdBytes"],["
    source§

    impl<T> Fill for [T; 12]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh_docs::sync::PeerIdBytes"],["
    source§

    impl<T> Fill for [T; 11]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh_docs::sync::PeerIdBytes"],["
    source§

    impl<T> Fill for [T; 10]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh_docs::sync::PeerIdBytes"],["
    source§

    impl<T> Fill for [T; 9]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh_docs::sync::PeerIdBytes"],["
    source§

    impl<T> Fill for [T; 8]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh_docs::sync::PeerIdBytes"],["
    source§

    impl<T> Fill for [T; 7]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh_docs::sync::PeerIdBytes"],["
    source§

    impl<T> Fill for [T; 6]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh_docs::sync::PeerIdBytes"],["
    source§

    impl<T> Fill for [T; 5]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh_docs::sync::PeerIdBytes"],["
    source§

    impl<T> Fill for [T; 4]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh_docs::sync::PeerIdBytes"],["
    source§

    impl<T> Fill for [T; 3]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh_docs::sync::PeerIdBytes"],["
    source§

    impl<T> Fill for [T; 2]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh_docs::sync::PeerIdBytes"],["
    source§

    impl<T> Fill for [T; 1]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh_docs::sync::PeerIdBytes"],["
    source§

    impl<T> Fill for [T; 0]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh_docs::sync::PeerIdBytes"],["
    source§

    impl<T> Fill for [T; 2048]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh_docs::sync::PeerIdBytes"],["
    source§

    impl<T> Fill for [T; 1024]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh_docs::sync::PeerIdBytes"],["
    source§

    impl<T> Fill for [T; 512]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh_docs::sync::PeerIdBytes"],["
    source§

    impl<T> Fill for [T; 256]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh_docs::sync::PeerIdBytes"],["
    source§

    impl<T> Fill for [T; 128]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh_docs::sync::PeerIdBytes"],["
    source§

    impl<T> Fill for [T; 64]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh_docs::sync::PeerIdBytes"],["
    §

    impl<'a> FindToken<&'a u8> for [u8; 32]

    §

    fn find_token(&self, token: &u8) -> bool

    Returns true if self contains the token
    ","FindToken<&'a u8>","iroh_docs::sync::PeerIdBytes"],["
    §

    impl FindToken<u8> for [u8; 32]

    §

    fn find_token(&self, token: u8) -> bool

    Returns true if self contains the token
    ","FindToken","iroh_docs::sync::PeerIdBytes"],["
    §

    impl<T, const N: usize> FixedTag for [T; N]

    §

    const TAG: Tag = Tag::Sequence

    ASN.1 tag
    ","FixedTag","iroh_docs::sync::PeerIdBytes"],["
    §

    impl From<&Signature> for [u8; 64]

    §

    fn from(sig: &Signature) -> [u8; 64]

    Converts to this type from the input type.
    ","From<&Signature>","iroh_docs::sync::PeerIdBytes"],["
    source§

    impl From<AuthorId> for [u8; 32]

    source§

    fn from(value: AuthorId) -> Self

    Converts to this type from the input type.
    ","From","iroh_docs::sync::PeerIdBytes"],["
    §

    impl<T> From<GenericArray<T, UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>, B0>, B0>>> for [T; 32]

    §

    fn from(\n sel: GenericArray<T, UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>, B0>, B0>>\n) -> [T; 32]

    Converts to this type from the input type.
    ","From, B0>, B0>, B0>, B0>, B0>>>","iroh_docs::sync::PeerIdBytes"],["
    §

    impl From<Hash> for [u8; 32]

    §

    fn from(value: Hash) -> [u8; 32]

    Converts to this type from the input type.
    ","From","iroh_docs::sync::PeerIdBytes"],["
    §

    impl From<Hash> for [u8; 32]

    §

    fn from(hash: Hash) -> [u8; 32]

    Converts to this type from the input type.
    ","From","iroh_docs::sync::PeerIdBytes"],["
    §

    impl<const N: usize, const UPPERCASE: bool> From<HexOrBin<N, UPPERCASE>> for [u8; N]

    §

    fn from(hex_or_bin: HexOrBin<N, UPPERCASE>) -> [u8; N]

    Converts to this type from the input type.
    ","From>","iroh_docs::sync::PeerIdBytes"],["
    §

    impl From<MacAddr> for [u8; 6]

    §

    fn from(addr: MacAddr) -> [u8; 6]

    Converts to this type from the input type.
    ","From","iroh_docs::sync::PeerIdBytes"],["
    source§

    impl From<NamespaceId> for [u8; 32]

    source§

    fn from(value: NamespaceId) -> Self

    Converts to this type from the input type.
    ","From","iroh_docs::sync::PeerIdBytes"],["
    §

    impl From<Signature> for [u8; 64]

    §

    fn from(sig: Signature) -> [u8; 64]

    Converts to this type from the input type.
    ","From","iroh_docs::sync::PeerIdBytes"],["
    source§

    impl<T, const N: usize> From<Simd<T, N>> for [T; N]

    source§

    fn from(vector: Simd<T, N>) -> [T; N]

    Converts to this type from the input type.
    ","From>","iroh_docs::sync::PeerIdBytes"],["
    §

    impl<const N: usize, T> FromBytes for [T; N]
    where\n T: FromBytes,

    §

    fn ref_from(bytes: &[u8]) -> Option<&Self>
    where\n Self: Sized,

    Interprets the given bytes as a &Self without copying. Read more
    §

    fn ref_from_prefix(bytes: &[u8]) -> Option<&Self>
    where\n Self: Sized,

    Interprets the prefix of the given bytes as a &Self without copying. Read more
    §

    fn ref_from_suffix(bytes: &[u8]) -> Option<&Self>
    where\n Self: Sized,

    Interprets the suffix of the given bytes as a &Self without copying. Read more
    §

    fn slice_from(bytes: &[u8]) -> Option<&[Self]>
    where\n Self: Sized,

    Interprets the given bytes as a &[Self] without copying. Read more
    §

    fn slice_from_prefix(bytes: &[u8], count: usize) -> Option<(&[Self], &[u8])>
    where\n Self: Sized,

    Interprets the prefix of the given bytes as a &[Self] with length\nequal to count without copying. Read more
    §

    fn slice_from_suffix(bytes: &[u8], count: usize) -> Option<(&[u8], &[Self])>
    where\n Self: Sized,

    Interprets the suffix of the given bytes as a &[Self] with length\nequal to count without copying. Read more
    §

    fn read_from(bytes: &[u8]) -> Option<Self>
    where\n Self: Sized,

    Reads a copy of Self from bytes. Read more
    §

    fn read_from_prefix(bytes: &[u8]) -> Option<Self>
    where\n Self: Sized,

    Reads a copy of Self from the prefix of bytes. Read more
    §

    fn read_from_suffix(bytes: &[u8]) -> Option<Self>
    where\n Self: Sized,

    Reads a copy of Self from the suffix of bytes. Read more
    ","FromBytes","iroh_docs::sync::PeerIdBytes"],["
    source§

    impl FromHex for [u8; 32]

    §

    type Error = FromHexError

    source§

    fn from_hex<T>(hex: T) -> Result<[u8; 32], <[u8; 32] as FromHex>::Error>
    where\n T: AsRef<[u8]>,

    Creates an instance of type Self from the given hex string, or fails\nwith a custom error type. Read more
    ","FromHex","iroh_docs::sync::PeerIdBytes"],["
    §

    impl<const N: usize, T> FromZeroes for [T; N]
    where\n T: FromZeroes,

    §

    fn zero(&mut self)

    Overwrites self with zeroes. Read more
    §

    fn new_zeroed() -> Self
    where\n Self: Sized,

    Creates an instance of Self from zeroed bytes. Read more
    ","FromZeroes","iroh_docs::sync::PeerIdBytes"],["
    §

    impl<T> Hash for [T; 32]
    where\n T: Hash,

    §

    fn hash<H>(&self, state: &mut H)
    where\n H: Hasher,

    Feeds this value into the given Hasher.
    §

    fn hash_slice<H>(data: &[Self], state: &mut H)
    where\n H: Hasher,\n Self: Sized,

    Feeds a slice of this type into the given Hasher.
    ","Hash","iroh_docs::sync::PeerIdBytes"],["
    1.0.0 · source§

    impl<T, const N: usize> Hash for [T; N]
    where\n T: Hash,

    The hash of an array is the same as that of the corresponding slice,\nas required by the Borrow implementation.

    \n\n
    use std::hash::BuildHasher;\n\nlet b = std::hash::RandomState::new();\nlet a: [u8; 3] = [0xa8, 0x3c, 0x09];\nlet s: &[u8] = &[0xa8, 0x3c, 0x09];\nassert_eq!(b.hash_one(a), b.hash_one(s));
    \n
    source§

    fn hash<H>(&self, state: &mut H)
    where\n H: Hasher,

    Feeds this value into the given Hasher. Read more
    1.3.0 · source§

    fn hash_slice<H>(data: &[Self], state: &mut H)
    where\n H: Hasher,\n Self: Sized,

    Feeds a slice of this type into the given Hasher. Read more
    ","Hash","iroh_docs::sync::PeerIdBytes"],["
    1.50.0 · source§

    impl<T, I, const N: usize> Index<I> for [T; N]
    where\n [T]: Index<I>,

    §

    type Output = <[T] as Index<I>>::Output

    The returned type after indexing.
    source§

    fn index(&self, index: I) -> &<[T; N] as Index<I>>::Output

    Performs the indexing (container[index]) operation. Read more
    ","Index","iroh_docs::sync::PeerIdBytes"],["
    1.50.0 · source§

    impl<T, I, const N: usize> IndexMut<I> for [T; N]
    where\n [T]: IndexMut<I>,

    source§

    fn index_mut(&mut self, index: I) -> &mut <[T; N] as Index<I>>::Output

    Performs the mutable indexing (container[index]) operation. Read more
    ","IndexMut","iroh_docs::sync::PeerIdBytes"],["
    §

    impl InputLength for [u8; 32]

    §

    fn input_len(&self) -> usize

    Calculates the input length, as indicated by its name,\nand the name of the trait itself
    ","InputLength","iroh_docs::sync::PeerIdBytes"],["
    1.53.0 · source§

    impl<T, const N: usize> IntoIterator for [T; N]

    source§

    fn into_iter(self) -> <[T; N] as IntoIterator>::IntoIter

    Creates a consuming iterator, that is, one that moves each value out of\nthe array (from start to end). The array cannot be used after calling\nthis unless T implements Copy, so the whole array is copied.

    \n

    Arrays have special behavior when calling .into_iter() prior to the\n2021 edition – see the array Editions section for more information.

    \n
    §

    type Item = T

    The type of the elements being iterated over.
    §

    type IntoIter = IntoIter<T, N>

    Which kind of iterator are we turning this into?
    ","IntoIterator","iroh_docs::sync::PeerIdBytes"],["
    §

    impl<const N: usize> IntoResponse for [u8; N]

    §

    fn into_response(self) -> Response<Body>

    Create a response.
    ","IntoResponse","iroh_docs::sync::PeerIdBytes"],["
    §

    impl<Fut, const N: usize> Join for [Fut; N]
    where\n Fut: IntoFuture,

    §

    type Output = [<Fut as IntoFuture>::Output; N]

    The resulting output type.
    §

    type Future = Join<<Fut as IntoFuture>::IntoFuture, N>

    The Future implementation returned by this method.
    §

    fn join(self) -> <[Fut; N] as Join>::Future

    Waits for multiple futures to complete. Read more
    ","Join","iroh_docs::sync::PeerIdBytes"],["
    §

    impl<const N: usize, T> Key for [T; N]
    where\n T: Key,

    §

    fn compare(data1: &[u8], data2: &[u8]) -> Ordering

    Compare data1 with data2
    ","Key","iroh_docs::sync::PeerIdBytes"],["
    §

    impl<T, const N: usize> MaxSize for [T; N]
    where\n T: MaxSize,

    §

    const POSTCARD_MAX_SIZE: usize = _

    The maximum possible size that the serialization of this\ntype can have, in bytes.
    ","MaxSize","iroh_docs::sync::PeerIdBytes"],["
    §

    impl<S, const N: usize> Merge for [S; N]
    where\n S: IntoStream,

    §

    type Item = <Merge<<S as IntoStream>::IntoStream, N> as Stream>::Item

    The resulting output type.
    §

    type Stream = Merge<<S as IntoStream>::IntoStream, N>

    The stream type.
    §

    fn merge(self) -> <[S; N] as Merge>::Stream

    Combine multiple streams into a single stream.
    ","Merge","iroh_docs::sync::PeerIdBytes"],["
    1.0.0 · source§

    impl<T, const N: usize> Ord for [T; N]
    where\n T: Ord,

    Implements comparison of arrays lexicographically.

    \n
    source§

    fn cmp(&self, other: &[T; N]) -> Ordering

    This method returns an Ordering between self and other. Read more
    1.21.0 · source§

    fn max(self, other: Self) -> Self
    where\n Self: Sized,

    Compares and returns the maximum of two values. Read more
    1.21.0 · source§

    fn min(self, other: Self) -> Self
    where\n Self: Sized,

    Compares and returns the minimum of two values. Read more
    1.50.0 · source§

    fn clamp(self, min: Self, max: Self) -> Self
    where\n Self: Sized + PartialOrd,

    Restrict a value to a certain interval. Read more
    ","Ord","iroh_docs::sync::PeerIdBytes"],["
    1.0.0 · source§

    impl<T, U, const N: usize> PartialEq<&[U]> for [T; N]
    where\n T: PartialEq<U>,

    source§

    fn eq(&self, other: &&[U]) -> bool

    This method tests for self and other values to be equal, and is used\nby ==.
    source§

    fn ne(&self, other: &&[U]) -> bool

    This method tests for !=. The default implementation is almost always\nsufficient, and should not be overridden without very good reason.
    ","PartialEq<&[U]>","iroh_docs::sync::PeerIdBytes"],["
    1.0.0 · source§

    impl<T, U, const N: usize> PartialEq<&mut [U]> for [T; N]
    where\n T: PartialEq<U>,

    source§

    fn eq(&self, other: &&mut [U]) -> bool

    This method tests for self and other values to be equal, and is used\nby ==.
    source§

    fn ne(&self, other: &&mut [U]) -> bool

    This method tests for !=. The default implementation is almost always\nsufficient, and should not be overridden without very good reason.
    ","PartialEq<&mut [U]>","iroh_docs::sync::PeerIdBytes"],["
    1.0.0 · source§

    impl<T, U, const N: usize> PartialEq<[U]> for [T; N]
    where\n T: PartialEq<U>,

    source§

    fn eq(&self, other: &[U]) -> bool

    This method tests for self and other values to be equal, and is used\nby ==.
    source§

    fn ne(&self, other: &[U]) -> bool

    This method tests for !=. The default implementation is almost always\nsufficient, and should not be overridden without very good reason.
    ","PartialEq<[U]>","iroh_docs::sync::PeerIdBytes"],["
    1.0.0 · source§

    impl<T, U, const N: usize> PartialEq<[U; N]> for [T; N]
    where\n T: PartialEq<U>,

    source§

    fn eq(&self, other: &[U; N]) -> bool

    This method tests for self and other values to be equal, and is used\nby ==.
    source§

    fn ne(&self, other: &[U; N]) -> bool

    This method tests for !=. The default implementation is almost always\nsufficient, and should not be overridden without very good reason.
    ","PartialEq<[U; N]>","iroh_docs::sync::PeerIdBytes"],["
    §

    impl PartialEq<Cookie> for [u8; 4]

    §

    fn eq(&self, other: &Cookie) -> bool

    This method tests for self and other values to be equal, and is used\nby ==.
    1.0.0 · source§

    fn ne(&self, other: &Rhs) -> bool

    This method tests for !=. The default implementation is almost always\nsufficient, and should not be overridden without very good reason.
    ","PartialEq","iroh_docs::sync::PeerIdBytes"],["
    §

    impl<A, B, const N: usize, const M: usize> PartialEq<Vec<A, N>> for [B; M]
    where\n A: PartialEq<B>,

    §

    fn eq(&self, other: &Vec<A, N>) -> bool

    This method tests for self and other values to be equal, and is used\nby ==.
    1.0.0 · source§

    fn ne(&self, other: &Rhs) -> bool

    This method tests for !=. The default implementation is almost always\nsufficient, and should not be overridden without very good reason.
    ","PartialEq>","iroh_docs::sync::PeerIdBytes"],["
    1.0.0 · source§

    impl<T, const N: usize> PartialOrd for [T; N]
    where\n T: PartialOrd,

    Implements comparison of arrays lexicographically.

    \n
    source§

    fn partial_cmp(&self, other: &[T; N]) -> Option<Ordering>

    This method returns an ordering between self and other values if one exists. Read more
    source§

    fn lt(&self, other: &[T; N]) -> bool

    This method tests less than (for self and other) and is used by the < operator. Read more
    source§

    fn le(&self, other: &[T; N]) -> bool

    This method tests less than or equal to (for self and other) and is used by the <=\noperator. Read more
    source§

    fn ge(&self, other: &[T; N]) -> bool

    This method tests greater than or equal to (for self and other) and is used by the >=\noperator. Read more
    source§

    fn gt(&self, other: &[T; N]) -> bool

    This method tests greater than (for self and other) and is used by the > operator. Read more
    ","PartialOrd","iroh_docs::sync::PeerIdBytes"],["
    §

    impl<Fut, const N: usize> Race for [Fut; N]
    where\n Fut: IntoFuture,

    §

    type Output = <Fut as IntoFuture>::Output

    The resulting output type.
    §

    type Future = Race<<Fut as IntoFuture>::IntoFuture, N>

    Which kind of future are we turning this into?
    §

    fn race(self) -> <[Fut; N] as Race>::Future

    Wait for the first future to complete. Read more
    ","Race","iroh_docs::sync::PeerIdBytes"],["
    §

    impl<Fut, T, E, const N: usize> RaceOk for [Fut; N]
    where\n Fut: IntoFuture<Output = Result<T, E>>,

    §

    type Output = T

    The resulting output type.
    §

    type Error = AggregateError<E, N>

    The resulting error type.
    §

    type Future = RaceOk<<Fut as IntoFuture>::IntoFuture, T, E, N>

    Which kind of future are we turning this into?
    §

    fn race_ok(self) -> <[Fut; N] as RaceOk>::Future

    Waits for the first successful future to complete.
    ","RaceOk","iroh_docs::sync::PeerIdBytes"],["
    §

    impl<T, const N: usize> Schema for [T; N]
    where\n T: Schema,

    §

    const SCHEMA: &'static NamedType = _

    A recursive data structure that describes the schema of the given\ntype.
    ","Schema","iroh_docs::sync::PeerIdBytes"],["
    source§

    impl<T> Serialize for [T; 32]
    where\n T: Serialize,

    source§

    fn serialize<S>(\n &self,\n serializer: S\n) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>
    where\n S: Serializer,

    Serialize this value into the given Serde serializer. Read more
    ","Serialize","iroh_docs::sync::PeerIdBytes"],["
    source§

    impl<const N: usize> Serialize for [u8; N]

    source§

    fn serialize<S>(\n &self,\n serializer: S\n) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>
    where\n S: Serializer,

    ","Serialize","iroh_docs::sync::PeerIdBytes"],["
    1.51.0 · source§

    impl<T, const N: usize> SlicePattern for [T; N]

    §

    type Item = T

    🔬This is a nightly-only experimental API. (slice_pattern)
    The element type of the slice being matched on.
    source§

    fn as_slice(&self) -> &[<[T; N] as SlicePattern>::Item]

    🔬This is a nightly-only experimental API. (slice_pattern)
    Currently, the consumers of SlicePattern need a slice.
    ","SlicePattern","iroh_docs::sync::PeerIdBytes"],["
    1.34.0 · source§

    impl<T, const N: usize> TryFrom<&[T]> for [T; N]
    where\n T: Copy,

    Tries to create an array [T; N] by copying from a slice &[T]. Succeeds if\nslice.len() == N.

    \n\n
    let bytes: [u8; 3] = [1, 0, 2];\n\nlet bytes_head: [u8; 2] = <[u8; 2]>::try_from(&bytes[0..2]).unwrap();\nassert_eq!(1, u16::from_le_bytes(bytes_head));\n\nlet bytes_tail: [u8; 2] = bytes[1..3].try_into().unwrap();\nassert_eq!(512, u16::from_le_bytes(bytes_tail));
    \n
    §

    type Error = TryFromSliceError

    The type returned in the event of a conversion error.
    source§

    fn try_from(slice: &[T]) -> Result<[T; N], TryFromSliceError>

    Performs the conversion.
    ","TryFrom<&[T]>","iroh_docs::sync::PeerIdBytes"],["
    1.59.0 · source§

    impl<T, const N: usize> TryFrom<&mut [T]> for [T; N]
    where\n T: Copy,

    Tries to create an array [T; N] by copying from a mutable slice &mut [T].\nSucceeds if slice.len() == N.

    \n\n
    let mut bytes: [u8; 3] = [1, 0, 2];\n\nlet bytes_head: [u8; 2] = <[u8; 2]>::try_from(&mut bytes[0..2]).unwrap();\nassert_eq!(1, u16::from_le_bytes(bytes_head));\n\nlet bytes_tail: [u8; 2] = (&mut bytes[1..3]).try_into().unwrap();\nassert_eq!(512, u16::from_le_bytes(bytes_tail));
    \n
    §

    type Error = TryFromSliceError

    The type returned in the event of a conversion error.
    source§

    fn try_from(slice: &mut [T]) -> Result<[T; N], TryFromSliceError>

    Performs the conversion.
    ","TryFrom<&mut [T]>","iroh_docs::sync::PeerIdBytes"],["
    §

    impl<T, A, const N: usize> TryFrom<Vec<T, A>> for [T; N]
    where\n A: Allocator,

    §

    fn try_from(vec: Vec<T, A>) -> Result<[T; N], Vec<T, A>>

    Gets the entire contents of the Vec<T> as an array,\nif its size exactly matches that of the requested array.

    \n
    §Examples
    \n
    assert_eq!(vec![1, 2, 3].try_into(), Ok([1, 2, 3]));\nassert_eq!(<Vec<i32>>::new().try_into(), Ok([]));
    \n

    If the length doesn’t match, the input comes back in Err:

    \n\n
    let r: Result<[i32; 4], _> = (0..10).collect::<Vec<_>>().try_into();\nassert_eq!(r, Err(vec![0, 1, 2, 3, 4, 5, 6, 7, 8, 9]));
    \n

    If you’re fine with just getting a prefix of the Vec<T>,\nyou can call .truncate(N) first.

    \n\n
    let mut v = String::from(\"hello world\").into_bytes();\nv.sort();\nv.truncate(2);\nlet [a, b]: [_; 2] = v.try_into().unwrap();\nassert_eq!(a, b' ');\nassert_eq!(b, b'd');
    \n
    §

    type Error = Vec<T, A>

    The type returned in the event of a conversion error.
    ","TryFrom>","iroh_docs::sync::PeerIdBytes"],["
    1.48.0 · source§

    impl<T, A, const N: usize> TryFrom<Vec<T, A>> for [T; N]
    where\n A: Allocator,

    source§

    fn try_from(vec: Vec<T, A>) -> Result<[T; N], Vec<T, A>>

    Gets the entire contents of the Vec<T> as an array,\nif its size exactly matches that of the requested array.

    \n
    §Examples
    \n
    assert_eq!(vec![1, 2, 3].try_into(), Ok([1, 2, 3]));\nassert_eq!(<Vec<i32>>::new().try_into(), Ok([]));
    \n

    If the length doesn’t match, the input comes back in Err:

    \n\n
    let r: Result<[i32; 4], _> = (0..10).collect::<Vec<_>>().try_into();\nassert_eq!(r, Err(vec![0, 1, 2, 3, 4, 5, 6, 7, 8, 9]));
    \n

    If you’re fine with just getting a prefix of the Vec<T>,\nyou can call .truncate(N) first.

    \n\n
    let mut v = String::from(\"hello world\").into_bytes();\nv.sort();\nv.truncate(2);\nlet [a, b]: [_; 2] = v.try_into().unwrap();\nassert_eq!(a, b' ');\nassert_eq!(b, b'd');
    \n
    §

    type Error = Vec<T, A>

    The type returned in the event of a conversion error.
    ","TryFrom>","iroh_docs::sync::PeerIdBytes"],["
    §

    impl<Fut, T, E, const N: usize> TryJoin for [Fut; N]
    where\n Fut: IntoFuture<Output = Result<T, E>>,

    §

    type Output = [T; N]

    The resulting output type.
    §

    type Error = E

    The resulting error type.
    §

    type Future = TryJoin<<Fut as IntoFuture>::IntoFuture, T, E, N>

    Which kind of future are we turning this into?
    §

    fn try_join(self) -> <[Fut; N] as TryJoin>::Future

    Waits for multiple futures to complete, either returning when all\nfutures complete successfully, or return early when any future completes\nwith an error.
    ","TryJoin","iroh_docs::sync::PeerIdBytes"],["
    §

    impl<const N: usize, T> Value for [T; N]
    where\n T: Value,

    §

    type SelfType<'a> = [<T as Value>::SelfType<'a>; N]\nwhere\n [T; N]: 'a

    SelfType<’a> must be the same type as Self with all lifetimes replaced with ’a
    §

    type AsBytes<'a> = Vec<u8>\nwhere\n [T; N]: 'a

    §

    fn fixed_width() -> Option<usize>

    Width of a fixed type, or None for variable width
    §

    fn from_bytes<'a>(data: &'a [u8]) -> [<T as Value>::SelfType<'a>; N]
    where\n [T; N]: 'a,

    Deserializes data\nImplementations may return a view over data, or an owned type
    §

    fn as_bytes<'a, 'b>(value: &'a <[T; N] as Value>::SelfType<'b>) -> Vec<u8> ⓘ
    where\n 'b: 'a,\n [T; N]: 'a + 'b,

    Serialize the value to a slice
    §

    fn type_name() -> TypeName

    Globally unique identifier for this type
    ","Value","iroh_docs::sync::PeerIdBytes"],["
    §

    impl<T, const N: usize> ValueOrd for [T; N]
    where\n T: DerOrd,

    §

    fn value_cmp(&self, other: &[T; N]) -> Result<Ordering, Error>

    Return an Ordering between value portion of TLV-encoded self and\nother when serialized as ASN.1 DER.
    ","ValueOrd","iroh_docs::sync::PeerIdBytes"],["
    §

    impl<Z, const N: usize> Zeroize for [Z; N]
    where\n Z: Zeroize,

    Impl [Zeroize] on arrays of types that impl [Zeroize].

    \n
    §

    fn zeroize(&mut self)

    Zero out this object from memory using Rust intrinsics which ensure the\nzeroization operation is not “optimized away” by the compiler.
    ","Zeroize","iroh_docs::sync::PeerIdBytes"],["
    §

    impl<S, const N: usize> Zip for [S; N]
    where\n S: IntoStream,

    §

    type Item = <Zip<<S as IntoStream>::IntoStream, N> as Stream>::Item

    What’s the return type of our stream?
    §

    type Stream = Zip<<S as IntoStream>::IntoStream, N>

    What stream do we return?
    §

    fn zip(self) -> <[S; N] as Zip>::Stream

    Combine multiple streams into a single stream.
    ","Zip","iroh_docs::sync::PeerIdBytes"],["
    source§

    impl<T, const N: usize> ConstParamTy for [T; N]
    where\n T: ConstParamTy,

    ","ConstParamTy","iroh_docs::sync::PeerIdBytes"],["
    1.58.0 · source§

    impl<T, const N: usize> Copy for [T; N]
    where\n T: Copy,

    ","Copy","iroh_docs::sync::PeerIdBytes"],["
    1.0.0 · source§

    impl<T, const N: usize> Eq for [T; N]
    where\n T: Eq,

    ","Eq","iroh_docs::sync::PeerIdBytes"],["
    source§

    impl<T, const N: usize> StructuralPartialEq for [T; N]

    ","StructuralPartialEq","iroh_docs::sync::PeerIdBytes"],["
    §

    impl<const N: usize, T> Unaligned for [T; N]
    where\n T: Unaligned,

    ","Unaligned","iroh_docs::sync::PeerIdBytes"],["
    §

    impl<Z, const N: usize> ZeroizeOnDrop for [Z; N]
    where\n Z: ZeroizeOnDrop,

    Impl [ZeroizeOnDrop] on arrays of types that impl [ZeroizeOnDrop].

    \n
    ","ZeroizeOnDrop","iroh_docs::sync::PeerIdBytes"]] };if (window.register_type_impls) {window.register_type_impls(type_impls);} else {window.pending_type_impls = type_impls;}})() \ No newline at end of file