Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/GGist/bip-rs
/ functions
Functions
1,430 in github.com/GGist/bip-rs
⨍
Functions
1,430
◇
Types & classes
295
↓ 154 callers
Method
into
(self)
bip_dht/src/token.rs:52
↓ 117 callers
Method
len
()
bip_util/src/sha/mod.rs:41
↓ 114 callers
Method
insert
Add the InfoHash to the current request.
bip_utracker/src/scrape.rs:89
↓ 91 callers
Method
as_ref
(&self)
bip_dht/src/token.rs:64
↓ 83 callers
Method
parse
(s: &str)
bip_magnet/src/lib.rs:16
↓ 71 callers
Method
push
(&mut self, item: V)
bip_bencode/src/access/list.rs:95
↓ 66 callers
Method
iter
Iterator over all of the hashes in the request.
bip_utracker/src/scrape.rs:96
↓ 61 callers
Method
clone
(&self)
bip_peer/src/manager/mod.rs:123
↓ 57 callers
Method
info
Info dictionary for the metainfo file.
bip_metainfo/src/metainfo.rs:68
↓ 56 callers
Method
iter
Iterator over each node within the bucket. For buckets newly created, the initial bad nodes are included.
bip_dht/src/routing/bucket.rs:53
↓ 37 callers
Function
decode
(bytes: &'a [u8], pos: usize, opts: BDecodeOpt, depth: usize)
bip_bencode/src/reference/decode.rs:9
↓ 35 callers
Method
info_hash
(&self)
bip_disk/src/memory/block.rs:28
↓ 35 callers
Method
remove
Remove the given extension from the list of supported `Extensions`.
bip_handshake/src/message/extensions.rs:42
↓ 33 callers
Method
to_owned
Create an owned version of the ErrorResponse.
bip_utracker/src/error.rs:40
↓ 30 callers
Method
run
Run a new TrackerServer.
bip_utracker/src/server/mod.rs:21
↓ 28 callers
Method
generate
(&mut self)
bip_dht/src/transaction.rs:82
↓ 25 callers
Method
get
Search for and construct the given AnnounceOption from the current AnnounceOptions. Returns None if the option is not found or it failed to read from
bip_utracker/src/option.rs:79
↓ 25 callers
Method
get_mut
(&mut self, index: usize)
bip_bencode/src/access/list.rs:79
↓ 24 callers
Method
into
(self)
bip_dht/src/message/error.rs:44
↓ 24 callers
Method
len
(&self)
bip_utracker/src/scrape.rs:219
↓ 22 callers
Method
into
(self)
bip_util/src/sha/mod.rs:53
↓ 21 callers
Method
build
Build a `Handshaker` over the given `Transport` with a `Remote` instance.
bip_handshake/src/handshake/handshaker.rs:105
↓ 20 callers
Method
clone
(&self)
bip_dht/src/routing/node.rs:177
↓ 20 callers
Method
lookup_and_convert_bytes
Combines a lookup operation on the given key with a conversion of the value, if found, to a series of bytes.
bip_bencode/src/access/convert.rs:124
↓ 19 callers
Function
send_block
Send block with the given metadata and entire data given.
bip_disk/test/mod.rs:77
↓ 18 callers
Method
encode
(&self)
bip_dht/src/message/ping.rs:45
↓ 17 callers
Method
add_filter
(&self, filter: F)
bip_handshake/src/filter/filters.rs:16
↓ 17 callers
Method
build
Build a `DiskManager` with the given `FileSystem`.
bip_disk/src/disk/builder.rs:57
↓ 17 callers
Function
random_buffer
Generate buffer of size random bytes.
bip_disk/test/mod.rs:35
↓ 17 callers
Method
write
(&mut self, data: &[T])
bip_util/src/contiguous.rs:38
↓ 17 callers
Method
write_bytes
Write the AnnounceRequest to the given writer.
bip_utracker/src/announce.rs:73
↓ 16 callers
Method
clone
(&self)
bip_disk/src/disk/manager.rs:83
↓ 16 callers
Method
insert
Add the given peer to the list of peers.
bip_utracker/src/contact.rs:134
↓ 16 callers
Method
status
Current status of the node.
bip_dht/src/routing/node.rs:146
↓ 16 callers
Function
validate_parse_from_params
Helper function for manually constructing a metainfo file based on the parameters given. If the metainfo file builds successfully, assertions will be
bip_metainfo/src/metainfo.rs:414
↓ 15 callers
Method
action_id
(&self)
bip_dht/src/transaction.rs:146
↓ 15 callers
Method
info_hash
(&self)
bip_dht/src/storage.rs:151
↓ 15 callers
Method
next
(&mut self)
bip_utracker/src/scrape.rs:206
↓ 15 callers
Method
node_id
(&self)
bip_dht/src/message/ping.rs:41
↓ 14 callers
Method
dict_mut
(&mut self)
bip_bencode/src/mutable/bencode_mut.rs:135
↓ 14 callers
Function
dummy_socket_addr_v4
Generates a dummy socket address v4 as a `SocketAddr`.
bip_util/src/test.rs:33
↓ 14 callers
Method
piece_index
(&self)
bip_disk/src/memory/block.rs:32
↓ 14 callers
Function
shutdown_event_loop
Shut down the event loop by sending it a shutdown message with the given cause.
bip_dht/src/worker/handler.rs:222
↓ 14 callers
Method
with_peer_id
Peer id that will be advertised when handshaking with other peers. Defaults to a random SHA-1 hash; official clients should use an encoding scheme.
bip_handshake/src/handshake/handshaker.rs:82
↓ 13 callers
Function
core_loop_with_timeout
Initiate a core loop with the given timeout, state, and closure. Returns R or panics if an error occurred in the loop (including a timeout).
bip_disk/test/mod.rs:49
↓ 13 callers
Method
into_iter
(self)
bip_dht/src/message/compact_info.rs:40
↓ 13 callers
Method
write_bytes
(&self, mut writer: W)
bip_handshake/src/bittorrent/message.rs:35
↓ 13 callers
Function
write_length_id_pair
Write a length and optional id out to the given writer.
bip_peer/src/message/mod.rs:160
↓ 12 callers
Method
into
(self)
bip_bencode/src/reference/bencode_ref.rs:26
↓ 12 callers
Method
into_iter
(self)
bip_bencode/src/access/list.rs:50
↓ 12 callers
Method
is_empty
Whether or not the given piece buffer is empty.
bip_metainfo/src/builder/buffer.rs:78
↓ 12 callers
Method
lookup
(&self, key: &[u8])
bip_bencode/src/access/dict.rs:27
↓ 12 callers
Function
mask_ipv4_be
Perform the initial mask of an ipv4 address.
bip_dht/src/security.rs:124
↓ 12 callers
Method
port
(&self)
bip_handshake/src/discovery.rs:13
↓ 12 callers
Method
read
(&self, mut receive: F)
bip_util/src/contiguous.rs:48
↓ 12 callers
Method
with_bind_addr
Address that the host will listen on. Defaults to IN_ADDR_ANY using port 0 (any free port).
bip_handshake/src/handshake/handshaker.rs:61
↓ 11 callers
Method
access_filters
(&self, block: B)
bip_handshake/src/filter/filters.rs:40
↓ 11 callers
Method
add_node
Add the node to the RoutingTable if there is space for it.
bip_dht/src/routing/table.rs:83
↓ 11 callers
Method
clone
(&self)
bip_util/src/send/split_sender.rs:24
↓ 11 callers
Method
lookup_and_convert_int
Combines a lookup operation on the given key with a conversion of the value, if found, to an integer.
bip_bencode/src/access/convert.rs:117
↓ 11 callers
Method
set_piece_length
Sets the piece length for the torrent file.
bip_metainfo/src/builder/mod.rs:170
↓ 10 callers
Method
buckets
Iterator over all buckets in the routing table.
bip_dht/src/routing/table.rs:51
↓ 10 callers
Function
decode_int
(bytes: &'a [u8], pos: usize, delim: u8)
bip_bencode/src/reference/decode.rs:37
↓ 10 callers
Method
get
(&self, index: usize)
bip_bencode/src/access/list.rs:75
↓ 10 callers
Method
insert
Add an AnnounceOption to the current set of AnnounceOptions. Any existing option with a matching option byte will be replaced.
bip_utracker/src/option.rs:88
↓ 10 callers
Method
into_parts
Break the `CompleteMessage` into its parts.
bip_handshake/src/message/complete.rs:55
↓ 10 callers
Method
next
(&mut self)
bip_dht/src/routing/table.rs:235
↓ 10 callers
Method
pack
Pack a value T at the end of the contiguous buffers.
bip_util/src/contiguous.rs:75
↓ 9 callers
Method
block_length
(&self)
bip_disk/src/memory/block.rs:40
↓ 9 callers
Method
build
Build an `UberModule` based on the current builder.
bip_select/src/uber.rs:88
↓ 9 callers
Method
choose
Choose between the current decision, and the other decision. Allow > NeedData > Block > Pass
bip_handshake/src/filter/mod.rs:99
↓ 9 callers
Method
dict
(&self)
bip_bencode/src/reference/bencode_ref.rs:96
↓ 9 callers
Function
four_bytes_to_array
Convert a 4 byte value to an array of 4 bytes.
bip_util/src/convert.rs:4
↓ 9 callers
Method
hash
Retrieve the peer info hash.
bip_peer/src/manager/peer_info.rs:38
↓ 9 callers
Function
ipv4_to_bytes_be
Convert an ipv4 address to an array of 4 bytes big endian.
bip_util/src/convert.rs:23
↓ 9 callers
Method
is_empty
(&self)
bip_dht/src/routing/table.rs:193
↓ 9 callers
Method
list_mut
(&mut self)
bip_bencode/src/mutable/bencode_mut.rs:128
↓ 9 callers
Method
request
Execute an asynchronous request to the given tracker. If the maximum number of requests are currently in progress, return None.
bip_utracker/src/client/mod.rs:146
↓ 8 callers
Method
add_node
Attempt to add the given Node to the bucket if it is not in a bad state. Returns false if the Node could not be placed in the bucket because it is fu
bip_dht/src/routing/bucket.rs:65
↓ 8 callers
Method
block_offset
(&self)
bip_disk/src/memory/block.rs:36
↓ 8 callers
Method
clear
(&mut self)
bip_util/src/contiguous.rs:34
↓ 8 callers
Method
create_region
(&mut self, num_bytes: usize)
bip_metainfo/src/builder/worker.rs:235
↓ 8 callers
Function
dummy_block_socket_addrs
Generates a block of unique ipv4 addresses as Vec<`SocketAddr`>
bip_util/src/test.rs:41
↓ 8 callers
Method
files
Iterator over each file within the torrent file. Ordering of files yielded in the iterator is guaranteed to be the order in which they are found in t
bip_metainfo/src/metainfo.rs:196
↓ 8 callers
Method
find_items
Invoke the closure once for each contact for the given InfoHash.
bip_dht/src/storage.rs:54
↓ 8 callers
Method
handle_error
(&self, error: BencodeConvertError)
bip_metainfo/src/parse.rs:12
↓ 8 callers
Method
into_inner
(self)
bip_handshake/src/bittorrent/framed.rs:38
↓ 8 callers
Method
into_parts
Break the `PeerManager` into a sink and stream. The returned sink implements `Clone`.
bip_peer/src/manager/mod.rs:76
↓ 8 callers
Function
ipv6_to_bytes_be
Convert an ipv6 address to an array of 16 bytes big endian.
bip_util/src/convert.rs:28
↓ 8 callers
Method
list
(&self)
bip_bencode/src/reference/bencode_ref.rs:89
↓ 8 callers
Method
lookup_and_convert_str
Combines a lookup operation on the given key with a conversion of the value, if found, to a UTF-8 string.
bip_bencode/src/access/convert.rs:131
↓ 8 callers
Method
notify_client
Finish a request by sending the result back to the client.
bip_utracker/src/client/dispatcher.rs:125
↓ 8 callers
Method
transaction_id
(&self)
bip_dht/src/message/ping.rs:37
↓ 8 callers
Function
validate_entries_pieces
(accessor: MockAccessor, piece_length: usize, num_threads: usize)
bip_metainfo/src/builder/worker.rs:280
↓ 8 callers
Method
validate_node_id
(&self, node_id: &[u8])
bip_dht/src/message/request.rs:33
↓ 7 callers
Method
checkout
(&mut self, addr: IpAddr)
bip_dht/src/token.rs:95
↓ 7 callers
Method
contains
Check if a given extension is activated.
bip_handshake/src/message/extensions.rs:51
↓ 7 callers
Function
dummy_node_id
Generates a dummy node id as a `NodeId`.
bip_util/src/test.rs:55
↓ 7 callers
Method
encode
(&mut self, item: Self::Item, dst: &mut BytesMut)
bip_peer/src/codec.rs:58
↓ 7 callers
Method
find
(&mut self, info_hash: &InfoHash, mut item_func: F, curr_time: DateTime<UTC>)
bip_dht/src/storage.rs:60
next →
1–100 of 1,430, ranked by callers