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
Method
new
(info_hash: InfoHash, piece_index: u64, block_offset: u64, block_length: usize)
bip_disk/src/memory/block.rs:19
Method
new
(pool: CpuPool, context: DiskManagerContext<F>, max_capacity: usize, cur_capacity: Arc<AtomicUsize>
bip_disk/src/disk/manager.rs:90
Method
new
Create a new `DiskManagerBuilder`.
bip_disk/src/disk/builder.rs:18
Method
new
(file: Metainfo, state: PieceCheckerState)
bip_disk/src/disk/tasks/context.rs:25
Method
new
(fs: F, info_dict: &'a Info)
bip_disk/src/disk/tasks/helpers/piece_accessor.rs:16
Method
new
Create a new PieceCheckerState.
bip_disk/src/disk/tasks/helpers/piece_checker.rs:165
Method
new
Create a new NativeFile.
bip_disk/src/disk/fs/native.rs:17
Method
new
Create a new `FileHandleCache` with the given handle capacity and an inner `FileSystem` which will be called for handles not in the cache.
bip_disk/src/disk/fs/cache/file_handle.rs:22
Method
new
Create a new FileAccessor from the given file/directory path.
bip_metainfo/src/accessor.rs:77
Method
new
(files: &'a [File])
bip_metainfo/src/iter.rs:14
Method
new
Create a new queue filled with a number of piece buffers based on the number of workers.
bip_metainfo/src/builder/buffer.rs:16
Method
new
Create a new MetainfoBuilder with some default values set.
bip_metainfo/src/builder/mod.rs:60
Method
new
()
bip_metainfo/src/builder/worker.rs:228
Method
new
(listen_addr: SocketAddr, listener: L)
bip_handshake/src/transport.rs:60
Method
new
(sock: S)
bip_handshake/src/bittorrent/framed.rs:32
Method
new
()
bip_handshake/src/filter/filters.rs:12
Method
new
Create a new `CompleteMessage` over the given socket S.
bip_handshake/src/message/complete.rs:20
Method
new
Create a new `InitiateMessage`.
bip_handshake/src/message/initiate.rs:17
Method
new
Create a new `Extensions` with zero extensions.
bip_handshake/src/message/extensions.rs:23
Method
new
Create a new `HandshakerBuilder`.
bip_handshake/src/handshake/handshaker.rs:44
Method
new
(item: (S, SocketAddr), context: &Filters)
bip_handshake/src/handshake/handler/listener.rs:15
Method
new
(timer: Timer, duration: Duration)
bip_handshake/src/handshake/handler/timer.rs:13
Method
new
Create a new `UberModuleBuilder`.
bip_select/src/uber.rs:56
Method
new
(ours: Option<ExtendedMessage>, theirs: Option<ExtendedMessage>)
bip_select/src/extended/mod.rs:46
Method
new
Create a new `UtMetadataModule`.
bip_select/src/discovery/ut_metadata.rs:83
Method
new
Create a new `HonestRevelationModule`.
bip_select/src/revelation/honest.rs:41
Method
new
Create a new empty ContiguousBuffers struct.
bip_util/src/contiguous.rs:65
Method
new
Create a `LengthError`.
bip_util/src/error.rs:25
Method
new
(bytes: &'a [u8])
bip_util/src/sha/mod.rs:143
Method
new
Create a new `ShaHashBuilder`.
bip_util/src/sha/builder.rs:14
Method
new
Create a new LocallyShuffledIds struct.
bip_util/src/trans/locally_shuffled.rs:30
Method
new
Create a new SequentialIds struct.
bip_util/src/trans/sequential.rs:16
Method
new
Create a new `SplitSender`.
bip_util/src/send/split_sender.rs:37
Method
new
(sink: S)
examples/get_metadata/src/main.rs:50
Method
new
()
bip_utracker/test/mod.rs:46
Method
new
Create a new CompactPeersIter.
bip_utracker/src/contact.rs:89
Method
new
Create a new ScrapeStats.
bip_utracker/src/scrape.rs:22
Method
new
Create a new set of AnnounceOptions.
bip_utracker/src/option.rs:40
Method
new
Create a new TrackerRequest.
bip_utracker/src/request.rs:47
Method
new
Create a new TrackerResponse.
bip_utracker/src/response.rs:44
Method
new
Create a new AnnounceRequest.
bip_utracker/src/announce.rs:41
Method
new
Create a new ErrorResponse.
bip_utracker/src/error.rs:16
Method
new
Create a new ClientDispatcher.
bip_utracker/src/client/dispatcher.rs:95
Method
new
Create a new ClientMetadata container.
bip_utracker/src/client/mod.rs:40
Method
new
Create a new ServerDispatcher.
bip_utracker/src/server/dispatcher.rs:59
Method
new_bytes
Create a new `BencodeMut` representing a `[u8]`.
bip_bencode/src/mutable/bencode_mut.rs:40
Method
new_dict
Create a new `BencodeMut` representing a `BDictAccess`.
bip_bencode/src/mutable/bencode_mut.rs:50
Method
new_int
Create a new `BencodeMut` representing an `i64`.
bip_bencode/src/mutable/bencode_mut.rs:35
Method
new_list
Create a new `BencodeMut` representing a `BListAccess`.
bip_bencode/src/mutable/bencode_mut.rs:45
Method
next
(&mut self)
bip_bencode/src/access/list.rs:63
Method
next
(&mut self)
bip_peer/src/message/standard.rs:100
Method
next
(&mut self)
bip_dht/src/message/compact_info.rs:57
Method
next
(&mut self)
bip_dht/src/routing/bucket.rs:116
Method
next
(&mut self)
bip_utracker/src/contact.rs:97
Method
node_id
(&self)
bip_dht/src/message/get_peers.rs:48
Method
node_id
(&self)
bip_dht/src/message/find_node.rs:50
Method
node_id
(&self)
bip_dht/src/message/announce_peer.rs:81
Method
node_id
Return the node id of the RoutingTable.
bip_dht/src/routing/table.rs:37
Method
nodes
(&self)
bip_dht/src/message/compact_info.rs:31
Method
notify
(&mut self, mut provider: Provider<'a, Self>, message: DispatchMessage)
bip_utracker/src/client/dispatcher.rs:304
Method
notify
(&mut self, mut provider: Provider<'a, Self>, message: DispatchMessage)
bip_utracker/src/server/dispatcher.rs:175
Method
num_active_connect_ids
(&self)
bip_utracker/test/mod.rs:52
Method
num_want
Number of peers desired by the client.
bip_utracker/src/announce.rs:119
Method
on_addr
(&self, _opt_addr: Option<&SocketAddr>)
bip_handshake/test/test_filter_block_all.rs:22
Method
on_addr
(&self, _opt_addr: Option<&SocketAddr>)
bip_handshake/test/test_filter_allow_all.rs:22
Method
on_addr
Make a filter decision based on the peer `SocketAddr`.
bip_handshake/src/filter/mod.rs:61
Method
on_ext
(&self, _opt_ext: Option<&Extensions>)
bip_handshake/test/test_filter_block_all.rs:24
Method
on_ext
(&self, _opt_ext: Option<&Extensions>)
bip_handshake/test/test_filter_allow_all.rs:24
Method
on_hash
(&self, _opt_hash: Option<&InfoHash>)
bip_handshake/test/test_filter_whitelist_diff_data.rs:21
Method
on_hash
(&self, _opt_hash: Option<&InfoHash>)
bip_handshake/test/test_filter_block_all.rs:25
Method
on_hash
(&self, _opt_hash: Option<&InfoHash>)
bip_handshake/test/test_filter_allow_all.rs:25
Method
on_hash
(&self, _opt_hash: Option<&InfoHash>)
bip_handshake/test/test_filter_whitelist_same_data.rs:21
Method
on_pid
(&self, _opt_pid: Option<&PeerId>)
bip_handshake/test/test_filter_block_all.rs:26
Method
on_pid
(&self, _opt_pid: Option<&PeerId>)
bip_handshake/test/test_filter_allow_all.rs:26
Method
on_pid
Make a filter decision based on the `PeerId`.
bip_handshake/src/filter/mod.rs:73
Method
on_prot
(&self, _opt_prot: Option<&Protocol>)
bip_handshake/test/test_filter_block_all.rs:23
Method
on_prot
(&self, _opt_prot: Option<&Protocol>)
bip_handshake/test/test_filter_allow_all.rs:23
Method
on_prot
Make a filter decision based on the handshake `Protocol`.
bip_handshake/src/filter/mod.rs:64
Method
on_update
(&mut self, info: &PeerInfo, extended: &ExtendedPeerInfo)
bip_select/src/discovery/ut_metadata.rs:486
Method
open_file
(&self, path: P)
bip_disk/src/disk/fs/native.rs:38
Method
open_file
(&self, path: P)
bip_disk/src/disk/fs/cache/file_handle.rs:38
Method
option_byte
()
bip_utracker/src/option.rs:194
Method
option_length
(&self)
bip_utracker/src/option.rs:198
Method
options
Set of AnnounceOptions supplied in the request.
bip_utracker/src/announce.rs:129
Method
our_id
Retrieve our id from the message.
bip_peer/src/message/bits_ext/handshake.rs:284
Method
our_ipv4_addr
Retrieve our ipv4 address from the message.
bip_peer/src/message/bits_ext/handshake.rs:304
Method
our_ipv6_addr
Retrieve our ipv6 address from the message.
bip_peer/src/message/bits_ext/handshake.rs:299
Method
our_max_requests
Retrieve our max queued requests from the message.
bip_peer/src/message/bits_ext/handshake.rs:309
Method
our_tcp_port
Retrieve our tcp port from the message.
bip_peer/src/message/bits_ext/handshake.rs:289
Method
parse_bytes
(&mut self, bytes: Bytes)
bip_peer/src/protocol/wire.rs:31
Method
parse_bytes
(&mut self, bytes: Bytes)
bip_peer/src/protocol/extension.rs:31
Method
parse_bytes
(&mut self, _bytes: Bytes)
bip_peer/src/protocol/unit.rs:24
Method
parse_bytes
(&mut self, _bytes: Bytes)
bip_peer/src/protocol/null.rs:32
Method
parse_bytes
(bytes: Bytes, ext_protocol: &mut P)
bip_peer/src/message/mod.rs:113
Method
parse_bytes
(_input: (), bytes: Bytes)
bip_peer/src/message/standard.rs:20
Method
parse_bytes
(_input: (), bytes: Bytes)
bip_peer/src/message/bits_ext/mod.rs:41
Method
parse_bytes
(_input: (), bytes: Bytes)
bip_peer/src/message/bits_ext/port.rs:22
Method
parse_bytes
Parse an `ExtendedMessage` from some raw bencode of the given length.
bip_peer/src/message/bits_ext/handshake.rs:230
Method
parse_bytes
(bytes: Bytes, extended: &ExtendedMessage, custom_prot: &mut P)
bip_peer/src/message/prot_ext/mod.rs:32
Method
parse_bytes
(mut bytes: Bytes)
bip_peer/src/message/prot_ext/ut_metadata.rs:23
← previous
next →
901–1,000 of 1,430, ranked by callers