solana-udp-client 4.2.1
“Solana UDP Client”
Basename is uppercase README.mdGitHub Actions workflow definition path
SHA-2560c46127b2df6bbdaf2412134dff29228665611fd267beebee34e1d4e226f375d
MaleculeMd(In₄)
Evidence
1name: Rust
2
3on: [push]
4
5jobs:
6 build:
7
8 runs-on: ubuntu-latest
9
10 steps:
11 - uses: actions/checkout@v2
12 - name: Build
13 run: cargo build --verbose
14 - name: Run tests
15 run: cargo test --verbose
5pub mod udp_client;
6
7use {
8 crate::{
9 nonblocking::udp_client::UdpClientConnection as NonblockingUdpConnection,
10 udp_client::UdpClientConnection as BlockingUdpConnection,
11 },
12 solana_connection_cache::{
13 connection_cache::{
14 BaseClientConnection, ClientError, ConnectionManager, ConnectionPool,
15 ConnectionPoolError, NewConnectionConfig, Protocol,
16 },
17 connection_cache_stats::ConnectionCacheStats,
18 },
19 solana_keypair::Keypair,
20 solana_net_utils::sockets::{self, SocketConfiguration},
21 std::{
22 net::{SocketAddr, UdpSocket},
23 sync::Arc,
24 },
25};
26
27pub struct UdpPool {
28 connections: Vec<Arc<Udp>>,
29}
30impl ConnectionPool for UdpPool {
31 type BaseClientConnection = Udp;
32 type NewConnectionConfig = UdpConfig;
33
34 f …
22:12… in() {
23//! let data = [0,1,2,3,4,0,6,7,8,9];
24//! assert_eq!(256, read_u16(array_ref![data,0,2]));
25//! assert_eq!(4, read_u16(array_ref![data,4,2]));
26//! # }
27//! ```
28#![deny(warnings)]
29#![no_std]
30
31#[cfg(test)]
32#[macro_use]
33extern crate std;
34
35/// You can use `array_ref` to generate an array reference to a subset
36/// of a sliceable bit o …
113:72… )* $( .saturating_add($post) )*;
114 assert!(MIN_LEN < usize::MAX, "Your arrays are too big, are you trying to hack yourself?!");
115 …
⋯6 lines
308 // use super::*;
309
310 #[test]
311 #[should_panic]
312 fn checks_bounds() {
313 let foo: [u8; 11] = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10];
314 let bar = …
No evidence locations were recorded for this file. Raw result