Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/WireGuard/wireguard-rs
/ functions
Functions
320 in github.com/WireGuard/wireguard-rs
⨍
Functions
320
◇
Types & classes
119
Method
description
(&self)
src/platform/dummy/tun/dummy.rs:71
Method
description
(&self)
src/platform/linux/tun.rs:80
Method
down
(&self)
src/configuration/config.rs:232
Method
down
Brings the router down. When the router is brought down it: - Prevents transmission of outbound messages.
src/wireguard/router/device.rs:150
Method
down
(&self)
src/wireguard/router/peer.rs:414
Method
drop
(&mut self)
src/wireguard/types.rs:13
Method
drop
(&mut self)
src/wireguard/router/device.rs:90
Method
drop
(&mut self)
src/wireguard/router/peer.rs:145
Method
drop
(&mut self)
src/wireguard/handshake/peer.rs:52
Method
drop
(&mut self)
src/wireguard/handshake/ratelimiter.rs:29
Method
drop
(&mut self)
src/platform/linux/udp.rs:15
Method
eq
(&self, other: &Self)
src/wireguard/types.rs:20
Method
eq
(&self, other: &Self)
src/wireguard/router/device.rs:68
Method
eq
(&self, other: &Self)
src/wireguard/router/peer.rs:89
Method
event
(&mut self)
src/platform/dummy/tun/dummy.rs:132
Method
flush_peer
flush peer updates to configuration
src/configuration/uapi/set.rs:64
Method
fmt
(&self, f: &mut fmt::Formatter<'_>)
src/util.rs:18
Method
fmt
(&self, f: &mut fmt::Formatter<'_>)
src/configuration/error.rs:25
Method
fmt
(&self, f: &mut fmt::Formatter<'_>)
src/wireguard/peer.rs:88
Method
fmt
(&self, f: &mut fmt::Formatter<'_>)
src/wireguard/types.rs:26
Method
fmt
(&self, f: &mut fmt::Formatter<'_>)
src/wireguard/wireguard.rs:70
Method
fmt
(&self, f: &mut fmt::Formatter<'_>)
src/wireguard/router/peer.rs:119
Method
fmt
(&self, f: &mut fmt::Formatter<'_>)
src/wireguard/router/types.rs:47
Method
fmt
(&self, f: &mut fmt::Formatter<'_>)
src/wireguard/handshake/messages.rs:199
Method
fmt
(&self, f: &mut fmt::Formatter<'_>)
src/wireguard/handshake/types.rs:20
Method
fmt
(&self, f: &mut fmt::Formatter<'_>)
src/platform/dummy/udp.rs:36
Method
fmt
(&self, f: &mut fmt::Formatter<'_>)
src/platform/dummy/tun/dummy.rs:49
Method
fmt
(&self, f: &mut fmt::Formatter<'_>)
src/platform/linux/tun.rs:59
Method
from_address
(_: SocketAddr)
src/platform/dummy/endpoint.rs:9
Method
from_address
(addr: SocketAddr)
src/platform/linux/udp.rs:133
Method
get_port
(&self)
src/platform/linux/udp.rs:465
Method
get_psk
Return the psk for the peer # Arguments `pk` - The public key of the peer # Returns A 32 byte array holding the PSK The call might fail if the pu
src/wireguard/handshake/device.rs:256
Method
get_set_tau
(&self, rng: &mut R, src: &[u8])
src/wireguard/handshake/macs.rs:214
Method
get_sk
Return the secret key of the device # Returns A secret key (x25519 scalar)
src/wireguard/handshake/device.rs:163
Function
handshake_no_load
()
src/wireguard/handshake/tests.rs:145
Function
handshake_under_load
()
src/wireguard/handshake/tests.rs:67
Function
hkdf
()
src/wireguard/handshake/noise.rs:157
Method
into_address
(&self)
src/platform/dummy/endpoint.rs:13
Method
is_ready
(&self)
src/wireguard/router/send.rs:115
Method
is_ready
(&self)
src/wireguard/router/receive.rs:130
Method
keep_key_fresh
(keypair: &Arc<KeyPair>, counter: u64)
src/wireguard/timers.rs:386
Method
key_confirmed
(peer: &Self::Opaque)
src/wireguard/timers.rs:446
Method
key_confirmed
(_t: &Self::Opaque)
src/wireguard/router/tests/bench.rs:64
Method
key_confirmed
(t: &Self::Opaque)
src/wireguard/router/tests/tests.rs:116
Function
main
()
src/main.rs:55
Function
message_initiate_identity
()
src/wireguard/handshake/messages.rs:331
Function
message_response_identity
()
src/wireguard/handshake/messages.rs:302
Method
need_key
(peer: &Self::Opaque)
src/wireguard/timers.rs:440
Method
need_key
(_t: &Self::Opaque)
src/wireguard/router/tests/bench.rs:63
Method
need_key
(t: &Self::Opaque)
src/wireguard/router/tests/tests.rs:112
Method
new
(wg: WireGuard<T, B>)
src/configuration/config.rs:47
Method
new
(config: &'a C)
src/configuration/uapi/set.rs:31
Method
new
()
src/wireguard/wireguard.rs:99
Method
new
( wg: WireGuard<T, B>, // WireGuard device pk: PublicKey, // public key of peer
src/wireguard/timers.rs:234
Method
new
Create a new ParallelQueue instance # Arguments - `queues`: number of readers - `capacity`: capacity of each internal queue
src/wireguard/queue.rs:15
Method
new
(num_workers: usize, tun: T)
src/wireguard/router/device.rs:106
Method
new
( buffer: Vec<u8>, counter: u64, keypair: Arc<KeyPair>, peer: Peer<E, C, T, B>
src/wireguard/router/send.rs:36
Method
new
(keypair: &Arc<KeyPair>)
src/wireguard/router/peer.rs:125
Method
new
( buffer: Vec<u8>, state: Arc<DecryptionState<E, C, T, B>>, endpoint: E, )
src/wireguard/router/receive.rs:35
Method
new
()
src/wireguard/router/route.rs:19
Method
new
()
src/wireguard/router/anti_replay.rs:38
Method
new
()
src/wireguard/router/queue.rs:30
Method
new
()
src/wireguard/router/tests/bench.rs:29
Method
new
()
src/wireguard/router/tests/tests.rs:27
Method
new
Initialize a new handshake state machine
src/wireguard/handshake/device.rs:97
Method
new
(pk: PublicKey, ss: [u8; 32], opaque: O)
src/wireguard/handshake/peer.rs:62
Method
new
(s: &str)
src/wireguard/handshake/types.rs:14
Method
new
Initalize a new mac field generator # Arguments - pk: The public key of the peer to which the generator is associated # Returns A freshly initated
src/wireguard/handshake/macs.rs:122
Method
new
()
src/wireguard/handshake/ratelimiter.rs:39
Method
new
()
src/platform/dummy/udp.rs:71
Method
new
()
src/platform/dummy/endpoint.rs:21
Method
new
(name: [u8; libc::IFNAMSIZ])
src/platform/linux/tun.rs:270
Method
new_peer
(value: &str)
src/configuration/uapi/set.rs:38
Function
new_validator_generator
()
src/wireguard/handshake/macs.rs:289
Method
now
(&self)
src/wireguard/router/tests/tests.rs:47
Method
pair
()
src/platform/dummy/udp.rs:134
Method
parallel_work
The parallel section of an incoming job: * * - Decryption. * - Crypto-key routing lookup. * * Note: We truncate the message b
src/wireguard/router/receive.rs:66
Function
precomputed_chain_key
()
src/wireguard/handshake/noise.rs:141
Function
precomputed_hash
()
src/wireguard/handshake/noise.rs:148
Method
process
Process a handshake message. # Arguments `msg` - Byte slice containing the message (untrusted input)
src/wireguard/handshake/device.rs:308
Method
queue
(&self)
src/wireguard/router/receive.rs:51
Method
read
(&self, buf: &mut [u8], offset: usize)
src/platform/dummy/tun/dummy.rs:89
Method
read
(&self, buf: &mut [u8])
src/platform/linux/udp.rs:311
Method
read
(&self, buf: &mut [u8], offset: usize)
src/platform/linux/tun.rs:88
Method
read4
(fd: RawFd, buf: &mut [u8])
src/platform/linux/udp.rs:254
Method
read6
(fd: RawFd, buf: &mut [u8])
src/platform/linux/udp.rs:200
Method
recv
(peer: &Self::Opaque, size: usize, sent: bool, keypair: &Arc<KeyPair>)
src/wireguard/timers.rs:404
Method
recv
(&self)
src/wireguard/router/tests/bench.rs:48
Method
remove_peer
(&self, pk: &PublicKey)
src/wireguard/wireguard.rs:181
Method
replace_allowed_ips
(&self, peer: &PublicKey)
src/configuration/config.rs:323
Method
replace_peers
(&self)
src/configuration/config.rs:295
Method
send
(peer: &Self::Opaque, size: usize, sent: bool, keypair: &Arc<KeyPair>, counter: u64)
src/wireguard/timers.rs:372
Method
send_raw
(&self, msg: &[u8], dst: &mut E)
src/wireguard/router/device.rs:137
Method
sequential_work
(self)
src/wireguard/router/send.rs:119
Method
sequential_work
(self)
src/wireguard/router/receive.rs:134
Method
set_fwmark
(&mut self, _value: Option<u32>)
src/platform/dummy/udp.rs:182
Method
set_fwmark
(&mut self, value: Option<u32>)
src/platform/linux/udp.rs:469
Method
set_mark
(fd: Option<RawFd>, value: u32)
src/platform/linux/udp.rs:470
Method
set_persistent_keepalive_interval
(&self, secs: u64)
src/wireguard/timers.rs:208
Function
shared_secret
(sk: &StaticSecret, pk: &PublicKey)
src/wireguard/handshake/noise.rs:221
← previous
next →
201–300 of 320, ranked by callers