mirror of
https://github.com/ratspeak/rsReticulum
synced 2026-11-27 13:52:16 +00:00
transport: repair discovery and bound background radio admission
This commit is contained in:
1 parent
1a0a74ad06
commit
1ff0134979
37 files changed
+3424
-280
No files matched your search
@@ -71,6 +71,10 @@ AutoInterface's interoperable UDP ports or alter Reticulum wire formats.
|
||||
|
||||
## Stability
|
||||
|
||||
The 1.4 line changes the six discovery coordinate fields to `Option<f64>` so
|
||||
unknown values remain distinct from real zero. See the
|
||||
[1.4 migration guide](migrations/1.4.md) for source, wire and storage behavior.
|
||||
|
||||
The 1.3 line deliberately replaces publicly mutable recursive discovery state
|
||||
with detached observations and exact requester cancellation. See the
|
||||
[1.3 migration guide](migrations/1.3.md). Normal runtime lookup/recovery APIs
|
||||
|
||||
Generated
+8
-8
@@ -1176,7 +1176,7 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "rns-crypto"
|
||||
version = "1.3.0"
|
||||
version = "1.4.0"
|
||||
dependencies = [
|
||||
"aes",
|
||||
"cbc",
|
||||
@@ -1194,7 +1194,7 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "rns-identity"
|
||||
version = "1.3.0"
|
||||
version = "1.4.0"
|
||||
dependencies = [
|
||||
"hex",
|
||||
"rand",
|
||||
@@ -1212,7 +1212,7 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "rns-interface"
|
||||
version = "1.3.0"
|
||||
version = "1.4.0"
|
||||
dependencies = [
|
||||
"bluer",
|
||||
"btleplug",
|
||||
@@ -1245,7 +1245,7 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "rns-link"
|
||||
version = "1.3.0"
|
||||
version = "1.4.0"
|
||||
dependencies = [
|
||||
"hex",
|
||||
"rand",
|
||||
@@ -1260,7 +1260,7 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "rns-protocol"
|
||||
version = "1.3.0"
|
||||
version = "1.4.0"
|
||||
dependencies = [
|
||||
"bzip2",
|
||||
"hex",
|
||||
@@ -1276,7 +1276,7 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "rns-runtime"
|
||||
version = "1.3.0"
|
||||
version = "1.4.0"
|
||||
dependencies = [
|
||||
"bytes",
|
||||
"hex",
|
||||
@@ -1303,7 +1303,7 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "rns-transport"
|
||||
version = "1.3.0"
|
||||
version = "1.4.0"
|
||||
dependencies = [
|
||||
"bytes",
|
||||
"hex",
|
||||
@@ -1322,7 +1322,7 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "rns-wire"
|
||||
version = "1.3.0"
|
||||
version = "1.4.0"
|
||||
dependencies = [
|
||||
"rns-crypto",
|
||||
"sha2",
|
||||
|
||||
@@ -133,3 +133,33 @@ pub mod shared_ownership {
|
||||
let _ = rns_runtime::reticulum::ReticulumHandle::startup_interface_failures;
|
||||
}
|
||||
}
|
||||
|
||||
/// The 1.4 discovery API distinguishes unknown components from true zeros.
|
||||
pub mod nullable_discovery {
|
||||
use rns_transport::discovery::DiscoveryInterfaceConfig;
|
||||
use rns_transport::discovery::app_data::DiscoveryInfo;
|
||||
|
||||
pub fn literal() -> DiscoveryInfo {
|
||||
DiscoveryInfo {
|
||||
name: "coordinate-fixture".into(),
|
||||
interface_type: "BackboneInterface".into(),
|
||||
latitude: Some(0.0),
|
||||
longitude: Some(0.0),
|
||||
height: None,
|
||||
..DiscoveryInfo::default()
|
||||
}
|
||||
}
|
||||
|
||||
pub fn configured() -> DiscoveryInterfaceConfig {
|
||||
let mut config =
|
||||
DiscoveryInterfaceConfig::backbone("relay".into(), "127.0.0.1".into(), 4965);
|
||||
config.latitude = Some(0.0);
|
||||
config.longitude = None;
|
||||
config.height = Some(0.0);
|
||||
config
|
||||
}
|
||||
|
||||
pub fn read(info: &DiscoveryInfo) -> [Option<f64>; 3] {
|
||||
[info.latitude, info.longitude, info.height]
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,64 @@
|
||||
# Migrating to rsReticulum 1.4
|
||||
|
||||
Version 1.4 deliberately changes six public discovery coordinate fields from
|
||||
`f64` to `Option<f64>`. The three fields `latitude`, `longitude`, and `height`
|
||||
change in both `DiscoveryInfo` and `DiscoveryInterfaceConfig`, including the
|
||||
re-export of `DiscoveryInterfaceConfig` from `rns_transport::discovery`.
|
||||
Use `~1.4.0` or an exact reviewed revision when selecting this source-compatible
|
||||
release line. Cargo's ordinary `1.3` caret range also permits 1.4; it does not
|
||||
protect callers from this project's explicitly reviewed API migration.
|
||||
|
||||
## Representing a location
|
||||
|
||||
Unknown coordinates are `None`; known coordinates, including zero, are `Some`.
|
||||
The components are independent, so a known latitude and longitude do not imply
|
||||
a known height. `Default` and discovery convenience constructors leave them
|
||||
unknown. Update struct literals and assignments accordingly:
|
||||
|
||||
```rust,ignore
|
||||
// Before
|
||||
config.latitude = 0.0;
|
||||
config.longitude = -105.0;
|
||||
config.height = 0.0;
|
||||
|
||||
// After: latitude is genuinely zero; height is unknown.
|
||||
config.latitude = Some(0.0);
|
||||
config.longitude = Some(-105.0);
|
||||
config.height = None;
|
||||
```
|
||||
|
||||
Consumers should match the options or use `if let Some(value)` when displaying
|
||||
or using a component. Do not use `unwrap_or(0.0)` to turn an unknown location
|
||||
into a real map position. This change does not add new coordinate range rules.
|
||||
|
||||
## Wire, configuration and storage
|
||||
|
||||
The discovery map retains its existing keys. An unknown component is encoded
|
||||
as MessagePack `nil`, matching Python Reticulum; a known component remains a
|
||||
number. Missing configuration leaves a component unknown, while an explicit
|
||||
zero remains known. Existing configuration key precedence and units are retained.
|
||||
No new wire protocol version or storage directory is required.
|
||||
|
||||
The Rust decoder continues accepting integer coordinates and missing coordinate
|
||||
keys as a leniency: integers become `Some`, and missing values become `None`.
|
||||
Those forms are not a claim of strict Python validation parity. Valid Python
|
||||
`nil`, partial-coordinate and floating-point records are supported.
|
||||
|
||||
Existing numeric discovery records remain numeric on disk reload. Old stored
|
||||
zero cannot reveal whether it was deliberately configured or produced by the
|
||||
previous defaulting behavior, so it is preserved as `Some(0.0)`. A fresh valid
|
||||
announcement can replace it. Records containing `nil` or absent location keys
|
||||
load as `None`. Downgrading to older Rust versions loses this distinction:
|
||||
those versions coerce stored unknown components to zero.
|
||||
|
||||
`rnstatus-rs` represents unknown components as JSON `null`; text output uses
|
||||
presence instead of treating zero as absent. This does not change an embedding
|
||||
application's separate map display or location-sharing policy.
|
||||
|
||||
## Retained migration history
|
||||
|
||||
The [1.3 discovery ownership migration](1.3.md) still applies to consumers
|
||||
upgrading from older releases. Version 1.4 retains those exact reviewed changes
|
||||
and the historical API compatibility floor. The compatibility metadata lists
|
||||
nine changed field paths for the six fields because three are also re-exported;
|
||||
no additional unrelated API removals are authorized.
|
||||
@@ -4,7 +4,7 @@
|
||||
"packages": [
|
||||
{
|
||||
"name": "rns-crypto",
|
||||
"version": "1.3.0",
|
||||
"version": "1.4.0",
|
||||
"rustVersion": "1.89",
|
||||
"edition": "2024",
|
||||
"features": {
|
||||
@@ -173,7 +173,7 @@
|
||||
},
|
||||
{
|
||||
"name": "rns-identity",
|
||||
"version": "1.3.0",
|
||||
"version": "1.4.0",
|
||||
"rustVersion": "1.89",
|
||||
"edition": "2024",
|
||||
"features": {},
|
||||
@@ -239,7 +239,7 @@
|
||||
"rename": null,
|
||||
"kind": null,
|
||||
"target": null,
|
||||
"requirement": "~1.3.0",
|
||||
"requirement": "~1.4.0",
|
||||
"optional": false,
|
||||
"defaultFeatures": false,
|
||||
"features": [
|
||||
@@ -252,7 +252,7 @@
|
||||
"rename": null,
|
||||
"kind": null,
|
||||
"target": null,
|
||||
"requirement": "~1.3.0",
|
||||
"requirement": "~1.4.0",
|
||||
"optional": false,
|
||||
"defaultFeatures": false,
|
||||
"features": [
|
||||
@@ -336,7 +336,7 @@
|
||||
},
|
||||
{
|
||||
"name": "rns-interface",
|
||||
"version": "1.3.0",
|
||||
"version": "1.4.0",
|
||||
"rustVersion": "1.89",
|
||||
"edition": "2024",
|
||||
"features": {
|
||||
@@ -452,7 +452,7 @@
|
||||
"rename": null,
|
||||
"kind": null,
|
||||
"target": null,
|
||||
"requirement": "~1.3.0",
|
||||
"requirement": "~1.4.0",
|
||||
"optional": false,
|
||||
"defaultFeatures": false,
|
||||
"features": [
|
||||
@@ -465,7 +465,7 @@
|
||||
"rename": null,
|
||||
"kind": null,
|
||||
"target": null,
|
||||
"requirement": "~1.3.0",
|
||||
"requirement": "~1.4.0",
|
||||
"optional": false,
|
||||
"defaultFeatures": true,
|
||||
"features": [],
|
||||
@@ -476,7 +476,7 @@
|
||||
"rename": null,
|
||||
"kind": null,
|
||||
"target": null,
|
||||
"requirement": "~1.3.0",
|
||||
"requirement": "~1.4.0",
|
||||
"optional": false,
|
||||
"defaultFeatures": true,
|
||||
"features": [],
|
||||
@@ -487,7 +487,7 @@
|
||||
"rename": null,
|
||||
"kind": null,
|
||||
"target": null,
|
||||
"requirement": "~1.3.0",
|
||||
"requirement": "~1.4.0",
|
||||
"optional": false,
|
||||
"defaultFeatures": false,
|
||||
"features": [
|
||||
@@ -696,7 +696,7 @@
|
||||
},
|
||||
{
|
||||
"name": "rns-link",
|
||||
"version": "1.3.0",
|
||||
"version": "1.4.0",
|
||||
"rustVersion": "1.89",
|
||||
"edition": "2024",
|
||||
"features": {
|
||||
@@ -759,7 +759,7 @@
|
||||
"rename": null,
|
||||
"kind": null,
|
||||
"target": null,
|
||||
"requirement": "~1.3.0",
|
||||
"requirement": "~1.4.0",
|
||||
"optional": false,
|
||||
"defaultFeatures": false,
|
||||
"features": [],
|
||||
@@ -770,7 +770,7 @@
|
||||
"rename": null,
|
||||
"kind": null,
|
||||
"target": null,
|
||||
"requirement": "~1.3.0",
|
||||
"requirement": "~1.4.0",
|
||||
"optional": false,
|
||||
"defaultFeatures": true,
|
||||
"features": [],
|
||||
@@ -781,7 +781,7 @@
|
||||
"rename": null,
|
||||
"kind": null,
|
||||
"target": null,
|
||||
"requirement": "~1.3.0",
|
||||
"requirement": "~1.4.0",
|
||||
"optional": false,
|
||||
"defaultFeatures": false,
|
||||
"features": [],
|
||||
@@ -826,7 +826,7 @@
|
||||
},
|
||||
{
|
||||
"name": "rns-protocol",
|
||||
"version": "1.3.0",
|
||||
"version": "1.4.0",
|
||||
"rustVersion": "1.89",
|
||||
"edition": "2024",
|
||||
"features": {},
|
||||
@@ -892,7 +892,7 @@
|
||||
"rename": null,
|
||||
"kind": null,
|
||||
"target": null,
|
||||
"requirement": "~1.3.0",
|
||||
"requirement": "~1.4.0",
|
||||
"optional": false,
|
||||
"defaultFeatures": false,
|
||||
"features": [
|
||||
@@ -905,7 +905,7 @@
|
||||
"rename": null,
|
||||
"kind": null,
|
||||
"target": null,
|
||||
"requirement": "~1.3.0",
|
||||
"requirement": "~1.4.0",
|
||||
"optional": false,
|
||||
"defaultFeatures": true,
|
||||
"features": [],
|
||||
@@ -916,7 +916,7 @@
|
||||
"rename": null,
|
||||
"kind": null,
|
||||
"target": null,
|
||||
"requirement": "~1.3.0",
|
||||
"requirement": "~1.4.0",
|
||||
"optional": false,
|
||||
"defaultFeatures": false,
|
||||
"features": [
|
||||
@@ -963,7 +963,7 @@
|
||||
},
|
||||
{
|
||||
"name": "rns-ratkey",
|
||||
"version": "1.3.0",
|
||||
"version": "1.4.0",
|
||||
"rustVersion": "1.89",
|
||||
"edition": "2024",
|
||||
"features": {
|
||||
@@ -1078,7 +1078,7 @@
|
||||
"rename": null,
|
||||
"kind": null,
|
||||
"target": null,
|
||||
"requirement": "~1.3.0",
|
||||
"requirement": "~1.4.0",
|
||||
"optional": false,
|
||||
"defaultFeatures": false,
|
||||
"features": [
|
||||
@@ -1091,7 +1091,7 @@
|
||||
"rename": null,
|
||||
"kind": null,
|
||||
"target": null,
|
||||
"requirement": "~1.3.0",
|
||||
"requirement": "~1.4.0",
|
||||
"optional": false,
|
||||
"defaultFeatures": true,
|
||||
"features": [],
|
||||
@@ -1197,7 +1197,7 @@
|
||||
},
|
||||
{
|
||||
"name": "rns-runtime",
|
||||
"version": "1.3.0",
|
||||
"version": "1.4.0",
|
||||
"rustVersion": "1.89",
|
||||
"edition": "2024",
|
||||
"features": {
|
||||
@@ -1312,7 +1312,7 @@
|
||||
"rename": null,
|
||||
"kind": null,
|
||||
"target": null,
|
||||
"requirement": "~1.3.0",
|
||||
"requirement": "~1.4.0",
|
||||
"optional": false,
|
||||
"defaultFeatures": false,
|
||||
"features": [
|
||||
@@ -1325,7 +1325,7 @@
|
||||
"rename": null,
|
||||
"kind": null,
|
||||
"target": null,
|
||||
"requirement": "~1.3.0",
|
||||
"requirement": "~1.4.0",
|
||||
"optional": false,
|
||||
"defaultFeatures": true,
|
||||
"features": [],
|
||||
@@ -1336,7 +1336,7 @@
|
||||
"rename": null,
|
||||
"kind": null,
|
||||
"target": null,
|
||||
"requirement": "~1.3.0",
|
||||
"requirement": "~1.4.0",
|
||||
"optional": false,
|
||||
"defaultFeatures": true,
|
||||
"features": [],
|
||||
@@ -1347,7 +1347,7 @@
|
||||
"rename": null,
|
||||
"kind": null,
|
||||
"target": null,
|
||||
"requirement": "~1.3.0",
|
||||
"requirement": "~1.4.0",
|
||||
"optional": false,
|
||||
"defaultFeatures": true,
|
||||
"features": [],
|
||||
@@ -1358,7 +1358,7 @@
|
||||
"rename": null,
|
||||
"kind": null,
|
||||
"target": null,
|
||||
"requirement": "~1.3.0",
|
||||
"requirement": "~1.4.0",
|
||||
"optional": false,
|
||||
"defaultFeatures": true,
|
||||
"features": [],
|
||||
@@ -1369,7 +1369,7 @@
|
||||
"rename": null,
|
||||
"kind": null,
|
||||
"target": null,
|
||||
"requirement": "~1.3.0",
|
||||
"requirement": "~1.4.0",
|
||||
"optional": false,
|
||||
"defaultFeatures": true,
|
||||
"features": [],
|
||||
@@ -1380,7 +1380,7 @@
|
||||
"rename": null,
|
||||
"kind": null,
|
||||
"target": null,
|
||||
"requirement": "~1.3.0",
|
||||
"requirement": "~1.4.0",
|
||||
"optional": false,
|
||||
"defaultFeatures": false,
|
||||
"features": [
|
||||
@@ -1475,7 +1475,7 @@
|
||||
},
|
||||
{
|
||||
"name": "rns-tools",
|
||||
"version": "1.3.0",
|
||||
"version": "1.4.0",
|
||||
"rustVersion": "1.89",
|
||||
"edition": "2024",
|
||||
"features": {
|
||||
@@ -1586,7 +1586,7 @@
|
||||
"rename": null,
|
||||
"kind": null,
|
||||
"target": null,
|
||||
"requirement": "~1.3.0",
|
||||
"requirement": "~1.4.0",
|
||||
"optional": false,
|
||||
"defaultFeatures": false,
|
||||
"features": [
|
||||
@@ -1599,7 +1599,7 @@
|
||||
"rename": null,
|
||||
"kind": null,
|
||||
"target": null,
|
||||
"requirement": "~1.3.0",
|
||||
"requirement": "~1.4.0",
|
||||
"optional": false,
|
||||
"defaultFeatures": true,
|
||||
"features": [],
|
||||
@@ -1610,7 +1610,7 @@
|
||||
"rename": null,
|
||||
"kind": null,
|
||||
"target": null,
|
||||
"requirement": "~1.3.0",
|
||||
"requirement": "~1.4.0",
|
||||
"optional": false,
|
||||
"defaultFeatures": true,
|
||||
"features": [],
|
||||
@@ -1621,7 +1621,7 @@
|
||||
"rename": null,
|
||||
"kind": null,
|
||||
"target": null,
|
||||
"requirement": "~1.3.0",
|
||||
"requirement": "~1.4.0",
|
||||
"optional": true,
|
||||
"defaultFeatures": true,
|
||||
"features": [
|
||||
@@ -1634,7 +1634,7 @@
|
||||
"rename": null,
|
||||
"kind": null,
|
||||
"target": null,
|
||||
"requirement": "~1.3.0",
|
||||
"requirement": "~1.4.0",
|
||||
"optional": false,
|
||||
"defaultFeatures": true,
|
||||
"features": [
|
||||
@@ -1647,7 +1647,7 @@
|
||||
"rename": null,
|
||||
"kind": null,
|
||||
"target": null,
|
||||
"requirement": "~1.3.0",
|
||||
"requirement": "~1.4.0",
|
||||
"optional": false,
|
||||
"defaultFeatures": true,
|
||||
"features": [],
|
||||
@@ -1658,7 +1658,7 @@
|
||||
"rename": null,
|
||||
"kind": null,
|
||||
"target": null,
|
||||
"requirement": "~1.3.0",
|
||||
"requirement": "~1.4.0",
|
||||
"optional": false,
|
||||
"defaultFeatures": false,
|
||||
"features": [
|
||||
@@ -1751,7 +1751,7 @@
|
||||
},
|
||||
{
|
||||
"name": "rns-transport",
|
||||
"version": "1.3.0",
|
||||
"version": "1.4.0",
|
||||
"rustVersion": "1.89",
|
||||
"edition": "2024",
|
||||
"features": {
|
||||
@@ -1831,7 +1831,7 @@
|
||||
"rename": null,
|
||||
"kind": null,
|
||||
"target": null,
|
||||
"requirement": "~1.3.0",
|
||||
"requirement": "~1.4.0",
|
||||
"optional": false,
|
||||
"defaultFeatures": false,
|
||||
"features": [
|
||||
@@ -1844,7 +1844,7 @@
|
||||
"rename": null,
|
||||
"kind": null,
|
||||
"target": null,
|
||||
"requirement": "~1.3.0",
|
||||
"requirement": "~1.4.0",
|
||||
"optional": false,
|
||||
"defaultFeatures": true,
|
||||
"features": [],
|
||||
@@ -1855,7 +1855,7 @@
|
||||
"rename": null,
|
||||
"kind": null,
|
||||
"target": null,
|
||||
"requirement": "~1.3.0",
|
||||
"requirement": "~1.4.0",
|
||||
"optional": false,
|
||||
"defaultFeatures": false,
|
||||
"features": [
|
||||
@@ -1926,7 +1926,7 @@
|
||||
},
|
||||
{
|
||||
"name": "rns-wire",
|
||||
"version": "1.3.0",
|
||||
"version": "1.4.0",
|
||||
"rustVersion": "1.89",
|
||||
"edition": "2024",
|
||||
"features": {
|
||||
@@ -1955,7 +1955,7 @@
|
||||
"rename": null,
|
||||
"kind": null,
|
||||
"target": null,
|
||||
"requirement": "~1.3.0",
|
||||
"requirement": "~1.4.0",
|
||||
"optional": false,
|
||||
"defaultFeatures": false,
|
||||
"features": [],
|
||||
|
||||
@@ -74,6 +74,8 @@ pub rns_transport::actor::TransportActor::traffic: rns_transport::traffic::Traff
|
||||
pub rns_transport::actor::TransportActor::transport_identity_hash: core::option::Option<[u8; 16]>
|
||||
pub rns_transport::actor::TransportActor::tunnel_table: rns_transport::tunnel::TunnelTable
|
||||
impl rns_transport::actor::TransportActor
|
||||
pub fn rns_transport::actor::TransportActor::announce_dispatch_handle(&self) -> rns_transport::announce_dispatch::AnnounceDispatchHandle
|
||||
impl rns_transport::actor::TransportActor
|
||||
pub fn rns_transport::actor::TransportActor::cancel_discovery_requester(&mut self, &rns_transport::path_discovery::DiscoveryRequester) -> bool
|
||||
pub fn rns_transport::actor::TransportActor::discovery_path_request(&self, &[u8; 16]) -> core::option::Option<rns_transport::path_discovery::DiscoveryPathRequest>
|
||||
pub fn rns_transport::actor::TransportActor::discovery_path_requests(&self) -> alloc::vec::Vec<rns_transport::path_discovery::DiscoveryPathRequest>
|
||||
@@ -115,11 +117,40 @@ pub fn rns_transport::announce::AnnounceTable::new() -> Self
|
||||
pub fn rns_transport::announce::AnnounceTable::remove(&mut self, &[u8; 16]) -> core::option::Option<rns_transport::announce::AnnounceEntry>
|
||||
impl core::default::Default for rns_transport::announce::AnnounceTable
|
||||
pub fn rns_transport::announce::AnnounceTable::default() -> Self
|
||||
pub mod rns_transport::announce_dispatch
|
||||
#[non_exhaustive] pub enum rns_transport::announce_dispatch::AnnounceDispatchError
|
||||
pub rns_transport::announce_dispatch::AnnounceDispatchError::Closed
|
||||
pub rns_transport::announce_dispatch::AnnounceDispatchError::Full
|
||||
#[non_exhaustive] pub enum rns_transport::announce_dispatch::AnnounceDispatchResult
|
||||
pub rns_transport::announce_dispatch::AnnounceDispatchResult::Admitted
|
||||
pub rns_transport::announce_dispatch::AnnounceDispatchResult::Expired
|
||||
pub rns_transport::announce_dispatch::AnnounceDispatchResult::Invalid
|
||||
pub rns_transport::announce_dispatch::AnnounceDispatchResult::NoEligibleInterface
|
||||
pub struct rns_transport::announce_dispatch::AnnounceDispatchHandle
|
||||
impl rns_transport::announce_dispatch::AnnounceDispatchHandle
|
||||
pub fn rns_transport::announce_dispatch::AnnounceDispatchHandle::try_dispatch(&self, bytes::bytes::Bytes, core::option::Option<rns_transport::messages::InterfaceId>, core::time::Duration) -> core::result::Result<tokio::sync::oneshot::Receiver<rns_transport::announce_dispatch::AnnounceDispatchResult>, rns_transport::announce_dispatch::AnnounceDispatchError>
|
||||
pub mod rns_transport::await_path
|
||||
pub enum rns_transport::await_path::AwaitPathError
|
||||
pub rns_transport::await_path::AwaitPathError::Timeout
|
||||
pub rns_transport::await_path::AwaitPathError::TransportDown
|
||||
pub async fn rns_transport::await_path::await_path(&tokio::sync::mpsc::bounded::Sender<rns_transport::messages::TransportMessage>, [u8; 16], core::time::Duration) -> core::result::Result<(), rns_transport::await_path::AwaitPathError>
|
||||
pub mod rns_transport::background_egress
|
||||
#[non_exhaustive] pub enum rns_transport::background_egress::BackgroundRegistrationError
|
||||
pub rns_transport::background_egress::BackgroundRegistrationError::Capacity
|
||||
pub rns_transport::background_egress::BackgroundRegistrationError::Duplicate
|
||||
pub struct rns_transport::background_egress::BackgroundAnnounceReceiver
|
||||
impl rns_transport::background_egress::BackgroundAnnounceReceiver
|
||||
pub fn rns_transport::background_egress::BackgroundAnnounceReceiver::has_offer(&self) -> bool
|
||||
pub fn rns_transport::background_egress::BackgroundAnnounceReceiver::ordinary_is_empty(&self) -> bool
|
||||
pub fn rns_transport::background_egress::BackgroundAnnounceReceiver::register(&tokio::sync::mpsc::bounded::Sender<bytes::bytes::Bytes>) -> core::result::Result<Self, rns_transport::background_egress::BackgroundRegistrationError>
|
||||
pub fn rns_transport::background_egress::BackgroundAnnounceReceiver::retire_generation(&self)
|
||||
pub fn rns_transport::background_egress::BackgroundAnnounceReceiver::try_start(&self, f64) -> core::option::Option<rns_transport::background_egress::BackgroundPacket>
|
||||
pub fn rns_transport::background_egress::BackgroundAnnounceReceiver::try_start_when(&self, f64, impl core::ops::function::FnOnce() -> bool) -> core::option::Option<rns_transport::background_egress::BackgroundPacket>
|
||||
pub struct rns_transport::background_egress::BackgroundPacket
|
||||
impl rns_transport::background_egress::BackgroundPacket
|
||||
pub fn rns_transport::background_egress::BackgroundPacket::raw(&self) -> &bytes::bytes::Bytes
|
||||
impl core::ops::drop::Drop for rns_transport::background_egress::BackgroundPacket
|
||||
pub fn rns_transport::background_egress::BackgroundPacket::drop(&mut self)
|
||||
pub mod rns_transport::blackhole
|
||||
pub enum rns_transport::blackhole::BlackholeReason
|
||||
pub rns_transport::blackhole::BlackholeReason::Malformed
|
||||
@@ -269,10 +300,12 @@ pub rns_transport::discovery::announcer::AnnounceRequest::interface_id: rns_tran
|
||||
pub rns_transport::discovery::announcer::AnnounceRequest::stamp_value: u8
|
||||
pub struct rns_transport::discovery::announcer::Announcer
|
||||
impl rns_transport::discovery::announcer::Announcer
|
||||
pub fn rns_transport::discovery::announcer::Announcer::commit(&mut self, &rns_transport::discovery::announcer::PreparedAnnounce, f64) -> bool
|
||||
pub fn rns_transport::discovery::announcer::Announcer::deregister(&mut self, rns_transport::messages::InterfaceId)
|
||||
pub fn rns_transport::discovery::announcer::Announcer::is_empty(&self) -> bool
|
||||
pub fn rns_transport::discovery::announcer::Announcer::len(&self) -> usize
|
||||
pub fn rns_transport::discovery::announcer::Announcer::new(alloc::sync::Arc<dyn rns_transport::discovery::stamper::DiscoveryStamper>) -> Self
|
||||
pub fn rns_transport::discovery::announcer::Announcer::prepare(&mut self, f64, core::option::Option<rns_transport::discovery::announcer::EncryptFn<'_>>) -> (alloc::vec::Vec<rns_transport::discovery::announcer::PreparedAnnounce>, alloc::vec::Vec<(rns_transport::messages::InterfaceId, rns_transport::discovery::announcer::SkipReason)>)
|
||||
pub fn rns_transport::discovery::announcer::Announcer::register(&mut self, rns_transport::messages::InterfaceId, [u8; 16], rns_transport::discovery::announcer::DiscoveryInterfaceConfig)
|
||||
pub fn rns_transport::discovery::announcer::Announcer::tick(&mut self, f64, core::option::Option<rns_transport::discovery::announcer::EncryptFn<'_>>) -> (alloc::vec::Vec<rns_transport::discovery::announcer::AnnounceRequest>, alloc::vec::Vec<(rns_transport::messages::InterfaceId, rns_transport::discovery::announcer::SkipReason)>)
|
||||
pub struct rns_transport::discovery::announcer::DiscoveryInterfaceConfig
|
||||
@@ -283,12 +316,12 @@ pub rns_transport::discovery::announcer::DiscoveryInterfaceConfig::coding_rate:
|
||||
pub rns_transport::discovery::announcer::DiscoveryInterfaceConfig::discoverable: bool
|
||||
pub rns_transport::discovery::announcer::DiscoveryInterfaceConfig::encrypt: bool
|
||||
pub rns_transport::discovery::announcer::DiscoveryInterfaceConfig::frequency: core::option::Option<u64>
|
||||
pub rns_transport::discovery::announcer::DiscoveryInterfaceConfig::height: f64
|
||||
pub rns_transport::discovery::announcer::DiscoveryInterfaceConfig::height: core::option::Option<f64>
|
||||
pub rns_transport::discovery::announcer::DiscoveryInterfaceConfig::ifac_netkey: core::option::Option<alloc::string::String>
|
||||
pub rns_transport::discovery::announcer::DiscoveryInterfaceConfig::ifac_netname: core::option::Option<alloc::string::String>
|
||||
pub rns_transport::discovery::announcer::DiscoveryInterfaceConfig::interface_type: alloc::string::String
|
||||
pub rns_transport::discovery::announcer::DiscoveryInterfaceConfig::latitude: f64
|
||||
pub rns_transport::discovery::announcer::DiscoveryInterfaceConfig::longitude: f64
|
||||
pub rns_transport::discovery::announcer::DiscoveryInterfaceConfig::latitude: core::option::Option<f64>
|
||||
pub rns_transport::discovery::announcer::DiscoveryInterfaceConfig::longitude: core::option::Option<f64>
|
||||
pub rns_transport::discovery::announcer::DiscoveryInterfaceConfig::modulation: core::option::Option<alloc::string::String>
|
||||
pub rns_transport::discovery::announcer::DiscoveryInterfaceConfig::name: alloc::string::String
|
||||
pub rns_transport::discovery::announcer::DiscoveryInterfaceConfig::port: core::option::Option<u16>
|
||||
@@ -300,6 +333,9 @@ pub rns_transport::discovery::announcer::DiscoveryInterfaceConfig::transport_ena
|
||||
impl rns_transport::discovery::announcer::DiscoveryInterfaceConfig
|
||||
pub fn rns_transport::discovery::announcer::DiscoveryInterfaceConfig::backbone(alloc::string::String, alloc::string::String, u16) -> Self
|
||||
pub fn rns_transport::discovery::announcer::DiscoveryInterfaceConfig::is_advertisable(&self) -> bool
|
||||
pub struct rns_transport::discovery::announcer::PreparedAnnounce
|
||||
impl rns_transport::discovery::announcer::PreparedAnnounce
|
||||
pub fn rns_transport::discovery::announcer::PreparedAnnounce::request(&self) -> &rns_transport::discovery::announcer::AnnounceRequest
|
||||
pub type rns_transport::discovery::announcer::EncryptFn<'a> = &'a dyn core::ops::function::Fn(&[u8]) -> core::option::Option<alloc::vec::Vec<u8>>
|
||||
pub mod rns_transport::discovery::app_data
|
||||
pub enum rns_transport::discovery::app_data::AppDataError
|
||||
@@ -321,12 +357,12 @@ pub rns_transport::discovery::app_data::DiscoveryInfo::bandwidth: core::option::
|
||||
pub rns_transport::discovery::app_data::DiscoveryInfo::channel: core::option::Option<u16>
|
||||
pub rns_transport::discovery::app_data::DiscoveryInfo::coding_rate: core::option::Option<u8>
|
||||
pub rns_transport::discovery::app_data::DiscoveryInfo::frequency: core::option::Option<u64>
|
||||
pub rns_transport::discovery::app_data::DiscoveryInfo::height: f64
|
||||
pub rns_transport::discovery::app_data::DiscoveryInfo::height: core::option::Option<f64>
|
||||
pub rns_transport::discovery::app_data::DiscoveryInfo::ifac_netkey: core::option::Option<alloc::string::String>
|
||||
pub rns_transport::discovery::app_data::DiscoveryInfo::ifac_netname: core::option::Option<alloc::string::String>
|
||||
pub rns_transport::discovery::app_data::DiscoveryInfo::interface_type: alloc::string::String
|
||||
pub rns_transport::discovery::app_data::DiscoveryInfo::latitude: f64
|
||||
pub rns_transport::discovery::app_data::DiscoveryInfo::longitude: f64
|
||||
pub rns_transport::discovery::app_data::DiscoveryInfo::latitude: core::option::Option<f64>
|
||||
pub rns_transport::discovery::app_data::DiscoveryInfo::longitude: core::option::Option<f64>
|
||||
pub rns_transport::discovery::app_data::DiscoveryInfo::modulation: core::option::Option<alloc::string::String>
|
||||
pub rns_transport::discovery::app_data::DiscoveryInfo::name: alloc::string::String
|
||||
pub rns_transport::discovery::app_data::DiscoveryInfo::port: core::option::Option<u16>
|
||||
@@ -563,10 +599,12 @@ pub rns_transport::discovery::AnnounceRequest::interface_id: rns_transport::mess
|
||||
pub rns_transport::discovery::AnnounceRequest::stamp_value: u8
|
||||
pub struct rns_transport::discovery::Announcer
|
||||
impl rns_transport::discovery::announcer::Announcer
|
||||
pub fn rns_transport::discovery::announcer::Announcer::commit(&mut self, &rns_transport::discovery::announcer::PreparedAnnounce, f64) -> bool
|
||||
pub fn rns_transport::discovery::announcer::Announcer::deregister(&mut self, rns_transport::messages::InterfaceId)
|
||||
pub fn rns_transport::discovery::announcer::Announcer::is_empty(&self) -> bool
|
||||
pub fn rns_transport::discovery::announcer::Announcer::len(&self) -> usize
|
||||
pub fn rns_transport::discovery::announcer::Announcer::new(alloc::sync::Arc<dyn rns_transport::discovery::stamper::DiscoveryStamper>) -> Self
|
||||
pub fn rns_transport::discovery::announcer::Announcer::prepare(&mut self, f64, core::option::Option<rns_transport::discovery::announcer::EncryptFn<'_>>) -> (alloc::vec::Vec<rns_transport::discovery::announcer::PreparedAnnounce>, alloc::vec::Vec<(rns_transport::messages::InterfaceId, rns_transport::discovery::announcer::SkipReason)>)
|
||||
pub fn rns_transport::discovery::announcer::Announcer::register(&mut self, rns_transport::messages::InterfaceId, [u8; 16], rns_transport::discovery::announcer::DiscoveryInterfaceConfig)
|
||||
pub fn rns_transport::discovery::announcer::Announcer::tick(&mut self, f64, core::option::Option<rns_transport::discovery::announcer::EncryptFn<'_>>) -> (alloc::vec::Vec<rns_transport::discovery::announcer::AnnounceRequest>, alloc::vec::Vec<(rns_transport::messages::InterfaceId, rns_transport::discovery::announcer::SkipReason)>)
|
||||
pub struct rns_transport::discovery::BlackholeManifestEntry
|
||||
@@ -605,12 +643,12 @@ pub rns_transport::discovery::DiscoveryInterfaceConfig::coding_rate: core::optio
|
||||
pub rns_transport::discovery::DiscoveryInterfaceConfig::discoverable: bool
|
||||
pub rns_transport::discovery::DiscoveryInterfaceConfig::encrypt: bool
|
||||
pub rns_transport::discovery::DiscoveryInterfaceConfig::frequency: core::option::Option<u64>
|
||||
pub rns_transport::discovery::DiscoveryInterfaceConfig::height: f64
|
||||
pub rns_transport::discovery::DiscoveryInterfaceConfig::height: core::option::Option<f64>
|
||||
pub rns_transport::discovery::DiscoveryInterfaceConfig::ifac_netkey: core::option::Option<alloc::string::String>
|
||||
pub rns_transport::discovery::DiscoveryInterfaceConfig::ifac_netname: core::option::Option<alloc::string::String>
|
||||
pub rns_transport::discovery::DiscoveryInterfaceConfig::interface_type: alloc::string::String
|
||||
pub rns_transport::discovery::DiscoveryInterfaceConfig::latitude: f64
|
||||
pub rns_transport::discovery::DiscoveryInterfaceConfig::longitude: f64
|
||||
pub rns_transport::discovery::DiscoveryInterfaceConfig::latitude: core::option::Option<f64>
|
||||
pub rns_transport::discovery::DiscoveryInterfaceConfig::longitude: core::option::Option<f64>
|
||||
pub rns_transport::discovery::DiscoveryInterfaceConfig::modulation: core::option::Option<alloc::string::String>
|
||||
pub rns_transport::discovery::DiscoveryInterfaceConfig::name: alloc::string::String
|
||||
pub rns_transport::discovery::DiscoveryInterfaceConfig::port: core::option::Option<u16>
|
||||
|
||||
+14
-5
@@ -51,8 +51,8 @@
|
||||
"tier": "provisional",
|
||||
"compatibility": "reviewed-snapshot",
|
||||
"snapshot": "api/snapshots/rns-transport.txt",
|
||||
"itemCount": 1664,
|
||||
"sha256": "da11dddf5e7519e62d194c81726ef028029f912d1f445694c0abdafb3f6234cd"
|
||||
"itemCount": 1702,
|
||||
"sha256": "30f20b408ac255e1f005e25e79e4999d813ebc6b4f1a501bf573de58db0e25ab"
|
||||
},
|
||||
{
|
||||
"name": "rns-link",
|
||||
@@ -110,13 +110,22 @@
|
||||
}
|
||||
],
|
||||
"approvedBreakingChanges": {
|
||||
"releaseLine": "1.3",
|
||||
"migrationGuide": "api/migrations/1.3.md",
|
||||
"releaseLine": "1.4",
|
||||
"migrationGuide": "api/migrations/1.4.md",
|
||||
"removed": {
|
||||
"rns-transport": [
|
||||
"pub rns_transport::actor::DiscoveryPathRequest::requesting_interface: rns_transport::messages::InterfaceId",
|
||||
"pub rns_transport::actor::DiscoveryPathRequest::timeout: f64",
|
||||
"pub rns_transport::actor::TransportActor::discovery_path_requests: std::collections::hash::map::HashMap<[u8; 16], rns_transport::actor::DiscoveryPathRequest>"
|
||||
"pub rns_transport::actor::TransportActor::discovery_path_requests: std::collections::hash::map::HashMap<[u8; 16], rns_transport::actor::DiscoveryPathRequest>",
|
||||
"pub rns_transport::discovery::DiscoveryInterfaceConfig::height: f64",
|
||||
"pub rns_transport::discovery::DiscoveryInterfaceConfig::latitude: f64",
|
||||
"pub rns_transport::discovery::DiscoveryInterfaceConfig::longitude: f64",
|
||||
"pub rns_transport::discovery::announcer::DiscoveryInterfaceConfig::height: f64",
|
||||
"pub rns_transport::discovery::announcer::DiscoveryInterfaceConfig::latitude: f64",
|
||||
"pub rns_transport::discovery::announcer::DiscoveryInterfaceConfig::longitude: f64",
|
||||
"pub rns_transport::discovery::app_data::DiscoveryInfo::height: f64",
|
||||
"pub rns_transport::discovery::app_data::DiscoveryInfo::latitude: f64",
|
||||
"pub rns_transport::discovery::app_data::DiscoveryInfo::longitude: f64"
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user