MCPcopy Create free account

hub / github.com/GGist/bip-rs / functions

Functions1,430 in github.com/GGist/bip-rs

↓ 154 callersMethodinto
(self)
bip_dht/src/token.rs:52
↓ 117 callersMethodlen
()
bip_util/src/sha/mod.rs:41
↓ 114 callersMethodinsert
Add the InfoHash to the current request.
bip_utracker/src/scrape.rs:89
↓ 91 callersMethodas_ref
(&self)
bip_dht/src/token.rs:64
↓ 83 callersMethodparse
(s: &str)
bip_magnet/src/lib.rs:16
↓ 71 callersMethodpush
(&mut self, item: V)
bip_bencode/src/access/list.rs:95
↓ 66 callersMethoditer
Iterator over all of the hashes in the request.
bip_utracker/src/scrape.rs:96
↓ 61 callersMethodclone
(&self)
bip_peer/src/manager/mod.rs:123
↓ 57 callersMethodinfo
Info dictionary for the metainfo file.
bip_metainfo/src/metainfo.rs:68
↓ 56 callersMethoditer
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 callersFunctiondecode
(bytes: &'a [u8], pos: usize, opts: BDecodeOpt, depth: usize)
bip_bencode/src/reference/decode.rs:9
↓ 35 callersMethodinfo_hash
(&self)
bip_disk/src/memory/block.rs:28
↓ 35 callersMethodremove
Remove the given extension from the list of supported `Extensions`.
bip_handshake/src/message/extensions.rs:42
↓ 33 callersMethodto_owned
Create an owned version of the ErrorResponse.
bip_utracker/src/error.rs:40
↓ 30 callersMethodrun
Run a new TrackerServer.
bip_utracker/src/server/mod.rs:21
↓ 28 callersMethodgenerate
(&mut self)
bip_dht/src/transaction.rs:82
↓ 25 callersMethodget
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 callersMethodget_mut
(&mut self, index: usize)
bip_bencode/src/access/list.rs:79
↓ 24 callersMethodinto
(self)
bip_dht/src/message/error.rs:44
↓ 24 callersMethodlen
(&self)
bip_utracker/src/scrape.rs:219
↓ 22 callersMethodinto
(self)
bip_util/src/sha/mod.rs:53
↓ 21 callersMethodbuild
Build a `Handshaker` over the given `Transport` with a `Remote` instance.
bip_handshake/src/handshake/handshaker.rs:105
↓ 20 callersMethodclone
(&self)
bip_dht/src/routing/node.rs:177
↓ 20 callersMethodlookup_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 callersFunctionsend_block
Send block with the given metadata and entire data given.
bip_disk/test/mod.rs:77
↓ 18 callersMethodencode
(&self)
bip_dht/src/message/ping.rs:45
↓ 17 callersMethodadd_filter
(&self, filter: F)
bip_handshake/src/filter/filters.rs:16
↓ 17 callersMethodbuild
Build a `DiskManager` with the given `FileSystem`.
bip_disk/src/disk/builder.rs:57
↓ 17 callersFunctionrandom_buffer
Generate buffer of size random bytes.
bip_disk/test/mod.rs:35
↓ 17 callersMethodwrite
(&mut self, data: &[T])
bip_util/src/contiguous.rs:38
↓ 17 callersMethodwrite_bytes
Write the AnnounceRequest to the given writer.
bip_utracker/src/announce.rs:73
↓ 16 callersMethodclone
(&self)
bip_disk/src/disk/manager.rs:83
↓ 16 callersMethodinsert
Add the given peer to the list of peers.
bip_utracker/src/contact.rs:134
↓ 16 callersMethodstatus
Current status of the node.
bip_dht/src/routing/node.rs:146
↓ 16 callersFunctionvalidate_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 callersMethodaction_id
(&self)
bip_dht/src/transaction.rs:146
↓ 15 callersMethodinfo_hash
(&self)
bip_dht/src/storage.rs:151
↓ 15 callersMethodnext
(&mut self)
bip_utracker/src/scrape.rs:206
↓ 15 callersMethodnode_id
(&self)
bip_dht/src/message/ping.rs:41
↓ 14 callersMethoddict_mut
(&mut self)
bip_bencode/src/mutable/bencode_mut.rs:135
↓ 14 callersFunctiondummy_socket_addr_v4
Generates a dummy socket address v4 as a `SocketAddr`.
bip_util/src/test.rs:33
↓ 14 callersMethodpiece_index
(&self)
bip_disk/src/memory/block.rs:32
↓ 14 callersFunctionshutdown_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 callersMethodwith_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 callersFunctioncore_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 callersMethodinto_iter
(self)
bip_dht/src/message/compact_info.rs:40
↓ 13 callersMethodwrite_bytes
(&self, mut writer: W)
bip_handshake/src/bittorrent/message.rs:35
↓ 13 callersFunctionwrite_length_id_pair
Write a length and optional id out to the given writer.
bip_peer/src/message/mod.rs:160
↓ 12 callersMethodinto
(self)
bip_bencode/src/reference/bencode_ref.rs:26
↓ 12 callersMethodinto_iter
(self)
bip_bencode/src/access/list.rs:50
↓ 12 callersMethodis_empty
Whether or not the given piece buffer is empty.
bip_metainfo/src/builder/buffer.rs:78
↓ 12 callersMethodlookup
(&self, key: &[u8])
bip_bencode/src/access/dict.rs:27
↓ 12 callersFunctionmask_ipv4_be
Perform the initial mask of an ipv4 address.
bip_dht/src/security.rs:124
↓ 12 callersMethodport
(&self)
bip_handshake/src/discovery.rs:13
↓ 12 callersMethodread
(&self, mut receive: F)
bip_util/src/contiguous.rs:48
↓ 12 callersMethodwith_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 callersMethodaccess_filters
(&self, block: B)
bip_handshake/src/filter/filters.rs:40
↓ 11 callersMethodadd_node
Add the node to the RoutingTable if there is space for it.
bip_dht/src/routing/table.rs:83
↓ 11 callersMethodclone
(&self)
bip_util/src/send/split_sender.rs:24
↓ 11 callersMethodlookup_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 callersMethodset_piece_length
Sets the piece length for the torrent file.
bip_metainfo/src/builder/mod.rs:170
↓ 10 callersMethodbuckets
Iterator over all buckets in the routing table.
bip_dht/src/routing/table.rs:51
↓ 10 callersFunctiondecode_int
(bytes: &'a [u8], pos: usize, delim: u8)
bip_bencode/src/reference/decode.rs:37
↓ 10 callersMethodget
(&self, index: usize)
bip_bencode/src/access/list.rs:75
↓ 10 callersMethodinsert
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 callersMethodinto_parts
Break the `CompleteMessage` into its parts.
bip_handshake/src/message/complete.rs:55
↓ 10 callersMethodnext
(&mut self)
bip_dht/src/routing/table.rs:235
↓ 10 callersMethodpack
Pack a value T at the end of the contiguous buffers.
bip_util/src/contiguous.rs:75
↓ 9 callersMethodblock_length
(&self)
bip_disk/src/memory/block.rs:40
↓ 9 callersMethodbuild
Build an `UberModule` based on the current builder.
bip_select/src/uber.rs:88
↓ 9 callersMethodchoose
Choose between the current decision, and the other decision. Allow > NeedData > Block > Pass
bip_handshake/src/filter/mod.rs:99
↓ 9 callersMethoddict
(&self)
bip_bencode/src/reference/bencode_ref.rs:96
↓ 9 callersFunctionfour_bytes_to_array
Convert a 4 byte value to an array of 4 bytes.
bip_util/src/convert.rs:4
↓ 9 callersMethodhash
Retrieve the peer info hash.
bip_peer/src/manager/peer_info.rs:38
↓ 9 callersFunctionipv4_to_bytes_be
Convert an ipv4 address to an array of 4 bytes big endian.
bip_util/src/convert.rs:23
↓ 9 callersMethodis_empty
(&self)
bip_dht/src/routing/table.rs:193
↓ 9 callersMethodlist_mut
(&mut self)
bip_bencode/src/mutable/bencode_mut.rs:128
↓ 9 callersMethodrequest
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 callersMethodadd_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 callersMethodblock_offset
(&self)
bip_disk/src/memory/block.rs:36
↓ 8 callersMethodclear
(&mut self)
bip_util/src/contiguous.rs:34
↓ 8 callersMethodcreate_region
(&mut self, num_bytes: usize)
bip_metainfo/src/builder/worker.rs:235
↓ 8 callersFunctiondummy_block_socket_addrs
Generates a block of unique ipv4 addresses as Vec<`SocketAddr`>
bip_util/src/test.rs:41
↓ 8 callersMethodfiles
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 callersMethodfind_items
Invoke the closure once for each contact for the given InfoHash.
bip_dht/src/storage.rs:54
↓ 8 callersMethodhandle_error
(&self, error: BencodeConvertError)
bip_metainfo/src/parse.rs:12
↓ 8 callersMethodinto_inner
(self)
bip_handshake/src/bittorrent/framed.rs:38
↓ 8 callersMethodinto_parts
Break the `PeerManager` into a sink and stream. The returned sink implements `Clone`.
bip_peer/src/manager/mod.rs:76
↓ 8 callersFunctionipv6_to_bytes_be
Convert an ipv6 address to an array of 16 bytes big endian.
bip_util/src/convert.rs:28
↓ 8 callersMethodlist
(&self)
bip_bencode/src/reference/bencode_ref.rs:89
↓ 8 callersMethodlookup_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 callersMethodnotify_client
Finish a request by sending the result back to the client.
bip_utracker/src/client/dispatcher.rs:125
↓ 8 callersMethodtransaction_id
(&self)
bip_dht/src/message/ping.rs:37
↓ 8 callersFunctionvalidate_entries_pieces
(accessor: MockAccessor, piece_length: usize, num_threads: usize)
bip_metainfo/src/builder/worker.rs:280
↓ 8 callersMethodvalidate_node_id
(&self, node_id: &[u8])
bip_dht/src/message/request.rs:33
↓ 7 callersMethodcheckout
(&mut self, addr: IpAddr)
bip_dht/src/token.rs:95
↓ 7 callersMethodcontains
Check if a given extension is activated.
bip_handshake/src/message/extensions.rs:51
↓ 7 callersFunctiondummy_node_id
Generates a dummy node id as a `NodeId`.
bip_util/src/test.rs:55
↓ 7 callersMethodencode
(&mut self, item: Self::Item, dst: &mut BytesMut)
bip_peer/src/codec.rs:58
↓ 7 callersMethodfind
(&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