Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/datrs/hyperspace-rs
/ functions
Functions
128 in github.com/datrs/hyperspace-rs
⨍
Functions
128
◇
Types & classes
29
↓ 36 callers
Method
lock
(&'a self)
server/src/rpc/session.rs:98
↓ 20 callers
Method
len
(&self)
client/src/session.rs:130
↓ 16 callers
Method
read
(&self)
client/src/session.rs:142
↓ 14 callers
Method
get
(&'a mut self, seq: u64)
client/src/session.rs:162
↓ 7 callers
Method
iter
(&self)
corestore/src/feed_map.rs:52
↓ 5 callers
Method
get_by_key
Get a feed by its public key
corestore/src/corestore.rs:63
↓ 4 callers
Method
append
(&mut self, blocks: Vec<Vec<u8>>)
client/src/session.rs:146
↓ 4 callers
Method
insert
(&mut self, value: V)
client/src/freemap.rs:40
↓ 4 callers
Method
open
(&mut self)
client/src/session.rs:210
↓ 4 callers
Function
replicate_corestore
Replicate all feeds in a corestore with peers
corestore/src/replicate.rs:7
↓ 3 callers
Method
add_stream
Add a new connection to the replicator
replicator/src/lib.rs:80
↓ 3 callers
Function
get
(mut core: RemoteHypercore, seq: u64)
client/src/stream.rs:17
↓ 3 callers
Method
get_by_name
(&self, key: &K)
client/src/freemap.rs:105
↓ 3 callers
Function
get_future
(core: RemoteHypercore, seq: u64)
client/src/stream.rs:43
↓ 3 callers
Function
socket_path
(socket_name: Option<T>)
common/src/lib.rs:11
↓ 3 callers
Method
subscribe
(&mut self)
client/src/session.rs:202
↓ 3 callers
Method
subscribe
Subscribe to events from this corestore
corestore/src/corestore.rs:58
↓ 2 callers
Method
add_feed
Add a feed to the replicator
replicator/src/lib.rs:57
↓ 2 callers
Method
add_io
(&mut self, reader: R, writer: W, is_initiator: bool)
replicator/src/lib.rs:88
↓ 2 callers
Function
bad_id
()
server/src/rpc/session.rs:42
↓ 2 callers
Method
emit
(&mut self, event: HypercoreEvent)
client/src/session.rs:289
↓ 2 callers
Method
emit
(&self, event: ReplicatorEvent)
replicator/src/lib.rs:66
↓ 2 callers
Function
exit
(message: T)
client/src/bin.rs:58
↓ 2 callers
Method
feed_path
(&self, dkey: &Key)
corestore/src/corestore.rs:279
↓ 2 callers
Method
feed_storage
(&self, dkey: &Key, name: &str)
corestore/src/corestore.rs:288
↓ 2 callers
Method
feeds
Iterate over all feeds. Note: A lock on the corestore is kept until the iterator is dropped, so don't use this across `await`s. Example: ``` # #[asy
corestore/src/corestore.rs:100
↓ 2 callers
Function
generate_key
()
corestore/src/corestore.rs:348
↓ 2 callers
Method
generate_key_pair
( &self, name: Option<Name>, )
corestore/src/corestore.rs:325
↓ 2 callers
Method
get
(&self, id: u64)
client/src/freemap.rs:99
↓ 2 callers
Method
get_by_name
Get or create a writable feed by name
corestore/src/corestore.rs:68
↓ 2 callers
Method
insert_with_name
(&mut self, value: V, name: K)
client/src/freemap.rs:50
↓ 2 callers
Method
name_storage
(&self, dkey: &Key)
corestore/src/corestore.rs:294
↓ 2 callers
Method
on_open
(&mut self)
replicator/src/peer.rs:179
↓ 2 callers
Method
open
Open a corestore from disk
corestore/src/corestore.rs:47
↓ 2 callers
Method
open_feed
(&mut self, key: Option<Key>, name: Option<Name>)
corestore/src/corestore.rs:223
↓ 2 callers
Function
random_access_disk
TODO: Make this a callback (for e.g. inmemory).
corestore/src/corestore.rs:356
↓ 2 callers
Method
run_peer
(&mut self, proto: Protocol<IO>)
replicator/src/lib.rs:115
↓ 2 callers
Method
send_have
(&mut self, start: u64, length: Option<u64>)
replicator/src/peer.rs:146
↓ 2 callers
Method
set_id
(&mut self, id: u64)
client/src/session.rs:122
↓ 2 callers
Method
set_name
(&mut self, id: u64, key: K)
client/src/freemap.rs:56
↓ 2 callers
Method
subscribe
Subscribe to events on the replicator
replicator/src/lib.rs:73
↓ 1 callers
Function
accept
(path: P, state: S, mut onconnection: Cb)
server/src/rpc/socket.rs:7
↓ 1 callers
Method
add_downloaded
(&mut self, blocks: u64, bytes: u64)
replicator/src/peer.rs:84
↓ 1 callers
Method
add_peer
(&mut self, id: RemotePublicKey, channel: Channel)
replicator/src/peer.rs:31
↓ 1 callers
Method
add_uploaded
(&mut self, blocks: u64, bytes: u64)
replicator/src/peer.rs:88
↓ 1 callers
Function
async_main
(opts: Opts)
client/src/bin.rs:72
↓ 1 callers
Function
async_main
()
corestore/examples/demo.rs:39
↓ 1 callers
Function
async_main
(opts: Opts)
server/src/bin.rs:11
↓ 1 callers
Method
configure
( &mut self, _request: ConfigureNetworkRequest, )
server/src/rpc/session.rs:181
↓ 1 callers
Function
derive_key
(master_key: &[u8], ns: &[u8], name: &[u8])
corestore/src/corestore.rs:341
↓ 1 callers
Method
derive_secret
(&self, namespace: &Name, name: &Name)
corestore/src/corestore.rs:321
↓ 1 callers
Method
emit
(&mut self, event: Event)
corestore/src/corestore.rs:169
↓ 1 callers
Method
get
(&mut self, req: GetRequest)
server/src/rpc/session.rs:55
↓ 1 callers
Method
get_by_dkey
Get a feed by its discovery key This only works if the feed is found on disk
corestore/src/corestore.rs:78
↓ 1 callers
Method
get_dkey
(&self, dkey: &Key)
corestore/src/feed_map.rs:33
↓ 1 callers
Method
get_key
(&self, key: &Key)
corestore/src/feed_map.rs:30
↓ 1 callers
Method
get_name
(&self, name: &Name)
corestore/src/feed_map.rs:27
↓ 1 callers
Function
init
()
corestore/src/replicate.rs:115
↓ 1 callers
Method
insert
(&mut self, feed: Feed, name: Option<Name>)
corestore/src/feed_map.rs:37
↓ 1 callers
Method
join_all
Wait for all connections and feeds to close
replicator/src/lib.rs:108
↓ 1 callers
Function
keys
()
corestore/examples/demo.rs:22
↓ 1 callers
Function
listen
Open the server and start listening This will run a few things in parallel tasks: - a corestore that stores hypercore feeds - the hyperswarm dht, wai
server/src/lib.rs:39
↓ 1 callers
Function
notify_loop
(id: u64, feed: ArcFeed, mut client: Client)
server/src/rpc/session.rs:107
↓ 1 callers
Method
on_append
(&mut self, req: AppendEvent)
client/src/session.rs:80
↓ 1 callers
Method
on_data
(&mut self, data: Data)
replicator/src/peer.rs:262
↓ 1 callers
Method
on_download
(&mut self, req: DownloadEvent)
client/src/session.rs:87
↓ 1 callers
Method
on_have
(&mut self, have: Have)
replicator/src/peer.rs:183
↓ 1 callers
Method
on_request
(&mut self, request: Request)
replicator/src/peer.rs:304
↓ 1 callers
Method
on_want
(&mut self, want: Want)
replicator/src/peer.rs:219
↓ 1 callers
Function
onappend_future
(core: RemoteHypercore, seq: u64)
client/src/stream.rs:47
↓ 1 callers
Function
onappend_get
(mut core: RemoteHypercore, seq: u64)
client/src/stream.rs:27
↓ 1 callers
Method
open_by_key
(&mut self, key: Key)
client/src/session.rs:45
↓ 1 callers
Method
open_by_name
(&mut self, name: impl ToString)
client/src/session.rs:58
↓ 1 callers
Function
parse_bitfield
(bitfield: Vec<u8>)
replicator/src/peer.rs:334
↓ 1 callers
Function
pubkey_from_bytes
(bytes: &Key)
corestore/src/corestore.rs:337
↓ 1 callers
Function
read
(mut core: RemoteHypercore, mut writer: impl AsyncWrite + Send + Unpin)
client/src/bin.rs:120
↓ 1 callers
Method
read_name
(&self, dkey: &Key)
corestore/src/corestore.rs:298
↓ 1 callers
Function
run
(mut replicator: Replicator, opts: Opts)
server/src/network.rs:8
↓ 1 callers
Method
run
(&mut self)
replicator/src/peer.rs:110
↓ 1 callers
Function
run_rpc
(socket_path: P, state: State)
server/src/rpc/mod.rs:13
↓ 1 callers
Function
seek
(mut core: RemoteHypercore, byte_offset: u64)
client/src/stream.rs:22
↓ 1 callers
Method
seek
(&mut self, byte_offset: u64)
client/src/session.rs:177
↓ 1 callers
Function
seek_future
(core: RemoteHypercore, byte_offset: usize)
client/src/stream.rs:51
↓ 1 callers
Method
send_wants
(&mut self, index: u64)
replicator/src/peer.rs:157
↓ 1 callers
Method
set_notify_task
(&mut self, task: JoinHandle<io::Result<()>>)
server/src/rpc/session.rs:102
↓ 1 callers
Method
stats
Get stats on the replication status for each feed
replicator/src/lib.rs:98
↓ 1 callers
Function
swarm_config_from_opts
(opts: Opts)
server/src/network.rs:42
↓ 1 callers
Function
task_client
(mut replicator: Replicator)
corestore/examples/demo.rs:95
↓ 1 callers
Function
task_server
(mut replicator: Replicator)
corestore/examples/demo.rs:104
↓ 1 callers
Function
timeout
(ms: u64)
corestore/examples/demo.rs:116
↓ 1 callers
Method
to_stream
(&mut self, start: u64, end: Option<u64>, live: bool)
client/src/session.rs:194
↓ 1 callers
Function
usage
()
corestore/examples/demo.rs:17
↓ 1 callers
Function
write
(mut core: RemoteHypercore, mut reader: impl AsyncRead + Send + Unpin)
client/src/bin.rs:131
↓ 1 callers
Method
write_name_if_empty
(&self, dkey: &Key, name: &Name)
corestore/src/corestore.rs:309
Method
_remove
(&mut self, feed: ArcFeed)
corestore/src/feed_map.rs:56
Method
append
(&mut self, req: AppendRequest)
server/src/rpc/session.rs:63
Method
byte_length
(&self)
client/src/session.rs:134
Method
default
()
server/src/options.rs:43
Method
fmt
(&self, f: &mut std::fmt::Formatter)
client/src/stream.rs:127
Method
fmt
(&self, f: &mut fmt::Formatter<'_>)
client/src/session.rs:102
next →
1–100 of 128, ranked by callers