Crate overnet_core

Source
Expand description

Main Overnet functionality.

Structs§

ListPeersContext
Wrapper to get the right list_peers behavior.
ListablePeer
A type that can be converted into a super::Peer
NodeId
Labels a node with a mesh-unique address
NodeIdGenerator
Generates node id’s for tests in a repeatable fashion.
NodeLinkId
Labels a link with a node-unique identifier
Router
Router maintains global state for one node_id. LinkData is a token identifying a link for layers above Router. Time is a representation of time for the Router, to assist injecting different platforms schemes.

Enums§

AscenddClientRouting
Whether this node’s ascendd clients should be routed to each other
Endpoint
Identifies whether an endpoint is a client or server

Functions§

decode_fidl
Decode some bytes into a FIDL type
encode_fidl
Encode a FIDL type into some bytes
log_errors
Takes a future that returns an error, and transforms it to a future that logs said error
set_proxy_drop_event_handler
Sets a global callback to call every time a proxy is dropped. It’s given a reference to the error and can be used to send metrics events.