diff --git a/pr/2674/docs/bulk/all.html b/pr/2674/docs/bulk/all.html index bbd63a9bb4..bf10005246 100644 --- a/pr/2674/docs/bulk/all.html +++ b/pr/2674/docs/bulk/all.html @@ -1 +1 @@ -
pub(crate) fn collect_and_print(
+ category: &'static str,
+ metrics: Option<&impl Iterable>
+)pub enum DecodeKind {
+DecodeKind in iroh::base::base32 - Rust Enum iroh::base::base32::DecodeKind
pub enum DecodeKind {
Length,
Symbol,
Trailing,
@@ -58,14 +58,7 @@ sufficient, and should not be overridden without very good reason.
From<T>,self into a Left variant of Either<Self, Self>
-if into_left is true.
-Converts self into a Right variant of Either<Self, Self>
-otherwise. Read moreself into a Left variant of Either<Self, Self>
-if into_left(&self) returns true.
-Converts self into a Right variant of Either<Self, Self>
-otherwise. Read moreself and passes that borrow into the pipe function. Read morepub enum HexOrBase32ParseError {
+HexOrBase32ParseError in iroh::base::base32 - Rust Enum iroh::base::base32::HexOrBase32ParseError
source · pub enum HexOrBase32ParseError {
Base32(DecodeError),
Hex(FromHexError),
}
Expand description
Error when parsing a hex or base32 string.
Variants§
§Base32(DecodeError)
Error when decoding the base32.
§Hex(FromHexError)
Error when decoding the public key.
-Trait Implementations§
source§impl Debug for HexOrBase32ParseError
source§impl Display for HexOrBase32ParseError
source§impl Error for HexOrBase32ParseError
source§fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more1.0.0 · source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()source§impl From<DecodeError> for HexOrBase32ParseError
source§fn from(source: DecodeError) -> HexOrBase32ParseError
Converts to this type from the input type.source§impl From<FromHexError> for HexOrBase32ParseError
source§fn from(source: FromHexError) -> HexOrBase32ParseError
Converts to this type from the input type.source§impl From<HexOrBase32ParseError> for KeyParsingError
source§fn from(source: HexOrBase32ParseError) -> KeyParsingError
Converts to this type from the input type.Auto Trait Implementations§
§impl Freeze for HexOrBase32ParseError
§impl RefUnwindSafe for HexOrBase32ParseError
§impl Send for HexOrBase32ParseError
§impl Sync for HexOrBase32ParseError
§impl Unpin for HexOrBase32ParseError
§impl UnwindSafe for HexOrBase32ParseError
Blanket Implementations§
Trait Implementations§
source§impl Debug for HexOrBase32ParseError
source§impl Display for HexOrBase32ParseError
source§impl Error for HexOrBase32ParseError
source§fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more1.0.0 · source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()source§impl From<DecodeError> for HexOrBase32ParseError
source§fn from(source: DecodeError) -> HexOrBase32ParseError
Converts to this type from the input type.source§impl From<FromHexError> for HexOrBase32ParseError
source§fn from(source: FromHexError) -> HexOrBase32ParseError
Converts to this type from the input type.source§impl From<HexOrBase32ParseError> for KeyParsingError
source§fn from(source: HexOrBase32ParseError) -> KeyParsingError
Converts to this type from the input type.Auto Trait Implementations§
§impl Freeze for HexOrBase32ParseError
§impl RefUnwindSafe for HexOrBase32ParseError
§impl Send for HexOrBase32ParseError
§impl Sync for HexOrBase32ParseError
§impl Unpin for HexOrBase32ParseError
§impl UnwindSafe for HexOrBase32ParseError
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
source§impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts self into a Left variant of Either<Self, Self>
-if into_left is true.
-Converts self into a Right variant of Either<Self, Self>
-otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts self into a Left variant of Either<Self, Self>
-if into_left(&self) returns true.
-Converts self into a Right variant of Either<Self, Self>
-otherwise. Read more§impl<T> Pipe for Twhere
+
§impl<T> Pipe for Twhere
T: ?Sized,
§fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> Rwhere
Self: Sized,
Pipes by value. This is generally the method you want to use. Read more§fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> Rwhere
R: 'a,
Borrows self and passes that borrow into the pipe function. Read more§fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> Rwhere
diff --git a/pr/2674/docs/iroh/base/base32/fn.fmt.html b/pr/2674/docs/iroh/base/base32/fn.fmt.html
index c30d914c65..e38236a003 100644
--- a/pr/2674/docs/iroh/base/base32/fn.fmt.html
+++ b/pr/2674/docs/iroh/base/base32/fn.fmt.html
@@ -1,2 +1,2 @@
-fmt in iroh::base::base32 - Rust pub fn fmt(bytes: impl AsRef<[u8]>) -> String
Expand description
Convert to a base32 string
+fmt in iroh::base::base32 - Rust
\ No newline at end of file
diff --git a/pr/2674/docs/iroh/base/base32/fn.fmt_append.html b/pr/2674/docs/iroh/base/base32/fn.fmt_append.html
index 44cc9ea822..5a121d062c 100644
--- a/pr/2674/docs/iroh/base/base32/fn.fmt_append.html
+++ b/pr/2674/docs/iroh/base/base32/fn.fmt_append.html
@@ -1,2 +1,2 @@
-fmt_append in iroh::base::base32 - Rust Function iroh::base::base32::fmt_append
source · pub fn fmt_append(bytes: impl AsRef<[u8]>, out: &mut String)
Expand description
Convert to a base32 string and append out out
+fmt_append in iroh::base::base32 - Rust
\ No newline at end of file
diff --git a/pr/2674/docs/iroh/base/base32/fn.fmt_short.html b/pr/2674/docs/iroh/base/base32/fn.fmt_short.html
index 7093283864..b86b4ea5b9 100644
--- a/pr/2674/docs/iroh/base/base32/fn.fmt_short.html
+++ b/pr/2674/docs/iroh/base/base32/fn.fmt_short.html
@@ -1,2 +1,2 @@
-fmt_short in iroh::base::base32 - Rust pub fn fmt_short(bytes: impl AsRef<[u8]>) -> String
Expand description
Convert to a base32 string limited to the first 10 bytes
+fmt_short in iroh::base::base32 - Rust
\ No newline at end of file
diff --git a/pr/2674/docs/iroh/base/base32/fn.parse_array.html b/pr/2674/docs/iroh/base/base32/fn.parse_array.html
index 14fd44d7b3..034374828f 100644
--- a/pr/2674/docs/iroh/base/base32/fn.parse_array.html
+++ b/pr/2674/docs/iroh/base/base32/fn.parse_array.html
@@ -1,2 +1,2 @@
-parse_array in iroh::base::base32 - Rust Function iroh::base::base32::parse_array
source · pub fn parse_array<const N: usize>(input: &str) -> Result<[u8; N], DecodeError>
Expand description
Parse from a base32 string into a byte array
+parse_array in iroh::base::base32 - Rust
\ No newline at end of file
diff --git a/pr/2674/docs/iroh/base/base32/fn.parse_array_hex_or_base32.html b/pr/2674/docs/iroh/base/base32/fn.parse_array_hex_or_base32.html
index 2e8ebe0472..c683e71a91 100644
--- a/pr/2674/docs/iroh/base/base32/fn.parse_array_hex_or_base32.html
+++ b/pr/2674/docs/iroh/base/base32/fn.parse_array_hex_or_base32.html
@@ -1,4 +1,4 @@
-parse_array_hex_or_base32 in iroh::base::base32 - Rust Function iroh::base::base32::parse_array_hex_or_base32
source · pub fn parse_array_hex_or_base32<const LEN: usize>(
+parse_array_hex_or_base32 in iroh::base::base32 - Rust Function iroh::base::base32::parse_array_hex_or_base32
source · pub fn parse_array_hex_or_base32<const LEN: usize>(
input: &str
) -> Result<[u8; LEN], HexOrBase32ParseError>
Expand description
Parse a fixed length hex or base32 string into a byte array
For fixed length we can know the encoding by the length of the string.
diff --git a/pr/2674/docs/iroh/base/base32/fn.parse_vec.html b/pr/2674/docs/iroh/base/base32/fn.parse_vec.html
index de93d59a71..8c7d2157bb 100644
--- a/pr/2674/docs/iroh/base/base32/fn.parse_vec.html
+++ b/pr/2674/docs/iroh/base/base32/fn.parse_vec.html
@@ -1,2 +1,2 @@
-parse_vec in iroh::base::base32 - Rust pub fn parse_vec(input: &str) -> Result<Vec<u8>, DecodeError>
Expand description
Decode form a base32 string to a vector of bytes
+parse_vec in iroh::base::base32 - Rust
\ No newline at end of file
diff --git a/pr/2674/docs/iroh/base/base32/index.html b/pr/2674/docs/iroh/base/base32/index.html
index e7d4e8d86b..b4c70b01b3 100644
--- a/pr/2674/docs/iroh/base/base32/index.html
+++ b/pr/2674/docs/iroh/base/base32/index.html
@@ -1 +1 @@
-iroh::base::base32 - Rust Structs§
- Decoding error
Enums§
- Decoding error kind
- Error when parsing a hex or base32 string.
Functions§
- Convert to a base32 string
- Convert to a base32 string and append out
out - Convert to a base32 string limited to the first 10 bytes
- Parse from a base32 string into a byte array
- Parse a fixed length hex or base32 string into a byte array
- Decode form a base32 string to a vector of bytes
\ No newline at end of file
+iroh::base::base32 - Rust Structs§
- Decoding error
Enums§
- Decoding error kind
- Error when parsing a hex or base32 string.
Functions§
- Convert to a base32 string
- Convert to a base32 string and append out
out - Convert to a base32 string limited to the first 10 bytes
- Parse from a base32 string into a byte array
- Parse a fixed length hex or base32 string into a byte array
- Decode form a base32 string to a vector of bytes
\ No newline at end of file
diff --git a/pr/2674/docs/iroh/base/base32/struct.DecodeError.html b/pr/2674/docs/iroh/base/base32/struct.DecodeError.html
index 6afece3fe7..a18c2b43ae 100644
--- a/pr/2674/docs/iroh/base/base32/struct.DecodeError.html
+++ b/pr/2674/docs/iroh/base/base32/struct.DecodeError.html
@@ -1,11 +1,11 @@
-DecodeError in iroh::base::base32 - Rust Struct iroh::base::base32::DecodeError
pub struct DecodeError {
+DecodeError in iroh::base::base32 - Rust Struct iroh::base::base32::DecodeError
pub struct DecodeError {
pub position: usize,
pub kind: DecodeKind,
}
Expand description
Decoding error
Fields§
§position: usizeError position
This position is always a valid input position and represents the first encountered error.
§kind: DecodeKindError kind
-Trait Implementations§
§impl Clone for DecodeError
§fn clone(&self) -> DecodeError
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more§impl Debug for DecodeError
§impl Display for DecodeError
§impl Error for DecodeError
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more1.0.0 · source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()source§impl From<DecodeError> for Error
source§fn from(source: DecodeError) -> Error
Converts to this type from the input type.source§impl From<DecodeError> for HexOrBase32ParseError
source§fn from(source: DecodeError) -> HexOrBase32ParseError
Converts to this type from the input type.§impl PartialEq for DecodeError
§fn eq(&self, other: &DecodeError) -> bool
This method tests for self and other values to be equal, and is used
+Trait Implementations§
§impl Clone for DecodeError
§fn clone(&self) -> DecodeError
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more§impl Debug for DecodeError
§impl Display for DecodeError
§impl Error for DecodeError
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more1.0.0 · source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()source§impl From<DecodeError> for Error
source§fn from(source: DecodeError) -> Error
Converts to this type from the input type.source§impl From<DecodeError> for HexOrBase32ParseError
source§fn from(source: DecodeError) -> HexOrBase32ParseError
Converts to this type from the input type.§impl PartialEq for DecodeError
§fn eq(&self, other: &DecodeError) -> bool
This method tests for self and other values to be equal, and is used
by ==.§impl Copy for DecodeError
§impl Eq for DecodeError
§impl StructuralPartialEq for DecodeError
Auto Trait Implementations§
§impl Freeze for DecodeError
§impl RefUnwindSafe for DecodeError
§impl Send for DecodeError
§impl Sync for DecodeError
§impl Unpin for DecodeError
§impl UnwindSafe for DecodeError
Blanket Implementations§
source§impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts self into a Left variant of Either<Self, Self>
-if into_left is true.
-Converts self into a Right variant of Either<Self, Self>
-otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts self into a Left variant of Either<Self, Self>
-if into_left(&self) returns true.
-Converts self into a Right variant of Either<Self, Self>
-otherwise. Read more§impl<T> Pipe for Twhere
+
§impl<T> Pipe for Twhere
T: ?Sized,
§fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> Rwhere
Self: Sized,
Pipes by value. This is generally the method you want to use. Read more§fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> Rwhere
R: 'a,
Borrows self and passes that borrow into the pipe function. Read more§fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> Rwhere
diff --git a/pr/2674/docs/iroh/base/hash/enum.BlobFormat.html b/pr/2674/docs/iroh/base/hash/enum.BlobFormat.html
index 1964030815..04a8323571 100644
--- a/pr/2674/docs/iroh/base/hash/enum.BlobFormat.html
+++ b/pr/2674/docs/iroh/base/hash/enum.BlobFormat.html
@@ -1,4 +1,4 @@
-BlobFormat in iroh::base::hash - Rust Enum iroh::base::hash::BlobFormat
source · pub enum BlobFormat {
+BlobFormat in iroh::base::hash - Rust Enum iroh::base::hash::BlobFormat
source · pub enum BlobFormat {
Raw,
HashSeq,
}
Expand description
A format identifier
@@ -74,14 +74,7 @@ operator. From<T>,source§impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts self into a Left variant of Either<Self, Self>
-if into_left is true.
-Converts self into a Right variant of Either<Self, Self>
-otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts self into a Left variant of Either<Self, Self>
-if into_left(&self) returns true.
-Converts self into a Right variant of Either<Self, Self>
-otherwise. Read more§impl<T> Pipe for Twhere
+
§impl<T> Pipe for Twhere
T: ?Sized,
§fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> Rwhere
Self: Sized,
Pipes by value. This is generally the method you want to use. Read more§fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> Rwhere
R: 'a,
Borrows self and passes that borrow into the pipe function. Read more§fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> Rwhere
diff --git a/pr/2674/docs/iroh/base/hash/index.html b/pr/2674/docs/iroh/base/hash/index.html
index 70cded2f5a..71817f71f2 100644
--- a/pr/2674/docs/iroh/base/hash/index.html
+++ b/pr/2674/docs/iroh/base/hash/index.html
@@ -1,2 +1,2 @@
-iroh::base::hash - Rust Expand description
The blake3 hash used in Iroh.
+iroh::base::hash - Rust
\ No newline at end of file
diff --git a/pr/2674/docs/iroh/base/hash/struct.Hash.html b/pr/2674/docs/iroh/base/hash/struct.Hash.html
index e4cbb2ea68..1142492f50 100644
--- a/pr/2674/docs/iroh/base/hash/struct.Hash.html
+++ b/pr/2674/docs/iroh/base/hash/struct.Hash.html
@@ -1,4 +1,4 @@
-Hash in iroh::base::hash - Rust pub struct Hash(/* private fields */);
Expand description
Hash type used throughout.
+Hash in iroh::base::hash - Rust pub struct Hash(/* private fields */);
Expand description
Hash type used throughout.
Implementations§
Trait Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for Hash
source§fn deserialize<D>(
deserializer: D
) -> Result<Hash, <D as Deserializer<'de>>::Error>where
- D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl From<PayloadDigest> for Hash
source§fn from(value: PayloadDigest) -> Hash
Converts to this type from the input type.source§impl FromIterator<Hash> for HashSeq
source§impl FromIterator<Hash> for HashSeq
§fn fmt_upper_hex(self) -> FmtUpperHex<Self>where
Self: UpperHex,
Causes self to use its UpperHex implementation when
Debug-formatted.§fn fmt_list(self) -> FmtList<Self>where
- &'a Self: for<'a> IntoIterator,
Formats each item in a sequence. Read more§impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
From<T>,source§impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts self into a Left variant of Either<Self, Self>
-if into_left is true.
-Converts self into a Right variant of Either<Self, Self>
-otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts self into a Left variant of Either<Self, Self>
-if into_left(&self) returns true.
-Converts self into a Right variant of Either<Self, Self>
-otherwise. Read more§impl<T> Pipe for Twhere
+
§impl<T> Pipe for Twhere
T: ?Sized,
§fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> Rwhere
Self: Sized,
Pipes by value. This is generally the method you want to use. Read more§fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> Rwhere
R: 'a,
Borrows self and passes that borrow into the pipe function. Read more§fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> Rwhere
diff --git a/pr/2674/docs/iroh/base/hash/struct.HashAndFormat.html b/pr/2674/docs/iroh/base/hash/struct.HashAndFormat.html
index 1b3944c675..c0483f24e3 100644
--- a/pr/2674/docs/iroh/base/hash/struct.HashAndFormat.html
+++ b/pr/2674/docs/iroh/base/hash/struct.HashAndFormat.html
@@ -1,4 +1,4 @@
-HashAndFormat in iroh::base::hash - Rust Struct iroh::base::hash::HashAndFormat
source · pub struct HashAndFormat {
+HashAndFormat in iroh::base::hash - Rust Struct iroh::base::hash::HashAndFormat
source · pub struct HashAndFormat {
pub hash: Hash,
pub format: BlobFormat,
}
Expand description
A hash and format pair
@@ -81,14 +81,7 @@ Implementations may return a view over data, or an owned typeFrom<T>,
source§impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts self into a Left variant of Either<Self, Self>
-if into_left is true.
-Converts self into a Right variant of Either<Self, Self>
-otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts self into a Left variant of Either<Self, Self>
-if into_left(&self) returns true.
-Converts self into a Right variant of Either<Self, Self>
-otherwise. Read more§impl<T> Pipe for Twhere
+
§impl<T> Pipe for Twhere
T: ?Sized,
§fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> Rwhere
Self: Sized,
Pipes by value. This is generally the method you want to use. Read more§fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> Rwhere
R: 'a,
Borrows self and passes that borrow into the pipe function. Read more§fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> Rwhere
diff --git a/pr/2674/docs/iroh/base/index.html b/pr/2674/docs/iroh/base/index.html
index 45a60cc9b7..f3aba29244 100644
--- a/pr/2674/docs/iroh/base/index.html
+++ b/pr/2674/docs/iroh/base/index.html
@@ -1,2 +1,2 @@
-iroh::base - Rust Expand description
Base types and utilities for Iroh
+iroh::base - Rust
\ No newline at end of file
diff --git a/pr/2674/docs/iroh/base/key/constant.PUBLIC_KEY_LENGTH.html b/pr/2674/docs/iroh/base/key/constant.PUBLIC_KEY_LENGTH.html
index 9704682333..ba892c3474 100644
--- a/pr/2674/docs/iroh/base/key/constant.PUBLIC_KEY_LENGTH.html
+++ b/pr/2674/docs/iroh/base/key/constant.PUBLIC_KEY_LENGTH.html
@@ -1,2 +1,2 @@
-PUBLIC_KEY_LENGTH in iroh::base::key - Rust Constant iroh::base::key::PUBLIC_KEY_LENGTH
pub const PUBLIC_KEY_LENGTH: usize = 32; // 32usize
Expand description
The length of an ed25519 PublicKey, in bytes.
+PUBLIC_KEY_LENGTH in iroh::base::key - Rust Constant iroh::base::key::PUBLIC_KEY_LENGTH
pub const PUBLIC_KEY_LENGTH: usize = 32; // 32usize
Expand description
The length of an ed25519 PublicKey, in bytes.
\ No newline at end of file
diff --git a/pr/2674/docs/iroh/base/key/enum.KeyParsingError.html b/pr/2674/docs/iroh/base/key/enum.KeyParsingError.html
index 15f63cb5f7..4159509cb3 100644
--- a/pr/2674/docs/iroh/base/key/enum.KeyParsingError.html
+++ b/pr/2674/docs/iroh/base/key/enum.KeyParsingError.html
@@ -1,10 +1,10 @@
-KeyParsingError in iroh::base::key - Rust Enum iroh::base::key::KeyParsingError
source · pub enum KeyParsingError {
+KeyParsingError in iroh::base::key - Rust Enum iroh::base::key::KeyParsingError
source · pub enum KeyParsingError {
Base32(HexOrBase32ParseError),
Key(Error),
}
Variants§
§Base32(HexOrBase32ParseError)
Error when decoding the base32.
§Key(Error)
Error when decoding the public key.
-Trait Implementations§
source§impl Debug for KeyParsingError
source§impl Display for KeyParsingError
source§impl Error for KeyParsingError
source§fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more1.0.0 · source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()source§impl From<Error> for KeyParsingError
source§fn from(source: Error) -> KeyParsingError
Converts to this type from the input type.source§impl From<HexOrBase32ParseError> for KeyParsingError
source§fn from(source: HexOrBase32ParseError) -> KeyParsingError
Converts to this type from the input type.Auto Trait Implementations§
§impl Freeze for KeyParsingError
§impl !RefUnwindSafe for KeyParsingError
§impl Send for KeyParsingError
§impl Sync for KeyParsingError
§impl Unpin for KeyParsingError
§impl !UnwindSafe for KeyParsingError
Blanket Implementations§
Trait Implementations§
source§impl Debug for KeyParsingError
source§impl Display for KeyParsingError
source§impl Error for KeyParsingError
source§fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more1.0.0 · source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()source§impl From<Error> for KeyParsingError
source§fn from(source: Error) -> KeyParsingError
Converts to this type from the input type.source§impl From<HexOrBase32ParseError> for KeyParsingError
source§fn from(source: HexOrBase32ParseError) -> KeyParsingError
Converts to this type from the input type.Auto Trait Implementations§
§impl Freeze for KeyParsingError
§impl !RefUnwindSafe for KeyParsingError
§impl Send for KeyParsingError
§impl Sync for KeyParsingError
§impl Unpin for KeyParsingError
§impl !UnwindSafe for KeyParsingError
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
source§impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts self into a Left variant of Either<Self, Self>
-if into_left is true.
-Converts self into a Right variant of Either<Self, Self>
-otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts self into a Left variant of Either<Self, Self>
-if into_left(&self) returns true.
-Converts self into a Right variant of Either<Self, Self>
-otherwise. Read more§impl<T> Pipe for Twhere
+
§impl<T> Pipe for Twhere
T: ?Sized,
§fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> Rwhere
Self: Sized,
Pipes by value. This is generally the method you want to use. Read more§fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> Rwhere
R: 'a,
Borrows self and passes that borrow into the pipe function. Read more§fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> Rwhere
diff --git a/pr/2674/docs/iroh/base/key/index.html b/pr/2674/docs/iroh/base/key/index.html
index c2374ad8a6..268729cd4d 100644
--- a/pr/2674/docs/iroh/base/key/index.html
+++ b/pr/2674/docs/iroh/base/key/index.html
@@ -1,2 +1,2 @@
-iroh::base::key - Rust Expand description
Cryptographic key handling for iroh-net.
+iroh::base::key - Rust
\ No newline at end of file
diff --git a/pr/2674/docs/iroh/base/key/struct.PublicKey.html b/pr/2674/docs/iroh/base/key/struct.PublicKey.html
index 5148a9f121..4ef9b66336 100644
--- a/pr/2674/docs/iroh/base/key/struct.PublicKey.html
+++ b/pr/2674/docs/iroh/base/key/struct.PublicKey.html
@@ -1,4 +1,4 @@
-PublicKey in iroh::base::key - Rust pub struct PublicKey(/* private fields */);
Expand description
A public key.
+PublicKey in iroh::base::key - Rust pub struct PublicKey(/* private fields */);
Expand description
A public key.
The key itself is just a 32 byte array, but a key has associated crypto
information that is cached for performance reasons.
The cache item will be refreshed every time a crypto operation is performed,
@@ -19,7 +19,7 @@ representation of the key.
Trait Implementations§
source§impl<'de> Deserialize<'de> for PublicKey
source§fn deserialize<D>(
deserializer: D
) -> Result<PublicKey, <D as Deserializer<'de>>::Error>where
- D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl FromStr for PublicKey
From<T>,source§impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts self into a Left variant of Either<Self, Self>
-if into_left is true.
-Converts self into a Right variant of Either<Self, Self>
-otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts self into a Left variant of Either<Self, Self>
-if into_left(&self) returns true.
-Converts self into a Right variant of Either<Self, Self>
-otherwise. Read more§impl<T> Pipe for Twhere
+
§impl<T> Pipe for Twhere
T: ?Sized,
§fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> Rwhere
Self: Sized,
Pipes by value. This is generally the method you want to use. Read more§fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> Rwhere
R: 'a,
Borrows self and passes that borrow into the pipe function. Read more§fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> Rwhere
diff --git a/pr/2674/docs/iroh/base/key/struct.SecretKey.html b/pr/2674/docs/iroh/base/key/struct.SecretKey.html
index cb06791ee7..79e600d5ff 100644
--- a/pr/2674/docs/iroh/base/key/struct.SecretKey.html
+++ b/pr/2674/docs/iroh/base/key/struct.SecretKey.html
@@ -1,4 +1,4 @@
-SecretKey in iroh::base::key - Rust pub struct SecretKey { /* private fields */ }
Expand description
A secret key.
+SecretKey in iroh::base::key - Rust pub struct SecretKey { /* private fields */ }
Expand description
A secret key.
Implementations§
source§impl SecretKey
sourcepub fn generate() -> SecretKey
source§impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts self into a Left variant of Either<Self, Self>
-if into_left is true.
-Converts self into a Right variant of Either<Self, Self>
-otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts self into a Left variant of Either<Self, Self>
-if into_left(&self) returns true.
-Converts self into a Right variant of Either<Self, Self>
-otherwise. Read more§impl<T> Pipe for Twhere
+
§impl<T> Pipe for Twhere
T: ?Sized,
§fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> Rwhere
Self: Sized,
Pipes by value. This is generally the method you want to use. Read more§fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> Rwhere
R: 'a,
Borrows self and passes that borrow into the pipe function. Read more§fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> Rwhere
diff --git a/pr/2674/docs/iroh/base/key/struct.SharedSecret.html b/pr/2674/docs/iroh/base/key/struct.SharedSecret.html
index 7d6fdd7578..74f18076ff 100644
--- a/pr/2674/docs/iroh/base/key/struct.SharedSecret.html
+++ b/pr/2674/docs/iroh/base/key/struct.SharedSecret.html
@@ -1,4 +1,4 @@
-SharedSecret in iroh::base::key - Rust Struct iroh::base::key::SharedSecret
source · pub struct SharedSecret(/* private fields */);
Expand description
Shared Secret.
+SharedSecret in iroh::base::key - Rust Struct iroh::base::key::SharedSecret
source · pub struct SharedSecret(/* private fields */);
Expand description
Shared Secret.
Implementations§
Trait Implementations§
Auto Trait Implementations§
Blanket Implementations§
source§impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts self into a Left variant of Either<Self, Self>
-if into_left is true.
-Converts self into a Right variant of Either<Self, Self>
-otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts self into a Left variant of Either<Self, Self>
-if into_left(&self) returns true.
-Converts self into a Right variant of Either<Self, Self>
-otherwise. Read more§impl<T> Pipe for Twhere
+
§impl<T> Pipe for Twhere
T: ?Sized,
§fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> Rwhere
Self: Sized,
Pipes by value. This is generally the method you want to use. Read more§fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> Rwhere
R: 'a,
Borrows self and passes that borrow into the pipe function. Read more§fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> Rwhere
diff --git a/pr/2674/docs/iroh/base/key/struct.Signature.html b/pr/2674/docs/iroh/base/key/struct.Signature.html
index 3735b8f3ed..db547d2d5f 100644
--- a/pr/2674/docs/iroh/base/key/struct.Signature.html
+++ b/pr/2674/docs/iroh/base/key/struct.Signature.html
@@ -1,4 +1,4 @@
-Signature in iroh::base::key - Rust #[repr(C)]pub struct Signature { /* private fields */ }
Expand description
Ed25519 signature.
+Signature in iroh::base::key - Rust #[repr(C)]pub struct Signature { /* private fields */ }
Expand description
Ed25519 signature.
This type represents a container for the byte serialization of an Ed25519
signature, and does not necessarily represent well-formed field or curve
elements.
@@ -77,14 +77,7 @@ sufficient, and should not be overridden without very good reason.From<T>,source§impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts self into a Left variant of Either<Self, Self>
-if into_left is true.
-Converts self into a Right variant of Either<Self, Self>
-otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts self into a Left variant of Either<Self, Self>
-if into_left(&self) returns true.
-Converts self into a Right variant of Either<Self, Self>
-otherwise. Read more§impl<T> Pipe for Twhere
+
§impl<T> Pipe for Twhere
T: ?Sized,
§fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> Rwhere
Self: Sized,
Pipes by value. This is generally the method you want to use. Read more§fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> Rwhere
R: 'a,
Borrows self and passes that borrow into the pipe function. Read more§fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> Rwhere
diff --git a/pr/2674/docs/iroh/base/key/type.NodeId.html b/pr/2674/docs/iroh/base/key/type.NodeId.html
index fdf7d085bb..8b30c7411b 100644
--- a/pr/2674/docs/iroh/base/key/type.NodeId.html
+++ b/pr/2674/docs/iroh/base/key/type.NodeId.html
@@ -1,4 +1,4 @@
-NodeId in iroh::base::key - Rust pub type NodeId = PublicKey;
Expand description
The identifier for a node in the (iroh) network.
+NodeId in iroh::base::key - Rust pub type NodeId = PublicKey;
Expand description
The identifier for a node in the (iroh) network.
Each node in iroh has a unique identifier created as a cryptographic key. This can be
used to globally identify a node. Since it is also a cryptographic key it is also the
mechanism by which all traffic is always encrypted for a specific node only.
diff --git a/pr/2674/docs/iroh/base/node_addr/enum.AddrInfoOptions.html b/pr/2674/docs/iroh/base/node_addr/enum.AddrInfoOptions.html
index 8b2801f2ce..f24a96d0b5 100644
--- a/pr/2674/docs/iroh/base/node_addr/enum.AddrInfoOptions.html
+++ b/pr/2674/docs/iroh/base/node_addr/enum.AddrInfoOptions.html
@@ -1,4 +1,4 @@
-AddrInfoOptions in iroh::base::node_addr - Rust Enum iroh::base::node_addr::AddrInfoOptions
source · pub enum AddrInfoOptions {
+AddrInfoOptions in iroh::base::node_addr - Rust Enum iroh::base::node_addr::AddrInfoOptions
source · pub enum AddrInfoOptions {
Id,
RelayAndAddresses,
Relay,
@@ -68,14 +68,7 @@ sufficient, and should not be overridden without very good reason.
From<T>,
source§impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts self into a Left variant of Either<Self, Self>
-if into_left is true.
-Converts self into a Right variant of Either<Self, Self>
-otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts self into a Left variant of Either<Self, Self>
-if into_left(&self) returns true.
-Converts self into a Right variant of Either<Self, Self>
-otherwise. Read more§impl<T> Pipe for Twhere
+
§impl<T> Pipe for Twhere
T: ?Sized,
§fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> Rwhere
Self: Sized,
Pipes by value. This is generally the method you want to use. Read more§fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> Rwhere
R: 'a,
Borrows self and passes that borrow into the pipe function. Read more§fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> Rwhere
diff --git a/pr/2674/docs/iroh/base/node_addr/index.html b/pr/2674/docs/iroh/base/node_addr/index.html
index 239f4fa5d4..2c50adc5c7 100644
--- a/pr/2674/docs/iroh/base/node_addr/index.html
+++ b/pr/2674/docs/iroh/base/node_addr/index.html
@@ -1,4 +1,4 @@
-iroh::base::node_addr - Rust Expand description
Addressing for iroh nodes.
+iroh::base::node_addr - Rust Expand description
Addressing for iroh nodes.
This module contains some common addressing types for iroh. A node is uniquely
identified by the NodeId but that does not make it addressable on the network layer.
For this the addition of a RelayUrl and/or direct addresses are required.
diff --git a/pr/2674/docs/iroh/base/node_addr/struct.AddrInfo.html b/pr/2674/docs/iroh/base/node_addr/struct.AddrInfo.html
index c8f721d45c..3fda5385ca 100644
--- a/pr/2674/docs/iroh/base/node_addr/struct.AddrInfo.html
+++ b/pr/2674/docs/iroh/base/node_addr/struct.AddrInfo.html
@@ -1,4 +1,4 @@
-AddrInfo in iroh::base::node_addr - Rust pub struct AddrInfo {
+AddrInfo in iroh::base::node_addr - Rust pub struct AddrInfo {
pub relay_url: Option<RelayUrl>,
pub direct_addresses: BTreeSet<SocketAddr>,
}
Expand description
Network paths to contact an iroh-net node.
@@ -76,14 +76,7 @@ operator. From<T>,source§impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts self into a Left variant of Either<Self, Self>
-if into_left is true.
-Converts self into a Right variant of Either<Self, Self>
-otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts self into a Left variant of Either<Self, Self>
-if into_left(&self) returns true.
-Converts self into a Right variant of Either<Self, Self>
-otherwise. Read more§impl<T> Pipe for Twhere
+
§impl<T> Pipe for Twhere
T: ?Sized,
§fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> Rwhere
Self: Sized,
Pipes by value. This is generally the method you want to use. Read more§fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> Rwhere
R: 'a,
Borrows self and passes that borrow into the pipe function. Read more§fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> Rwhere
diff --git a/pr/2674/docs/iroh/base/node_addr/struct.NodeAddr.html b/pr/2674/docs/iroh/base/node_addr/struct.NodeAddr.html
index 732ead68b5..983414cb69 100644
--- a/pr/2674/docs/iroh/base/node_addr/struct.NodeAddr.html
+++ b/pr/2674/docs/iroh/base/node_addr/struct.NodeAddr.html
@@ -1,4 +1,4 @@
-NodeAddr in iroh::base::node_addr - Rust pub struct NodeAddr {
+NodeAddr in iroh::base::node_addr - Rust pub struct NodeAddr {
pub node_id: PublicKey,
pub info: AddrInfo,
}
Expand description
Network-level addressing information for an iroh-net node.
@@ -106,14 +106,7 @@ operator. From<T>,source§impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts self into a Left variant of Either<Self, Self>
-if into_left is true.
-Converts self into a Right variant of Either<Self, Self>
-otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts self into a Left variant of Either<Self, Self>
-if into_left(&self) returns true.
-Converts self into a Right variant of Either<Self, Self>
-otherwise. Read more§impl<T> Pipe for Twhere
+
§impl<T> Pipe for Twhere
T: ?Sized,
§fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> Rwhere
Self: Sized,
Pipes by value. This is generally the method you want to use. Read more§fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> Rwhere
R: 'a,
Borrows self and passes that borrow into the pipe function. Read more§fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> Rwhere
diff --git a/pr/2674/docs/iroh/base/node_addr/struct.RelayUrl.html b/pr/2674/docs/iroh/base/node_addr/struct.RelayUrl.html
index c1c2ab206b..e0cc0c948a 100644
--- a/pr/2674/docs/iroh/base/node_addr/struct.RelayUrl.html
+++ b/pr/2674/docs/iroh/base/node_addr/struct.RelayUrl.html
@@ -1,4 +1,4 @@
-RelayUrl in iroh::base::node_addr - Rust pub struct RelayUrl(/* private fields */);
Expand description
A URL identifying a relay server.
+RelayUrl in iroh::base::node_addr - Rust pub struct RelayUrl(/* private fields */);
Expand description
A URL identifying a relay server.
This is but a wrapper around Url, with a few custom tweaks:
-
@@ -447,7 +447,7 @@ to change the inner later.
source§impl<'de> Deserialize<'de> for RelayUrl
source§fn deserialize<__D>(
__deserializer: __D
) -> Result<RelayUrl, <__D as Deserializer<'de>>::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl FromStr for RelayUrl
Support for parsing strings directly.
+ __D: Deserializer<'de>, Deserialize this value from the given Serde deserializer. Read moresource§impl FromStr for RelayUrl
Support for parsing strings directly.
If you need more control over the error first create a Url and use RelayUrl::from
instead.
source§impl Hash for RelayUrl
source§impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts self into a Left variant of Either<Self, Self>
-if into_left is true.
-Converts self into a Right variant of Either<Self, Self>
-otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts self into a Left variant of Either<Self, Self>
-if into_left(&self) returns true.
-Converts self into a Right variant of Either<Self, Self>
-otherwise. Read more§impl<T> Pipe for Twhere
+
§impl<T> Pipe for Twhere
T: ?Sized,
§fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> Rwhere
Self: Sized,
Pipes by value. This is generally the method you want to use. Read more§fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> Rwhere
R: 'a,
Borrows self and passes that borrow into the pipe function. Read more§fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R