diff --git a/pr/2595/docs/help.html b/pr/2595/docs/help.html index bb0a3f1cfe..49d451041f 100644 --- a/pr/2595/docs/help.html +++ b/pr/2595/docs/help.html @@ -1 +1 @@ -
pub 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§
§impl Debug for HexOrBase32ParseError
§impl Display for HexOrBase32ParseError
§impl Error for HexOrBase32ParseError
§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()§impl From<DecodeError> for HexOrBase32ParseError
§fn from(source: DecodeError) -> HexOrBase32ParseError
Converts to this type from the input type.§impl From<FromHexError> for HexOrBase32ParseError
§fn from(source: FromHexError) -> HexOrBase32ParseError
Converts to this type from the input type.§impl From<HexOrBase32ParseError> for KeyParsingError
§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> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
§fn implicit(
diff --git a/pr/2595/docs/iroh/base/base32/fn.fmt.html b/pr/2595/docs/iroh/base/base32/fn.fmt.html
index d0c8e9b98e..e38236a003 100644
--- a/pr/2595/docs/iroh/base/base32/fn.fmt.html
+++ b/pr/2595/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/2595/docs/iroh/base/base32/fn.fmt_append.html b/pr/2595/docs/iroh/base/base32/fn.fmt_append.html
index 82509a4f95..5a121d062c 100644
--- a/pr/2595/docs/iroh/base/base32/fn.fmt_append.html
+++ b/pr/2595/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
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/2595/docs/iroh/base/base32/fn.fmt_short.html b/pr/2595/docs/iroh/base/base32/fn.fmt_short.html
index 1ee8ace99d..b86b4ea5b9 100644
--- a/pr/2595/docs/iroh/base/base32/fn.fmt_short.html
+++ b/pr/2595/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/2595/docs/iroh/base/base32/fn.parse_array.html b/pr/2595/docs/iroh/base/base32/fn.parse_array.html
index 1cc818fa10..034374828f 100644
--- a/pr/2595/docs/iroh/base/base32/fn.parse_array.html
+++ b/pr/2595/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
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/2595/docs/iroh/base/base32/fn.parse_array_hex_or_base32.html b/pr/2595/docs/iroh/base/base32/fn.parse_array_hex_or_base32.html
index 6092b7df81..c683e71a91 100644
--- a/pr/2595/docs/iroh/base/base32/fn.parse_array_hex_or_base32.html
+++ b/pr/2595/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
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/2595/docs/iroh/base/base32/fn.parse_vec.html b/pr/2595/docs/iroh/base/base32/fn.parse_vec.html
index bfced6ff3f..8c7d2157bb 100644
--- a/pr/2595/docs/iroh/base/base32/fn.parse_vec.html
+++ b/pr/2595/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/2595/docs/iroh/base/base32/index.html b/pr/2595/docs/iroh/base/base32/index.html
index 186964c9f8..b4c70b01b3 100644
--- a/pr/2595/docs/iroh/base/base32/index.html
+++ b/pr/2595/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/2595/docs/iroh/base/base32/struct.DecodeError.html b/pr/2595/docs/iroh/base/base32/struct.DecodeError.html
index 4d341196bd..ad27ba7938 100644
--- a/pr/2595/docs/iroh/base/base32/struct.DecodeError.html
+++ b/pr/2595/docs/iroh/base/base32/struct.DecodeError.html
@@ -5,7 +5,7 @@
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()§impl From<DecodeError> for Error
§fn from(source: DecodeError) -> Error
Converts to this type from the input type.§impl From<DecodeError> for HexOrBase32ParseError
§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§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
diff --git a/pr/2595/docs/iroh/base/hash/enum.BlobFormat.html b/pr/2595/docs/iroh/base/hash/enum.BlobFormat.html
index 4fa3195462..a2108c4559 100644
--- a/pr/2595/docs/iroh/base/hash/enum.BlobFormat.html
+++ b/pr/2595/docs/iroh/base/hash/enum.BlobFormat.html
@@ -1,30 +1,30 @@
-BlobFormat in iroh::base::hash - Rust Enum iroh::base::hash::BlobFormat
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
Variants§
Implementations§
§impl BlobFormat
pub const fn is_hash_seq(&self) -> bool
Is hash seq format
-Trait Implementations§
§impl Clone for BlobFormat
§fn clone(&self) -> BlobFormat
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 BlobFormat
§impl Default for BlobFormat
§fn default() -> BlobFormat
Returns the “default value” for a type. Read more§impl<'de> Deserialize<'de> for BlobFormat
§fn deserialize<__D>(
+
Implementations§
source§impl BlobFormat
Trait Implementations§
source§impl Clone for BlobFormat
source§fn clone(&self) -> BlobFormat
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read moresource§impl Debug for BlobFormat
source§impl Default for BlobFormat
source§fn default() -> BlobFormat
Returns the “default value” for a type. Read moresource§impl<'de> Deserialize<'de> for BlobFormat
source§fn deserialize<__D>(
__deserializer: __D
) -> Result<BlobFormat, <__D as Deserializer<'de>>::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more§impl Display for BlobFormat
§impl Hash for BlobFormat
§fn hash<__H>(&self, state: &mut __H)where
+ __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for BlobFormat
source§impl Hash for BlobFormat
§impl MaxSize for BlobFormat
§const POSTCARD_MAX_SIZE: usize = 1usize
The maximum possible size that the serialization of this
-type can have, in bytes.§impl Ord for BlobFormat
source§impl MaxSize for BlobFormat
source§const POSTCARD_MAX_SIZE: usize = 1usize
The maximum possible size that the serialization of this
+type can have, in bytes.source§impl Ord for BlobFormat
source§fn cmp(&self, other: &BlobFormat) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more§impl PartialEq for BlobFormat
§fn eq(&self, other: &BlobFormat) -> bool
Restrict a value to a certain interval. Read moresource§impl PartialEq for BlobFormat
source§fn eq(&self, other: &BlobFormat) -> bool
This method tests for self and other values to be equal, and is used
by ==.§impl PartialOrd for BlobFormat
§fn partial_cmp(&self, other: &BlobFormat) -> Option<Ordering>
source§impl PartialOrd for BlobFormat
source§fn partial_cmp(&self, other: &BlobFormat) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self and other) and is used by the <=
operator. Read moresource§impl Serialize for BlobFormat
source§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
- __S: Serializer,
Serialize this value into the given Serde serializer. Read more§impl Copy for BlobFormat
§impl Eq for BlobFormat
§impl StructuralPartialEq for BlobFormat
Auto Trait Implementations§
§impl Freeze for BlobFormat
§impl RefUnwindSafe for BlobFormat
§impl Send for BlobFormat
§impl Sync for BlobFormat
§impl Unpin for BlobFormat
§impl UnwindSafe for BlobFormat
Blanket Implementations§
source§impl<T> Any for Twhere
+ __S: Serializer,
Serialize this value into the given Serde serializer. Read moresource§impl Copy for BlobFormat
source§impl Eq for BlobFormat
source§impl StructuralPartialEq for BlobFormat
Auto Trait Implementations§
§impl Freeze for BlobFormat
§impl RefUnwindSafe for BlobFormat
§impl Send for BlobFormat
§impl Sync for BlobFormat
§impl Unpin for BlobFormat
§impl UnwindSafe for BlobFormat
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Into<Dispatch>,
source§fn with_current_subscriber(self) -> WithDispatch<Self>
source§impl<T> DeserializeOwned for Twhere
- T: for<'de> Deserialize<'de>,
§impl<T> PeerIdentity for Twhere
+ T: for<'de> Deserialize<'de>,
source§impl<T> PeerIdentity for T
§impl<T> RpcError for T
§impl<T> RpcMessage for T
source§impl<T> RuleType for Twhere
diff --git a/pr/2595/docs/iroh/base/hash/index.html b/pr/2595/docs/iroh/base/hash/index.html
index 82705afec3..71817f71f2 100644
--- a/pr/2595/docs/iroh/base/hash/index.html
+++ b/pr/2595/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/2595/docs/iroh/base/hash/struct.Hash.html b/pr/2595/docs/iroh/base/hash/struct.Hash.html
index 1d27b57bc4..87d7af493e 100644
--- a/pr/2595/docs/iroh/base/hash/struct.Hash.html
+++ b/pr/2595/docs/iroh/base/hash/struct.Hash.html
@@ -1,37 +1,37 @@
-Hash in iroh::base::hash - Rust pub struct Hash(/* private fields */);
Expand description
Hash type used throughout.
-Implementations§
§impl Hash
pub const fn from_bytes(bytes: [u8; 32]) -> Hash
Create a Hash from its raw bytes representation.
-pub fn fmt_short(&self) -> String
Convert to a base32 string limited to the first 10 bytes for a friendly string
+
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 more§impl FromIterator<Hash> for HashSeq
§impl Hash for Hash
§fn hash<__H>(&self, state: &mut __H)where
+ D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl FromIterator<Hash> for HashSeq
§impl MaxSize for Hash
§const POSTCARD_MAX_SIZE: usize = 32usize
The maximum possible size that the serialization of this
-type can have, in bytes.source§impl MaxSize for Hash
source§const POSTCARD_MAX_SIZE: usize = 32usize
The maximum possible size that the serialization of this
+type can have, in bytes.source§impl Ord for Hash
source§impl PartialEq for Hash
§impl PartialOrd for Hash
source§impl PartialOrd for Hash
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self and other) and is used by the <=
operator. Read moresource§impl Serialize for Hash
source§fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
- S: Serializer,
Serialize this value into the given Serde serializer. Read more§impl Value for Hash
§type SelfType<'a> = Hash
SelfType<’a> must be the same type as Self with all lifetimes replaced with ’a§type AsBytes<'a> = &'a [u8; 32]
§fn fixed_width() -> Option<usize>
Width of a fixed type, or None for variable width§fn from_bytes<'a>(data: &'a [u8]) -> <Hash as Value>::SelfType<'a>where
+ S: Serializer,
Serialize this value into the given Serde serializer. Read moresource§impl Value for Hash
§type SelfType<'a> = Hash
SelfType<’a> must be the same type as Self with all lifetimes replaced with ’a§type AsBytes<'a> = &'a [u8; 32]
source§fn fixed_width() -> Option<usize>
Width of a fixed type, or None for variable width§impl Copy for Hash
§impl Eq for Hash
§impl StructuralPartialEq for Hash
Auto Trait Implementations§
§impl Freeze for Hash
§impl RefUnwindSafe for Hash
§impl Send for Hash
§impl Sync for Hash
§impl Unpin for Hash
§impl UnwindSafe for Hash
Blanket Implementations§
source§impl Copy for Hash
source§impl Eq for Hash
source§impl StructuralPartialEq for Hash
Auto Trait Implementations§
§impl Freeze for Hash
§impl RefUnwindSafe for Hash
§impl Send for Hash
§impl Sync for Hash
§impl Unpin for Hash
§impl UnwindSafe for Hash
Blanket Implementations§
source§fn with_current_subscriber(self) -> WithDispatch<Self>
source§impl<T> DeserializeOwned for Twhere
- T: for<'de> Deserialize<'de>,
§impl<T> PeerIdentity for Twhere
+ T: for<'de> Deserialize<'de>,
source§impl<T> PeerIdentity for T
§impl<T> RpcError for T
§impl<T> RpcMessage for T
source§impl<T> RuleType for Twhere
diff --git a/pr/2595/docs/iroh/base/hash/struct.HashAndFormat.html b/pr/2595/docs/iroh/base/hash/struct.HashAndFormat.html
index 80e4e015b7..19739c1ac4 100644
--- a/pr/2595/docs/iroh/base/hash/struct.HashAndFormat.html
+++ b/pr/2595/docs/iroh/base/hash/struct.HashAndFormat.html
@@ -1,37 +1,37 @@
-HashAndFormat in iroh::base::hash - Rust Struct iroh::base::hash::HashAndFormat
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
Fields§
§hash: HashThe hash
§format: BlobFormatThe format
-Implementations§
§impl HashAndFormat
pub fn new(hash: Hash, format: BlobFormat) -> HashAndFormat
Create a new hash and format pair.
-pub fn raw(hash: Hash) -> HashAndFormat
Create a new hash and format pair, using the default (raw) format.
-pub fn hash_seq(hash: Hash) -> HashAndFormat
Create a new hash and format pair, using the collection format.
-Trait Implementations§
§impl Clone for HashAndFormat
§fn clone(&self) -> HashAndFormat
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 HashAndFormat
§impl<'de> Deserialize<'de> for HashAndFormat
§fn deserialize<D>(
+
Implementations§
source§impl HashAndFormat
sourcepub fn new(hash: Hash, format: BlobFormat) -> HashAndFormat
Create a new hash and format pair.
+sourcepub fn raw(hash: Hash) -> HashAndFormat
Create a new hash and format pair, using the default (raw) format.
+sourcepub fn hash_seq(hash: Hash) -> HashAndFormat
Create a new hash and format pair, using the collection format.
+Trait Implementations§
source§impl Clone for HashAndFormat
source§fn clone(&self) -> HashAndFormat
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read moresource§impl Debug for HashAndFormat
source§impl<'de> Deserialize<'de> for HashAndFormat
source§fn deserialize<D>(
deserializer: D
) -> Result<HashAndFormat, <D as Deserializer<'de>>::Error>where
- D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more§impl Display for HashAndFormat
§impl From<DownloadKind> for HashAndFormat
§fn from(value: DownloadKind) -> HashAndFormat
Converts to this type from the input type.§impl From<HashAndFormat> for DownloadKind
§fn from(value: HashAndFormat) -> DownloadKind
Converts to this type from the input type.§impl From<HashAndFormat> for HashAndFormat
§fn from(value: HashAndFormat) -> HashAndFormat
Converts to this type from the input type.§impl FromStr for HashAndFormat
§impl Hash for HashAndFormat
§fn hash<__H>(&self, state: &mut __H)where
+ D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for HashAndFormat
source§impl From<DownloadKind> for HashAndFormat
source§fn from(value: DownloadKind) -> HashAndFormat
Converts to this type from the input type.source§impl From<HashAndFormat> for DownloadKind
source§fn from(value: HashAndFormat) -> DownloadKind
Converts to this type from the input type.source§impl From<HashAndFormat> for HashAndFormat
source§fn from(value: HashAndFormat) -> HashAndFormat
Converts to this type from the input type.source§impl FromStr for HashAndFormat
source§impl Hash for HashAndFormat
§impl MaxSize for HashAndFormat
§const POSTCARD_MAX_SIZE: usize = 33usize
The maximum possible size that the serialization of this
-type can have, in bytes.§impl Ord for HashAndFormat
source§impl MaxSize for HashAndFormat
source§const POSTCARD_MAX_SIZE: usize = 33usize
The maximum possible size that the serialization of this
+type can have, in bytes.source§impl Ord for HashAndFormat
source§fn cmp(&self, other: &HashAndFormat) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more§impl PartialEq for HashAndFormat
§fn eq(&self, other: &HashAndFormat) -> bool
Restrict a value to a certain interval. Read moresource§impl PartialEq for HashAndFormat
source§fn eq(&self, other: &HashAndFormat) -> bool
This method tests for self and other values to be equal, and is used
by ==.§impl PartialOrd for HashAndFormat
§fn partial_cmp(&self, other: &HashAndFormat) -> Option<Ordering>
source§impl PartialOrd for HashAndFormat
source§fn partial_cmp(&self, other: &HashAndFormat) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self and other) and is used by the <=
operator. Read moresource§impl Serialize for HashAndFormat
source§fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
- S: Serializer,
Serialize this value into the given Serde serializer. Read more§impl Value for HashAndFormat
§type SelfType<'a> = HashAndFormat
SelfType<’a> must be the same type as Self with all lifetimes replaced with ’a§type AsBytes<'a> = [u8; 33]
§fn fixed_width() -> Option<usize>
Width of a fixed type, or None for variable width§fn from_bytes<'a>(data: &'a [u8]) -> <HashAndFormat as Value>::SelfType<'a>where
+ S: Serializer,
Serialize this value into the given Serde serializer. Read moresource§impl Value for HashAndFormat
§type SelfType<'a> = HashAndFormat
SelfType<’a> must be the same type as Self with all lifetimes replaced with ’a§type AsBytes<'a> = [u8; 33]
source§fn fixed_width() -> Option<usize>
Width of a fixed type, or None for variable widthsource§fn from_bytes<'a>(data: &'a [u8]) -> <HashAndFormat as Value>::SelfType<'a>where
HashAndFormat: 'a,
Deserializes data
-Implementations may return a view over data, or an owned typesource§fn as_bytes<'a, 'b>(
value: &'a <HashAndFormat as Value>::SelfType<'b>
) -> <HashAndFormat as Value>::AsBytes<'a>where
'b: 'a,
- HashAndFormat: 'a + 'b,
Serialize the value to a slice§impl Copy for HashAndFormat
§impl Eq for HashAndFormat
§impl StructuralPartialEq for HashAndFormat
Auto Trait Implementations§
§impl Freeze for HashAndFormat
§impl RefUnwindSafe for HashAndFormat
§impl Send for HashAndFormat
§impl Sync for HashAndFormat
§impl Unpin for HashAndFormat
§impl UnwindSafe for HashAndFormat
Blanket Implementations§
source§impl<T> Any for Twhere
+ HashAndFormat: 'a + 'b,
Serialize the value to a slicesource§impl Copy for HashAndFormat
source§impl Eq for HashAndFormat
source§impl StructuralPartialEq for HashAndFormat
Auto Trait Implementations§
§impl Freeze for HashAndFormat
§impl RefUnwindSafe for HashAndFormat
§impl Send for HashAndFormat
§impl Sync for HashAndFormat
§impl Unpin for HashAndFormat
§impl UnwindSafe for HashAndFormat
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Into<Dispatch>,
source§fn with_current_subscriber(self) -> WithDispatch<Self>
source§impl<T> DeserializeOwned for Twhere
- T: for<'de> Deserialize<'de>,
§impl<T> PeerIdentity for Twhere
+ T: for<'de> Deserialize<'de>,
source§impl<T> PeerIdentity for T
§impl<T> RpcError for T
§impl<T> RpcMessage for T
source§impl<T> RuleType for Twhere
diff --git a/pr/2595/docs/iroh/base/index.html b/pr/2595/docs/iroh/base/index.html
index aff62b5af3..f3aba29244 100644
--- a/pr/2595/docs/iroh/base/index.html
+++ b/pr/2595/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/2595/docs/iroh/base/key/enum.KeyParsingError.html b/pr/2595/docs/iroh/base/key/enum.KeyParsingError.html
index d86ed5157e..6956a18cb7 100644
--- a/pr/2595/docs/iroh/base/key/enum.KeyParsingError.html
+++ b/pr/2595/docs/iroh/base/key/enum.KeyParsingError.html
@@ -1,10 +1,10 @@
-KeyParsingError in iroh::base::key - Rust Enum iroh::base::key::KeyParsingError
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§
§impl Debug for KeyParsingError
§impl Display for KeyParsingError
§impl Error for KeyParsingError
§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()§impl From<Error> for KeyParsingError
§fn from(source: Error) -> KeyParsingError
Converts to this type from the input type.§impl From<HexOrBase32ParseError> for KeyParsingError
§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> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
§fn implicit(
diff --git a/pr/2595/docs/iroh/base/key/index.html b/pr/2595/docs/iroh/base/key/index.html
index 61114ed4a7..268729cd4d 100644
--- a/pr/2595/docs/iroh/base/key/index.html
+++ b/pr/2595/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/2595/docs/iroh/base/key/struct.PublicKey.html b/pr/2595/docs/iroh/base/key/struct.PublicKey.html
index 181b35354b..3e64e9fd12 100644
--- a/pr/2595/docs/iroh/base/key/struct.PublicKey.html
+++ b/pr/2595/docs/iroh/base/key/struct.PublicKey.html
@@ -1,45 +1,45 @@
-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,
or when a key is deserialised or created from a byte array.
Serialisation or creation from a byte array is cheap if the key is already
in the cache, but expensive if it is not.
-Implementations§
§impl PublicKey
pub fn from_bytes(bytes: &[u8; 32]) -> Result<PublicKey, Error>
Construct a PublicKey from a slice of bytes.
+Implementations§
source§impl PublicKey
sourcepub fn from_bytes(bytes: &[u8; 32]) -> Result<PublicKey, Error>
Construct a PublicKey from a slice of bytes.
§Warning
This will return a [SignatureError] if the bytes passed into this method do not represent
a valid ed25519_dalek curve point. Will never fail for bytes return from Self::as_bytes.
See [VerifyingKey::from_bytes] for details.
-pub fn verify(&self, message: &[u8], signature: &Signature) -> Result<(), Error>
Verify a signature on a message with this secret key’s public key.
+sourcepub fn verify(&self, message: &[u8], signature: &Signature) -> Result<(), Error>
Verify a signature on a message with this secret key’s public key.
§Return
Returns Ok(()) if the signature is valid, and Err otherwise.
-Trait Implementations§
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
§impl Hash for PublicKey
source§impl Ord for PublicKey
source§impl PartialEq for PublicKey
§impl PartialOrd for PublicKey
source§impl PartialOrd for PublicKey
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self and other) and is used by the <=
operator. Read moresource§impl Serialize for PublicKey
source§fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
- S: Serializer,
Serialize this value into the given Serde serializer. Read more§impl Copy for PublicKey
§impl Eq for PublicKey
§impl StructuralPartialEq for PublicKey
Auto Trait Implementations§
§impl Freeze for PublicKey
§impl RefUnwindSafe for PublicKey
§impl Send for PublicKey
§impl Sync for PublicKey
§impl Unpin for PublicKey
§impl UnwindSafe for PublicKey
Blanket Implementations§
source§impl Copy for PublicKey
source§impl Eq for PublicKey
source§impl StructuralPartialEq for PublicKey
Auto Trait Implementations§
§impl Freeze for PublicKey
§impl RefUnwindSafe for PublicKey
§impl Send for PublicKey
§impl Sync for PublicKey
§impl Unpin for PublicKey
§impl UnwindSafe for PublicKey
Blanket Implementations§
source§fn with_current_subscriber(self) -> WithDispatch<Self>
source§impl<T> DeserializeOwned for Twhere
- T: for<'de> Deserialize<'de>,
§impl<T> PeerIdentity for Twhere
+ T: for<'de> Deserialize<'de>,
source§impl<T> PeerIdentity for T
§impl<T> RpcError for T
§impl<T> RpcMessage for T
source§impl<T> RuleType for Twhere
diff --git a/pr/2595/docs/iroh/base/key/struct.SecretKey.html b/pr/2595/docs/iroh/base/key/struct.SecretKey.html
index ada62f21cb..33f9b59848 100644
--- a/pr/2595/docs/iroh/base/key/struct.SecretKey.html
+++ b/pr/2595/docs/iroh/base/key/struct.SecretKey.html
@@ -1,24 +1,24 @@
-SecretKey in iroh::base::key - Rust pub struct SecretKey { /* private fields */ }
Expand description
A secret key.
-Implementations§
§impl SecretKey
pub fn generate_with_rng<R>(csprng: &mut R) -> SecretKeywhere
+SecretKey in iroh::base::key - Rust pub struct SecretKey { /* private fields */ }
Expand description
A secret key.
+Implementations§
source§impl SecretKey
sourcepub fn generate() -> SecretKey
Generate a new SecretKey with the default randomness generator.
+sourcepub fn generate_with_rng<R>(csprng: &mut R) -> SecretKeywhere
R: CryptoRngCore + ?Sized,
Generate a new SecretKey with a randomness generator.
-pub fn to_openssh(&self) -> Result<Zeroizing<String>, Error>
Serialise this key to OpenSSH format.
-pub fn try_from_openssh<T>(data: T) -> Result<SecretKey, Error>where
+
sourcepub fn to_openssh(&self) -> Result<Zeroizing<String>, Error>
Serialise this key to OpenSSH format.
+sourcepub fn try_from_openssh<T>(data: T) -> Result<SecretKey, Error>
Deserialise this key from OpenSSH format.
-sourcepub fn sign(&self, msg: &[u8]) -> Signature
Sign the given message and return a digital signature
+sourcepub fn to_bytes(&self) -> [u8; 32]
Convert this to the bytes representing the secret part.
The public part can always be recovered.
-pub fn from_bytes(bytes: &[u8; 32]) -> SecretKey
Create a secret key from its byte representation.
-Trait Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for SecretKey
source§fn deserialize<D>(
deserializer: D
) -> Result<SecretKey, <D as Deserializer<'de>>::Error>where
- D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Serialize for SecretKey
source§fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
- S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
§impl !Freeze for SecretKey
§impl RefUnwindSafe for SecretKey
§impl Send for SecretKey
§impl Sync for SecretKey
§impl Unpin for SecretKey
§impl UnwindSafe for SecretKey
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
diff --git a/pr/2595/docs/iroh/base/key/struct.SharedSecret.html b/pr/2595/docs/iroh/base/key/struct.SharedSecret.html
index dd6d71a8b1..a36166d683 100644
--- a/pr/2595/docs/iroh/base/key/struct.SharedSecret.html
+++ b/pr/2595/docs/iroh/base/key/struct.SharedSecret.html
@@ -1,7 +1,7 @@
-SharedSecret in iroh::base::key - Rust Struct iroh::base::key::SharedSecret
pub struct SharedSecret(/* private fields */);
Expand description
Shared Secret.
-Implementations§
Trait Implementations§
Auto Trait Implementations§
Blanket Implementations§
source§impl<T> Any for Twhere
+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§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
§fn implicit(
diff --git a/pr/2595/docs/iroh/base/key/type.NodeId.html b/pr/2595/docs/iroh/base/key/type.NodeId.html
index 20a5453a27..8b30c7411b 100644
--- a/pr/2595/docs/iroh/base/key/type.NodeId.html
+++ b/pr/2595/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/2595/docs/iroh/base/node_addr/enum.AddrInfoOptions.html b/pr/2595/docs/iroh/base/node_addr/enum.AddrInfoOptions.html
index 6d20186acc..e20f788d97 100644
--- a/pr/2595/docs/iroh/base/node_addr/enum.AddrInfoOptions.html
+++ b/pr/2595/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
pub enum AddrInfoOptions {
+AddrInfoOptions in iroh::base::node_addr - Rust Enum iroh::base::node_addr::AddrInfoOptions
source · pub enum AddrInfoOptions {
Id,
RelayAndAddresses,
Relay,
@@ -9,18 +9,18 @@
§RelayAndAddresses
Includes both the relay URL and the direct addresses.
§Relay
Only includes the relay URL.
§Addresses
Only includes the direct addresses.
-
Trait Implementations§
§impl Clone for AddrInfoOptions
§fn clone(&self) -> AddrInfoOptions
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 AddrInfoOptions
§impl Default for AddrInfoOptions
§fn default() -> AddrInfoOptions
Returns the “default value” for a type. Read more§impl<'de> Deserialize<'de> for AddrInfoOptions
§fn deserialize<__D>(
+
Trait Implementations§
source§impl Clone for AddrInfoOptions
source§fn clone(&self) -> AddrInfoOptions
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read moresource§impl Debug for AddrInfoOptions
source§impl Default for AddrInfoOptions
source§fn default() -> AddrInfoOptions
Returns the “default value” for a type. Read moresource§impl<'de> Deserialize<'de> for AddrInfoOptions
source§fn deserialize<__D>(
__deserializer: __D
) -> Result<AddrInfoOptions, <__D as Deserializer<'de>>::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more§impl Display for AddrInfoOptions
§impl FromStr for AddrInfoOptions
§fn from_str(
+ __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for AddrInfoOptions
source§impl FromStr for AddrInfoOptions
§impl PartialEq for AddrInfoOptions
§fn eq(&self, other: &AddrInfoOptions) -> bool
This method tests for self and other values to be equal, and is used
+) -> Result<AddrInfoOptions, <AddrInfoOptions as FromStr>::Err>Parses a string s to return a value of this type. Read moresource§impl PartialEq for AddrInfoOptions
source§fn eq(&self, other: &AddrInfoOptions) -> bool
This method tests for self and other values to be equal, and is used
by ==.§impl Serialize for AddrInfoOptions
source§impl Serialize for AddrInfoOptions
source§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
- __S: Serializer,
Serialize this value into the given Serde serializer. Read more§impl Copy for AddrInfoOptions
§impl Eq for AddrInfoOptions
§impl StructuralPartialEq for AddrInfoOptions
Auto Trait Implementations§
§impl Freeze for AddrInfoOptions
§impl RefUnwindSafe for AddrInfoOptions
§impl Send for AddrInfoOptions
§impl Sync for AddrInfoOptions
§impl Unpin for AddrInfoOptions
§impl UnwindSafe for AddrInfoOptions
Blanket Implementations§
source§impl<T> Any for Twhere
+ __S: Serializer,
Serialize this value into the given Serde serializer. Read moresource§impl Copy for AddrInfoOptions
source§impl Eq for AddrInfoOptions
source§impl StructuralPartialEq for AddrInfoOptions
Auto Trait Implementations§
§impl Freeze for AddrInfoOptions
§impl RefUnwindSafe for AddrInfoOptions
§impl Send for AddrInfoOptions
§impl Sync for AddrInfoOptions
§impl Unpin for AddrInfoOptions
§impl UnwindSafe for AddrInfoOptions
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
§fn implicit(
diff --git a/pr/2595/docs/iroh/base/node_addr/index.html b/pr/2595/docs/iroh/base/node_addr/index.html
index 048e858b52..2c50adc5c7 100644
--- a/pr/2595/docs/iroh/base/node_addr/index.html
+++ b/pr/2595/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/2595/docs/iroh/base/node_addr/struct.AddrInfo.html b/pr/2595/docs/iroh/base/node_addr/struct.AddrInfo.html
index 3ce0d44156..e45218c2cb 100644
--- a/pr/2595/docs/iroh/base/node_addr/struct.AddrInfo.html
+++ b/pr/2595/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.
@@ -7,26 +7,26 @@ Unless a [discovery service] is used at least one path is required to connect to
other node, see NodeAddr for details.
Fields§
§relay_url: Option<RelayUrl>The node’s home relay url.
§direct_addresses: BTreeSet<SocketAddr>Socket addresses where the peer might be reached directly.
-Implementations§
§impl AddrInfo
pub fn apply_options(&mut self, opts: AddrInfoOptions)
Applies the options to self.
+Implementations§
source§impl AddrInfo
sourcepub fn apply_options(&mut self, opts: AddrInfoOptions)
Trait Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for AddrInfo
source§fn deserialize<__D>(
__deserializer: __D
) -> Result<AddrInfo, <__D as Deserializer<'de>>::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Ord for AddrInfo
source§impl PartialEq for AddrInfo
§impl PartialOrd for AddrInfo
source§impl PartialOrd for AddrInfo
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self and other) and is used by the <=
operator. Read moresource§impl Serialize for AddrInfo
source§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
- __S: Serializer,
Serialize this value into the given Serde serializer. Read more§impl Eq for AddrInfo
§impl StructuralPartialEq for AddrInfo
Auto Trait Implementations§
§impl Freeze for AddrInfo
§impl RefUnwindSafe for AddrInfo
§impl Send for AddrInfo
§impl Sync for AddrInfo
§impl Unpin for AddrInfo
§impl UnwindSafe for AddrInfo
Blanket Implementations§
source§impl<T> Any for Twhere
+ __S: Serializer,
Serialize this value into the given Serde serializer. Read moresource§impl Eq for AddrInfo
source§impl StructuralPartialEq for AddrInfo
Auto Trait Implementations§
§impl Freeze for AddrInfo
§impl RefUnwindSafe for AddrInfo
§impl Send for AddrInfo
§impl Sync for AddrInfo
§impl Unpin for AddrInfo
§impl UnwindSafe for AddrInfo
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
§fn implicit(
diff --git a/pr/2595/docs/iroh/base/node_addr/struct.NodeAddr.html b/pr/2595/docs/iroh/base/node_addr/struct.NodeAddr.html
index e01e7439f9..5cedd4a1c5 100644
--- a/pr/2595/docs/iroh/base/node_addr/struct.NodeAddr.html
+++ b/pr/2595/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.
@@ -25,38 +25,38 @@ number of network-level addressing information. It is a generic addressing type
whenever a connection to other nodes needs to be established.
Fields§
§node_id: PublicKeyThe node’s identifier.
§info: AddrInfoAddressing information to connect to Self::node_id.
-Implementations§
§impl NodeAddr
pub fn with_relay_url(self, relay_url: RelayUrl) -> NodeAddr
Adds a relay url to the node’s AddrInfo.
-pub fn with_direct_addresses(
+
Implementations§
source§impl NodeAddr
sourcepub fn with_relay_url(self, relay_url: RelayUrl) -> NodeAddr
Adds a relay url to the node’s AddrInfo.
+sourcepub fn with_direct_addresses(
self,
addresses: impl IntoIterator<Item = SocketAddr>
) -> NodeAddr
Adds the given direct addresses to the peer’s AddrInfo.
-pub fn from_parts(
+
sourcepub fn from_parts(
node_id: PublicKey,
relay_url: Option<RelayUrl>,
direct_addresses: Vec<SocketAddr>
) -> NodeAddr
Creates a new NodeAddr from its parts.
-pub fn apply_options(&mut self, opts: AddrInfoOptions)
Applies the options to self.
+sourcepub fn apply_options(&mut self, opts: AddrInfoOptions)
pub fn direct_addresses(&self) -> impl Iterator<Item = &SocketAddr>
Returns the direct addresses of this peer.
-Trait Implementations§
§impl<'de> Deserialize<'de> for NodeAddr
§fn deserialize<__D>(
+
sourcepub fn direct_addresses(&self) -> impl Iterator<Item = &SocketAddr>
Returns the direct addresses of this peer.
+Trait Implementations§
source§impl<'de> Deserialize<'de> for NodeAddr
source§fn deserialize<__D>(
__deserializer: __D
) -> Result<NodeAddr, <__D as Deserializer<'de>>::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl From<RemoteInfo> for NodeAddr
source§fn from(info: RemoteInfo) -> NodeAddr
Converts to this type from the input type.source§impl From<RemoteInfo> for NodeAddr
source§fn from(info: RemoteInfo) -> NodeAddr
Converts to this type from the input type.source§impl Ord for NodeAddr
source§impl PartialEq for NodeAddr
§impl PartialOrd for NodeAddr
source§impl PartialOrd for NodeAddr
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self and other) and is used by the <=
operator. Read moresource§impl Serialize for NodeAddr
source§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
- __S: Serializer,
Serialize this value into the given Serde serializer. Read more§impl Eq for NodeAddr
§impl StructuralPartialEq for NodeAddr
Auto Trait Implementations§
§impl Freeze for NodeAddr
§impl RefUnwindSafe for NodeAddr
§impl Send for NodeAddr
§impl Sync for NodeAddr
§impl Unpin for NodeAddr
§impl UnwindSafe for NodeAddr
Blanket Implementations§
source§impl<T> Any for Twhere
+ __S: Serializer,
Serialize this value into the given Serde serializer. Read moresource§impl Eq for NodeAddr
source§impl StructuralPartialEq for NodeAddr
Auto Trait Implementations§
§impl Freeze for NodeAddr
§impl RefUnwindSafe for NodeAddr
§impl Send for NodeAddr
§impl Sync for NodeAddr
§impl Unpin for NodeAddr
§impl UnwindSafe for NodeAddr
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
§fn implicit(
diff --git a/pr/2595/docs/iroh/base/node_addr/struct.RelayUrl.html b/pr/2595/docs/iroh/base/node_addr/struct.RelayUrl.html
index db337e70f8..1537b4b6d8 100644
--- a/pr/2595/docs/iroh/base/node_addr/struct.RelayUrl.html
+++ b/pr/2595/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:
-
@@ -441,30 +441,30 @@ It is the user’s responsibility to check the URL’s scheme before calling thi
or if
Path::new_opt() returns None.
(That is, if the percent-decoded path contains a NUL byte or,
for a Windows path, is not UTF-8.)
-
Trait Implementations§
Trait Implementations§
source§impl Deref for RelayUrl
§impl<'de> Deserialize<'de> for RelayUrl
§fn deserialize<__D>(
+
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 more§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.
-§impl Hash for RelayUrl
source§impl Ord for RelayUrl
source§impl PartialEq for RelayUrl
§impl PartialOrd for RelayUrl
source§impl PartialOrd for RelayUrl
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self and other) and is used by the <=
operator. Read moresource§impl Serialize for RelayUrl
source§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
- __S: Serializer,
Serialize this value into the given Serde serializer. Read more§impl Eq for RelayUrl
§impl StructuralPartialEq for RelayUrl
Auto Trait Implementations§
§impl Freeze for RelayUrl
§impl RefUnwindSafe for RelayUrl
§impl Send for RelayUrl
§impl Sync for RelayUrl
§impl Unpin for RelayUrl
§impl UnwindSafe for RelayUrl
Blanket Implementations§
source§impl<T> Any for Twhere
+ __S: Serializer,
Serialize this value into the given Serde serializer. Read moresource§impl Eq for RelayUrl
source§impl StructuralPartialEq for RelayUrl
Auto Trait Implementations§
§impl Freeze for RelayUrl
§impl RefUnwindSafe for RelayUrl
§impl Send for RelayUrl
§impl Sync for RelayUrl
§impl Unpin for RelayUrl
§impl UnwindSafe for RelayUrl
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
§fn implicit(
diff --git a/pr/2595/docs/iroh/base/rpc/index.html b/pr/2595/docs/iroh/base/rpc/index.html
index 096b63cb4b..c3944e1774 100644
--- a/pr/2595/docs/iroh/base/rpc/index.html
+++ b/pr/2595/docs/iroh/base/rpc/index.html
@@ -1 +1 @@
-iroh::base::rpc - Rust
\ No newline at end of file
+iroh::base::rpc - Rust
\ No newline at end of file
diff --git a/pr/2595/docs/iroh/base/rpc/struct.RpcError.html b/pr/2595/docs/iroh/base/rpc/struct.RpcError.html
index fd3bf51e19..4f404a7eca 100644
--- a/pr/2595/docs/iroh/base/rpc/struct.RpcError.html
+++ b/pr/2595/docs/iroh/base/rpc/struct.RpcError.html
@@ -1,8 +1,8 @@
-RpcError in iroh::base::rpc - Rust pub struct RpcError(/* private fields */);
Expand description
A serializable error type for use in RPC responses.
-Trait Implementations§
§impl<'de> Deserialize<'de> for RpcError
§fn deserialize<__D>(
+RpcError in iroh::base::rpc - Rust pub struct RpcError(/* private fields */);
Expand description
A serializable error type for use in RPC responses.
+Trait Implementations§
source§impl<'de> Deserialize<'de> for RpcError
source§fn deserialize<__D>(
__deserializer: __D
) -> Result<RpcError, <__D as Deserializer<'de>>::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more§impl Error for RpcError
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 Error for RpcError
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 Serialize for RpcError
source§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
diff --git a/pr/2595/docs/iroh/base/rpc/type.RpcResult.html b/pr/2595/docs/iroh/base/rpc/type.RpcResult.html
index 20379efb2c..eb67c06e83 100644
--- a/pr/2595/docs/iroh/base/rpc/type.RpcResult.html
+++ b/pr/2595/docs/iroh/base/rpc/type.RpcResult.html
@@ -1,4 +1,4 @@
-RpcResult in iroh::base::rpc - Rust pub type RpcResult<T> = Result<T, RpcError>;
Expand description
A serializable result type for use in RPC responses.
+RpcResult in iroh::base::rpc - Rust pub type RpcResult<T> = Result<T, RpcError>;
Expand description
A serializable result type for use in RPC responses.
Aliased Type§
enum RpcResult<T> {
Ok(T),
Err(RpcError),
diff --git a/pr/2595/docs/iroh/base/ticket/enum.Error.html b/pr/2595/docs/iroh/base/ticket/enum.Error.html
index 780cd4d7df..e74e59cee8 100644
--- a/pr/2595/docs/iroh/base/ticket/enum.Error.html
+++ b/pr/2595/docs/iroh/base/ticket/enum.Error.html
@@ -1,4 +1,4 @@
-Error in iroh::base::ticket - Rust pub enum Error {
+Error in iroh::base::ticket - Rust pub enum Error {
Kind {
expected: &'static str,
},
@@ -10,7 +10,7 @@
§Postcard(Error)
This looks like a ticket, but postcard deserialization failed.
§Encoding(DecodeError)
This looks like a ticket, but base32 decoding failed.
§Verify(&'static str)
Verification of the deserialized bytes failed.
-
Trait Implementations§
§impl Error for Error
§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()§impl From<DecodeError> for Error
§fn from(source: DecodeError) -> Error
Converts to this type from the input type.Auto Trait Implementations§
§impl Freeze for Error
§impl RefUnwindSafe for Error
§impl Send for Error
§impl Sync for Error
§impl Unpin for Error
§impl UnwindSafe for Error
Blanket Implementations§
Trait Implementations§
source§impl Error for Error
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.Auto Trait Implementations§
§impl Freeze for Error
§impl RefUnwindSafe for Error
§impl Send for Error
§impl Sync for Error
§impl Unpin for Error
§impl UnwindSafe for Error
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
§fn implicit(
diff --git a/pr/2595/docs/iroh/base/ticket/index.html b/pr/2595/docs/iroh/base/ticket/index.html
index f3f28d276c..c54b61d6bc 100644
--- a/pr/2595/docs/iroh/base/ticket/index.html
+++ b/pr/2595/docs/iroh/base/ticket/index.html
@@ -1,3 +1,3 @@
-iroh::base::ticket - Rust Structs§
- A token containing everything to get a file from the provider.
- A token containing everything to get a file from the provider.
Enums§
- An error deserializing an iroh ticket.
Traits§
- A ticket is a serializable object that combines all information required
+
iroh::base::ticket - Rust Structs§
- A token containing everything to get a file from the provider.
- A token containing everything to get a file from the provider.
Enums§
- An error deserializing an iroh ticket.
Traits§
- A ticket is a serializable object that combines all information required
for an operation. E.g. an iroh blob ticket would contain the hash of the
data as well as information about how to reach the provider.
\ No newline at end of file
diff --git a/pr/2595/docs/iroh/base/ticket/struct.BlobTicket.html b/pr/2595/docs/iroh/base/ticket/struct.BlobTicket.html
index 3eee80a4eb..262cf68a3f 100644
--- a/pr/2595/docs/iroh/base/ticket/struct.BlobTicket.html
+++ b/pr/2595/docs/iroh/base/ticket/struct.BlobTicket.html
@@ -1,25 +1,25 @@
-BlobTicket in iroh::base::ticket - Rust Struct iroh::base::ticket::BlobTicket
pub struct BlobTicket { /* private fields */ }
Expand description
A token containing everything to get a file from the provider.
+BlobTicket in iroh::base::ticket - Rust Struct iroh::base::ticket::BlobTicket
source · pub struct BlobTicket { /* private fields */ }
Expand description
A token containing everything to get a file from the provider.
It is a single item which can be easily serialized and deserialized.
-Implementations§
§impl BlobTicket
pub fn new(
+
Implementations§
source§impl BlobTicket
sourcepub fn new(
node: NodeAddr,
hash: Hash,
format: BlobFormat
) -> Result<BlobTicket, Error>
Creates a new ticket.
-pub fn format(&self) -> BlobFormat
The BlobFormat for this ticket.
-pub fn recursive(&self) -> bool
True if the ticket is for a collection and should retrieve all blobs in it.
-pub fn into_parts(self) -> (NodeAddr, Hash, BlobFormat)
Get the contents of the ticket, consuming it.
-Trait Implementations§
§impl Clone for BlobTicket
§fn clone(&self) -> BlobTicket
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 BlobTicket
§impl<'de> Deserialize<'de> for BlobTicket
§fn deserialize<D>(
+
sourcepub fn format(&self) -> BlobFormat
The BlobFormat for this ticket.
+sourcepub fn recursive(&self) -> bool
True if the ticket is for a collection and should retrieve all blobs in it.
+sourcepub fn into_parts(self) -> (NodeAddr, Hash, BlobFormat)
Get the contents of the ticket, consuming it.
+Trait Implementations§
source§impl Clone for BlobTicket
source§fn clone(&self) -> BlobTicket
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read moresource§impl Debug for BlobTicket
source§impl<'de> Deserialize<'de> for BlobTicket
source§fn deserialize<D>(
deserializer: D
) -> Result<BlobTicket, <D as Deserializer<'de>>::Error>where
- D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more§impl Display for BlobTicket
§impl FromStr for BlobTicket
§impl PartialEq for BlobTicket
§fn eq(&self, other: &BlobTicket) -> bool
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for BlobTicket
source§impl FromStr for BlobTicket
source§impl PartialEq for BlobTicket
source§fn eq(&self, other: &BlobTicket) -> bool
This method tests for self and other values to be equal, and is used
by ==.§impl Serialize for BlobTicket
source§impl Serialize for BlobTicket
source§fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
- S: Serializer,
Serialize this value into the given Serde serializer. Read more§impl Ticket for BlobTicket
§fn from_bytes(bytes: &[u8]) -> Result<BlobTicket, Error>
Deserialize from the base32 string representation bytes.§fn deserialize(str: &str) -> Result<Self, Error>
Deserialize from a string.§impl Eq for BlobTicket
§impl StructuralPartialEq for BlobTicket
Auto Trait Implementations§
§impl Freeze for BlobTicket
§impl RefUnwindSafe for BlobTicket
§impl Send for BlobTicket
§impl Sync for BlobTicket
§impl Unpin for BlobTicket
§impl UnwindSafe for BlobTicket
Blanket Implementations§
source§impl<T> Any for Twhere
+ S: Serializer,
Serialize this value into the given Serde serializer. Read moresource§impl Ticket for BlobTicket
source§fn from_bytes(bytes: &[u8]) -> Result<BlobTicket, Error>
Deserialize from the base32 string representation bytes.source§impl Eq for BlobTicket
source§impl StructuralPartialEq for BlobTicket
Auto Trait Implementations§
§impl Freeze for BlobTicket
§impl RefUnwindSafe for BlobTicket
§impl Send for BlobTicket
§impl Sync for BlobTicket
§impl Unpin for BlobTicket
§impl UnwindSafe for BlobTicket
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
§fn implicit(
diff --git a/pr/2595/docs/iroh/base/ticket/struct.NodeTicket.html b/pr/2595/docs/iroh/base/ticket/struct.NodeTicket.html
index a8a572ed1a..46296a9c61 100644
--- a/pr/2595/docs/iroh/base/ticket/struct.NodeTicket.html
+++ b/pr/2595/docs/iroh/base/ticket/struct.NodeTicket.html
@@ -1,17 +1,17 @@
-NodeTicket in iroh::base::ticket - Rust Struct iroh::base::ticket::NodeTicket
pub struct NodeTicket { /* private fields */ }
Expand description
A token containing everything to get a file from the provider.
+NodeTicket in iroh::base::ticket - Rust Struct iroh::base::ticket::NodeTicket
source · pub struct NodeTicket { /* private fields */ }
Expand description
A token containing everything to get a file from the provider.
It is a single item which can be easily serialized and deserialized.
-Implementations§
§impl NodeTicket
Trait Implementations§
§impl Clone for NodeTicket
§fn clone(&self) -> NodeTicket
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 NodeTicket
§impl<'de> Deserialize<'de> for NodeTicket
§fn deserialize<D>(
+
Implementations§
Trait Implementations§
source§impl Clone for NodeTicket
source§fn clone(&self) -> NodeTicket
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read moresource§impl Debug for NodeTicket
source§impl<'de> Deserialize<'de> for NodeTicket
source§fn deserialize<D>(
deserializer: D
) -> Result<NodeTicket, <D as Deserializer<'de>>::Error>where
- D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more§impl Display for NodeTicket
§impl FromStr for NodeTicket
§impl PartialEq for NodeTicket
§fn eq(&self, other: &NodeTicket) -> bool
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for NodeTicket
source§impl FromStr for NodeTicket
source§impl PartialEq for NodeTicket
source§fn eq(&self, other: &NodeTicket) -> bool
This method tests for self and other values to be equal, and is used
by ==.§impl Serialize for NodeTicket
source§impl Serialize for NodeTicket
source§fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
- S: Serializer,
Serialize this value into the given Serde serializer. Read more§impl Ticket for NodeTicket
§fn from_bytes(bytes: &[u8]) -> Result<NodeTicket, Error>
Deserialize from the base32 string representation bytes.§fn deserialize(str: &str) -> Result<Self, Error>
Deserialize from a string.§impl Eq for NodeTicket
§impl StructuralPartialEq for NodeTicket
Auto Trait Implementations§
§impl Freeze for NodeTicket
§impl RefUnwindSafe for NodeTicket
§impl Send for NodeTicket
§impl Sync for NodeTicket
§impl Unpin for NodeTicket
§impl UnwindSafe for NodeTicket
Blanket Implementations§
source§impl<T> Any for Twhere
+ S: Serializer,
Serialize this value into the given Serde serializer. Read moresource§impl Ticket for NodeTicket
source§fn from_bytes(bytes: &[u8]) -> Result<NodeTicket, Error>
Deserialize from the base32 string representation bytes.source§impl Eq for NodeTicket
source§impl StructuralPartialEq for NodeTicket
Auto Trait Implementations§
§impl Freeze for NodeTicket
§impl RefUnwindSafe for NodeTicket
§impl Send for NodeTicket
§impl Sync for NodeTicket
§impl Unpin for NodeTicket
§impl UnwindSafe for NodeTicket
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
§fn implicit(
diff --git a/pr/2595/docs/iroh/base/ticket/trait.Ticket.html b/pr/2595/docs/iroh/base/ticket/trait.Ticket.html
index 531fbc4287..526b8cba99 100644
--- a/pr/2595/docs/iroh/base/ticket/trait.Ticket.html
+++ b/pr/2595/docs/iroh/base/ticket/trait.Ticket.html
@@ -1,4 +1,4 @@
-Ticket in iroh::base::ticket - Rust pub trait Ticket: Sized {
+Ticket in iroh::base::ticket - Rust pub trait Ticket: Sized {
const KIND: &'static str;
// Required methods
@@ -17,10 +17,10 @@ ticket will be prepended to the string to make it somewhat self describing.
versioning, others might not.
The serialization format for converting the ticket from and to bytes is left
to the implementer. We recommend using postcard for serialization.
-
Required Associated Constants§
Required Associated Constants§
Required Methods§
fn from_bytes(bytes: &[u8]) -> Result<Self, Error>
Deserialize from the base32 string representation bytes.
-Provided Methods§
fn deserialize(str: &str) -> Result<Self, Error>
Deserialize from a string.
-Object Safety§
This trait is not object safe.Implementors§
\ No newline at end of file
+
Required Methods§
sourcefn from_bytes(bytes: &[u8]) -> Result<Self, Error>
Deserialize from the base32 string representation bytes.
+Provided Methods§
sourcefn deserialize(str: &str) -> Result<Self, Error>
Deserialize from a string.
+Object Safety§
This trait is not object safe.Implementors§
\ No newline at end of file
diff --git a/pr/2595/docs/iroh/blobs/constant.IROH_BLOCK_SIZE.html b/pr/2595/docs/iroh/blobs/constant.IROH_BLOCK_SIZE.html
index 0ee4c2d125..69a4aeb220 100644
--- a/pr/2595/docs/iroh/blobs/constant.IROH_BLOCK_SIZE.html
+++ b/pr/2595/docs/iroh/blobs/constant.IROH_BLOCK_SIZE.html
@@ -1,2 +1,2 @@
-IROH_BLOCK_SIZE in iroh::blobs - Rust Constant iroh::blobs::IROH_BLOCK_SIZE
pub const IROH_BLOCK_SIZE: BlockSize;
Expand description
Block size used by iroh, 2^4*1024 = 16KiB
+IROH_BLOCK_SIZE in iroh::blobs - Rust Constant iroh::blobs::IROH_BLOCK_SIZE
source · pub const IROH_BLOCK_SIZE: BlockSize;
Expand description
Block size used by iroh, 2^4*1024 = 16KiB
\ No newline at end of file
diff --git a/pr/2595/docs/iroh/blobs/downloader/enum.DownloadError.html b/pr/2595/docs/iroh/blobs/downloader/enum.DownloadError.html
index daa28559f0..d85ff56cb5 100644
--- a/pr/2595/docs/iroh/blobs/downloader/enum.DownloadError.html
+++ b/pr/2595/docs/iroh/blobs/downloader/enum.DownloadError.html
@@ -1,4 +1,4 @@
-DownloadError in iroh::blobs::downloader - Rust Enum iroh::blobs::downloader::DownloadError
pub enum DownloadError {
+DownloadError in iroh::blobs::downloader - Rust Enum iroh::blobs::downloader::DownloadError
source · pub enum DownloadError {
DownloadFailed,
Cancelled,
NoProviders,
@@ -8,7 +8,7 @@
§Cancelled
The download was cancelled by us
§NoProviders
No provider nodes found
§ActorClosed
Failed to receive response from service.
-
Trait Implementations§
§impl Clone for DownloadError
§fn clone(&self) -> DownloadError
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 DownloadError
§impl Display for DownloadError
§impl Error for DownloadError
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()Auto Trait Implementations§
§impl Freeze for DownloadError
§impl RefUnwindSafe for DownloadError
§impl Send for DownloadError
§impl Sync for DownloadError
§impl Unpin for DownloadError
§impl UnwindSafe for DownloadError
Blanket Implementations§
Trait Implementations§
source§impl Clone for DownloadError
source§fn clone(&self) -> DownloadError
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read moresource§impl Debug for DownloadError
source§impl Display for DownloadError
source§impl Error for DownloadError
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()Auto Trait Implementations§
§impl Freeze for DownloadError
§impl RefUnwindSafe for DownloadError
§impl Send for DownloadError
§impl Sync for DownloadError
§impl Unpin for DownloadError
§impl UnwindSafe for DownloadError
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
§fn implicit(
diff --git a/pr/2595/docs/iroh/blobs/downloader/enum.FailureAction.html b/pr/2595/docs/iroh/blobs/downloader/enum.FailureAction.html
index 47debecde9..1d389e6186 100644
--- a/pr/2595/docs/iroh/blobs/downloader/enum.FailureAction.html
+++ b/pr/2595/docs/iroh/blobs/downloader/enum.FailureAction.html
@@ -1,4 +1,4 @@
-FailureAction in iroh::blobs::downloader - Rust Enum iroh::blobs::downloader::FailureAction
pub enum FailureAction {
+FailureAction in iroh::blobs::downloader - Rust Enum iroh::blobs::downloader::FailureAction
source · pub enum FailureAction {
AllIntentsDropped,
AbortRequest(Error),
DropPeer(Error),
@@ -8,7 +8,7 @@
§AbortRequest(Error)
An error occurred that prevents the request from being retried at all.
§DropPeer(Error)
An error occurred that suggests the node should not be used in general.
§RetryLater(Error)
An error occurred in which neither the node nor the request are at fault.
-
Trait Implementations§
§impl Debug for FailureAction
§impl From<GetError> for FailureAction
§fn from(e: GetError) -> FailureAction
Converts to this type from the input type.Auto Trait Implementations§
§impl Freeze for FailureAction
§impl RefUnwindSafe for FailureAction
§impl Send for FailureAction
§impl Sync for FailureAction
§impl Unpin for FailureAction
§impl UnwindSafe for FailureAction
Blanket Implementations§
Trait Implementations§
source§impl Debug for FailureAction
source§impl From<GetError> for FailureAction
source§fn from(e: GetError) -> FailureAction
Converts to this type from the input type.Auto Trait Implementations§
§impl Freeze for FailureAction
§impl RefUnwindSafe for FailureAction
§impl Send for FailureAction
§impl Sync for FailureAction
§impl Unpin for FailureAction
§impl UnwindSafe for FailureAction
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
§fn implicit(
diff --git a/pr/2595/docs/iroh/blobs/downloader/enum.GetOutput.html b/pr/2595/docs/iroh/blobs/downloader/enum.GetOutput.html
index 0930a6670d..b61f73323a 100644
--- a/pr/2595/docs/iroh/blobs/downloader/enum.GetOutput.html
+++ b/pr/2595/docs/iroh/blobs/downloader/enum.GetOutput.html
@@ -1,11 +1,11 @@
-GetOutput in iroh::blobs::downloader - Rust Enum iroh::blobs::downloader::GetOutput
pub enum GetOutput<N> {
+GetOutput in iroh::blobs::downloader - Rust Enum iroh::blobs::downloader::GetOutput
source · pub enum GetOutput<N> {
Complete(Stats),
NeedsConn(N),
}
Expand description
Output returned from Getter::get.
Variants§
§Complete(Stats)
The request is already complete in the local store.
§NeedsConn(N)
The request needs a connection to continue.
-Trait Implementations§
Auto Trait Implementations§
Trait Implementations§
Auto Trait Implementations§
§impl<N> Freeze for GetOutput<N>where
N: Freeze,
§impl<N> RefUnwindSafe for GetOutput<N>where
N: RefUnwindSafe,
§impl<N> Send for GetOutput<N>where
N: Send,
§impl<N> Sync for GetOutput<N>where
diff --git a/pr/2595/docs/iroh/blobs/downloader/index.html b/pr/2595/docs/iroh/blobs/downloader/index.html
index 5a2a0295d6..6e4d179e97 100644
--- a/pr/2595/docs/iroh/blobs/downloader/index.html
+++ b/pr/2595/docs/iroh/blobs/downloader/index.html
@@ -1,4 +1,4 @@
-iroh::blobs::downloader - Rust Module iroh::blobs::downloader
Expand description
Handle downloading blobs and collections concurrently and from nodes.
+iroh::blobs::downloader - Rust Module iroh::blobs::downloader
source · Expand description
Handle downloading blobs and collections concurrently and from nodes.
The Downloader interacts with four main components to this end.
Dialer: Used to queue opening connections to nodes we need to perform downloads.
diff --git a/pr/2595/docs/iroh/blobs/downloader/struct.ConcurrencyLimits.html b/pr/2595/docs/iroh/blobs/downloader/struct.ConcurrencyLimits.html
index 49c7cbd1e6..b5e0af36c4 100644
--- a/pr/2595/docs/iroh/blobs/downloader/struct.ConcurrencyLimits.html
+++ b/pr/2595/docs/iroh/blobs/downloader/struct.ConcurrencyLimits.html
@@ -1,4 +1,4 @@
-ConcurrencyLimits in iroh::blobs::downloader - Rust