Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Wodann/io-bluetooth-rs
/ functions
Functions
128 in github.com/Wodann/io-bluetooth-rs
⨍
Functions
128
◇
Types & classes
16
↓ 30 callers
Function
cvt
(t: T)
src/sys/unix/mod.rs:22
↓ 13 callers
Method
as_inner
(&self)
src/sys/unix/bt.rs:311
↓ 9 callers
Function
last_error
Returns the last error from the Windows socket interface.
src/sys/windows/bt.rs:38
↓ 8 callers
Method
raw
(&self)
src/sys/unix/fd.rs:37
↓ 7 callers
Function
cvt
Checks if the signed integer is the Windows constant `SOCKET_ERROR` (-1) and if so, returns the last error from the Windows socket interface. This fun
src/sys/windows/bt.rs:60
↓ 4 callers
Function
getsockopt
(sock: &Socket, opt: c_int, val: c_int)
src/sys_common/bt.rs:47
↓ 4 callers
Method
into
(self)
src/sys/unix/bt.rs:367
↓ 4 callers
Function
max_len
()
src/sys/unix/fd.rs:16
↓ 4 callers
Function
setsockopt
(sock: &Socket, opt: c_int, val: c_int, payload: T)
src/sys_common/bt.rs:33
↓ 3 callers
Function
cvt_r
(mut f: F)
src/sys/unix/mod.rs:30
↓ 3 callers
Method
set_cloexec
(&self)
src/sys/unix/fd.rs:186
↓ 3 callers
Method
set_no_inherit
(&self)
src/sys/windows/bt.rs:317
↓ 3 callers
Function
sockname
(f: F)
src/sys_common/bt.rs:63
↓ 2 callers
Method
duplicate
(&self)
src/sys/unix/bt.rs:305
↓ 2 callers
Function
each_addr
(addrs: I, mut f: F)
src/bt/mod.rs:485
↓ 2 callers
Function
init
()
src/sys/windows/bt.rs:26
↓ 2 callers
Method
local_addr
(&self)
src/sys_common/bt.rs:118
↓ 2 callers
Method
recv
Receives a single Bluetooth message on the socket from the remote address to which it is connected. On success, returns the number of bytes read. The
src/bt/mod.rs:282
↓ 2 callers
Method
recv_from_with_flags
(&self, buf: &mut [u8], flags: c_int)
src/sys/unix/bt.rs:209
↓ 2 callers
Method
recv_from_with_flags
(&self, buf: &mut [u8], flags: c_int)
src/sys/windows/bt.rs:237
↓ 2 callers
Method
recv_with_flags
(&self, buf: &mut [u8], flags: c_int)
src/sys/unix/bt.rs:226
↓ 2 callers
Method
recv_with_flags
(&self, buf: &mut [u8], flags: c_int)
src/sys/windows/bt.rs:278
↓ 2 callers
Method
set_nonblocking
(&self, nonblocking: bool)
src/sys/unix/bt.rs:291
↓ 2 callers
Method
set_nonblocking
(&self, nonblocking: bool)
src/sys/windows/bt.rs:324
↓ 2 callers
Method
set_timeout
(&self, dur: Option<Duration>, kind: c_int)
src/sys/unix/bt.rs:238
↓ 2 callers
Method
timeout
(&self, kind: c_int)
src/sys/unix/bt.rs:270
↓ 1 callers
Function
discover_devices
()
src/sys/unix/bt.rs:328
↓ 1 callers
Function
dur2timeout
(dur: Duration)
src/sys/windows/mod.rs:30
↓ 1 callers
Method
into
(self)
src/sys/windows/bt.rs:455
↓ 1 callers
Method
into_raw
Extracts the actual file descriptor without closing it.
src/sys/unix/fd.rs:42
↓ 1 callers
Method
local_addr
Returns the local socket address of this listener.
src/bt/mod.rs:126
↓ 1 callers
Method
peer_addr
Returns the socket address of the remote peer this socket was connected to.
src/bt/mod.rs:335
↓ 1 callers
Method
read
(&self, buf: &mut [u8])
src/sys/unix/bt.rs:201
↓ 1 callers
Function
request_device_idx
(len: usize)
examples/01_socket.rs:45
↓ 1 callers
Method
send
Sends data on the socket to the remote address to which it is connected. The [`connect`] method will connect this socket to a remote address. This me
src/bt/mod.rs:302
↓ 1 callers
Method
take_error
(&self)
src/sys/unix/bt.rs:296
↓ 1 callers
Method
take_error
(&self)
src/sys/windows/bt.rs:340
Method
accept
Accept a new incoming connection from this listener. This function will block the calling thread until a new Bluetooth connection is established. Whe
src/bt/mod.rs:118
Method
accept
(&self)
src/sys/unix/bt.rs:77
Method
accept
(&self)
src/sys/windows/bt.rs:107
Method
accept
(&self)
src/sys_common/bt.rs:102
Method
as_inner
(&self)
src/bt/mod.rs:175
Method
as_inner
(&self)
src/sys/unix/fd.rs:293
Method
as_inner
(&self)
src/sys/windows/bt.rs:357
Method
bind
Creates a new `BtListener` which will be bound to the specified address. The returned listener is ready for accepting connections. Binding with a po
src/bt/mod.rs:104
Method
bind
(addr: &BtAddr, protocol: BtProtocol)
src/sys_common/bt.rs:83
Method
connect
Opens a Bluetooth connection to a remote host. If `addrs` yields multiple addresses, `connect` will be attempted with each of the addresses until the
src/bt/mod.rs:201
Method
connect
(addr: &BtAddr, protocol: BtProtocol)
src/sys_common/bt.rs:169
Method
connect_timeout
Opens a Bluetooth connection to a remote host with a timeout. Unlike `connect`, `connect_timeout` takes a single [`BtAddr`] since timeout must be app
src/bt/mod.rs:220
Method
connect_timeout
(&self, addr: &BtAddr, timeout: Duration)
src/sys/unix/bt.rs:109
Method
connect_timeout
(&self, addr: &BtAddr, timeout: Duration)
src/sys/windows/bt.rs:126
Method
connect_timeout
( addr: &BtAddr, protocol: BtProtocol, timeout: Duration, )
src/sys_common/bt.rs:180
Function
cvt
(i: I)
src/sys/windows/mod.rs:22
Method
cvt_pread64
( fd: c_int, buf: *mut c_void, count: usize, offset: i64,
src/sys/unix/fd.rs:69
Method
cvt_pwrite64
( fd: c_int, buf: *const c_void, count: usize, offset: i64,
src/sys/unix/fd.rs:129
Function
cvt_r
Just to provide the same interface as sys/unix/bt.rs
src/sys/windows/bt.rs:69
Function
discover_devices
()
src/sys/windows/bt.rs:376
Method
drop
(&mut self)
src/sys/unix/fd.rs:299
Method
drop
(&mut self)
src/sys/windows/bt.rs:351
Method
duplicate
(&self)
src/sys/unix/fd.rs:236
Method
duplicate
(&self)
src/sys/windows/bt.rs:207
Method
duplicate
(&self)
src/sys_common/bt.rs:138
Method
flush
(&mut self)
src/bt/mod.rs:462
Method
fmt
(&self, f: &mut fmt::Formatter)
src/bt/mod.rs:22
Method
fmt
(&self, f: &mut fmt::Formatter)
src/sys_common/bt.rs:147
Method
from_inner
(inner: bt_imp::BtListener)
src/bt/mod.rs:181
Method
from_inner
(fd: c_int)
src/sys/unix/bt.rs:317
Method
from_inner
(socket: c::SOCKET)
src/sys/windows/bt.rs:363
Method
get_cloexec
(&self)
src/sys/unix/fd.rs:174
Method
init_bt_addr
(storage: *mut c::SOCKADDR_STORAGE_LH, addr: &BtAddr)
src/sys/windows/bt.rs:130
Method
into_inner
(self)
src/bt/mod.rs:187
Method
into_inner
(self)
src/sys/unix/bt.rs:323
Method
into_inner
(self)
src/sys/windows/bt.rs:369
Method
into_socket
(self)
src/sys_common/bt.rs:134
Function
main
()
examples/01_socket.rs:8
Method
nap_sap
(nap: u16, sap: u32)
src/bt/mod.rs:14
Method
new
(protocol: BtProtocol)
src/sys/unix/bt.rs:41
Method
new
(fd: c_int)
src/sys/unix/fd.rs:33
Method
new
(protocol: BtProtocol)
src/sys/windows/bt.rs:78
Method
peek
Receives single Bluetooth on the socket from the remote address to which it is connected, without removing the message from input queue. On success, r
src/bt/mod.rs:251
Method
peek
(&self, buf: &mut [u8])
src/sys/unix/bt.rs:193
Method
peek
(&self, buf: &mut [u8])
src/sys/windows/bt.rs:270
Method
peek
(&self, buf: &mut [u8])
src/sys_common/bt.rs:193
Method
peek_from
Receives a single Bluetooth message on the socket, without removing it from the queue. On success, returns the number of bytes read and the origin. T
src/bt/mod.rs:267
Method
peek_from
(&self, buf: &mut [u8])
src/sys/unix/bt.rs:197
Method
peek_from
(&self, buf: &mut [u8])
src/sys/windows/bt.rs:229
Method
peek_from
(&self, buf: &mut [u8])
src/sys_common/bt.rs:197
Method
peer_addr
(&self)
src/sys_common/bt.rs:264
Method
protocol
Returns the socket protocol of this socket.
src/bt/mod.rs:131
Method
protocol
(&self)
src/sys_common/bt.rs:126
Function
protocol_guid
(protocol: BtProtocol)
src/sys/windows/bt.rs:447
Method
read
(&mut self, buf: &mut [u8])
src/bt/mod.rs:452
Method
read
(&self, buf: &mut [u8])
src/sys/unix/fd.rs:48
Method
read
(&self, buf: &mut [u8])
src/sys/windows/bt.rs:274
Method
read_at
(&self, buf: &mut [u8], offset: u64)
src/sys/unix/fd.rs:64
Method
read_timeout
Returns the read timeout of this socket. If the timeout is [`None`], then [`read`] calls will block indefinitely. [`None`]: https://doc.rust-lang.or
src/bt/mod.rs:359
Method
read_timeout
(&self)
src/sys_common/bt.rs:240
Method
read_to_end
(&self, buf: &mut Vec<u8>)
src/sys/unix/fd.rs:59
Method
recv
(&self, buf: &mut [u8])
src/sys_common/bt.rs:201
Method
recv_from
Receives a single Bluetooth message on the socket. On success, returns the number of bytes read and the origin. The function must be called with vali
src/bt/mod.rs:292
next →
1–100 of 128, ranked by callers