Skip to main content

Crate scp2p_core

Crate scp2p_core 

Source

Re-exports§

pub use api::AbuseLimits;
pub use api::ActiveRelaySlot;
pub use api::BlocklistRules;
pub use api::CommunityMembershipToken;
pub use api::Node;
pub use api::NodeHandle;
pub use api::OwnedShareRecord;
pub use api::SearchPage;
pub use api::SearchPageQuery;
pub use api::SearchQuery;
pub use api::SearchResult;
pub use api::SearchTrustFilter;
pub use api::ShareItemInfo;
pub use api::SubscriptionTrustLevel;
pub use capabilities::Capabilities;
pub use config::NodeConfig;
pub use content::CHUNK_SIZE;
pub use content::ChunkedContent;
pub use content::chunk_hashes;
pub use content::compute_chunk_list_hash;
pub use content::describe_content;
pub use content::verify_chunk;
pub use content::verify_chunked_content;
pub use content::verify_content;
pub use dht::ALPHA;
pub use dht::DEFAULT_TTL_SECS;
pub use dht::Dht;
pub use dht::DhtInsertResult;
pub use dht::DhtNodeRecord;
pub use dht::DhtValue;
pub use dht::K;
pub use dht::MAX_TTL_SECS;
pub use dht::MAX_VALUE_SIZE;
pub use dht_keys::community_info_key;
pub use dht_keys::content_provider_key;
pub use dht_keys::manifest_loc_key;
pub use dht_keys::share_head_key;
pub use ids::ContentId;
pub use ids::ManifestId;
pub use ids::NodeId;
pub use ids::ShareId;
pub use manifest::ItemV1;
pub use manifest::ManifestV1;
pub use manifest::PublicShareSummary;
pub use manifest::ShareHead;
pub use manifest::ShareKeypair;
pub use manifest::ShareVisibility;
pub use net_fetch::BoxedStream;
pub use net_fetch::DirectRequestTransport;
pub use net_fetch::FetchPolicy;
pub use net_fetch::OwnedRelayAwareTransport;
pub use net_fetch::PeerConnector;
pub use net_fetch::ProgressCallback;
pub use net_fetch::RelayAwareTransport;
pub use net_fetch::RequestTransport;
pub use net_fetch::SessionPoolTransport;
pub use net_fetch::download_swarm_over_network;
pub use net_fetch::download_swarm_to_file;
pub use net_fetch::fetch_manifest_with_retry;
pub use net_fetch::send_request_on_stream;
pub use peer::PeerAddr;
pub use peer::RelayRoute;
pub use peer::TransportProtocol;
pub use peer_db::CAPABILITY_FRESHNESS_WINDOW_SECS;
pub use peer_db::PEX_FRESHNESS_WINDOW_SECS;
pub use peer_db::PEX_MAX_PEERS;
pub use peer_db::PeerDb;
pub use peer_db::PeerRecord;
pub use store::EncryptedSecret;
pub use store::MemoryStore;
pub use store::PersistedCommunity;
pub use store::PersistedPartialDownload;
pub use store::PersistedPublisherIdentity;
pub use store::PersistedState;
pub use store::PersistedSubscription;
pub use store::SqliteStore;
pub use store::Store;
pub use store::decrypt_secret;
pub use store::encrypt_secret;
pub use transfer::ChunkProvider;
pub use transfer::download_swarm;
pub use relay::BandwidthClass;
pub use relay::RELAY_ANNOUNCEMENT_MAX_TTL_SECS;
pub use relay::RELAY_RENDEZVOUS_BUCKET_SECS;
pub use relay::RELAY_RENDEZVOUS_N;
pub use relay::RELAY_SLOT_TTL_SECS;
pub use relay::RelayAnnouncement;
pub use relay::RelayCapacity;
pub use relay::RelayLimits;
pub use relay::RelayManager;
pub use relay::RelayPayloadKind as RelayInternalPayloadKind;
pub use relay::RelayScore;
pub use relay::RelaySlot;
pub use relay::RelayStream as RelayInternalStream;
pub use relay::RelayTunnelRegistry;
pub use transport::AuthenticatedSession;
pub use transport::DispatchResult;
pub use transport::HANDSHAKE_MAX_BYTES;
pub use transport::NonceTracker;
pub use transport::NoopDispatcher;
pub use transport::WireDispatcher;
pub use transport::dispatch_envelope;
pub use transport::generate_nonce;
pub use transport::handshake_initiator;
pub use transport::handshake_responder;
pub use transport::read_envelope;
pub use transport::run_message_loop;
pub use transport::write_envelope;
pub use transport_net::QuicBiStream;
pub use transport_net::QuicClientSession;
pub use transport_net::QuicServerHandle;
pub use transport_net::TlsServerHandle;
pub use transport_net::build_tls_server_handle;
pub use transport_net::quic_accept_bi_session;
pub use transport_net::quic_connect_bi_session;
pub use transport_net::quic_connect_bi_session_insecure;
pub use transport_net::start_quic_server;
pub use transport_net::tls_accept_session;
pub use transport_net::tls_connect_session;
pub use transport_net::tls_connect_session_insecure;

Modules§

api
blob_store
Path-based chunk I/O for content seeding.
capabilities
cbor
config
content
dht
dht_keys
ids
manifest
net_fetch
peer
peer_db
relay
search
store
transfer
transport
transport_net
wire

Constants§

APP_VERSION
Application version string, derived from Cargo.toml.