MCPcopy Create free account

hub / github.com/Wodann/io-bluetooth-rs / functions

Functions128 in github.com/Wodann/io-bluetooth-rs

↓ 30 callersFunctioncvt
(t: T)
src/sys/unix/mod.rs:22
↓ 13 callersMethodas_inner
(&self)
src/sys/unix/bt.rs:311
↓ 9 callersFunctionlast_error
Returns the last error from the Windows socket interface.
src/sys/windows/bt.rs:38
↓ 8 callersMethodraw
(&self)
src/sys/unix/fd.rs:37
↓ 7 callersFunctioncvt
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 callersFunctiongetsockopt
(sock: &Socket, opt: c_int, val: c_int)
src/sys_common/bt.rs:47
↓ 4 callersMethodinto
(self)
src/sys/unix/bt.rs:367
↓ 4 callersFunctionmax_len
()
src/sys/unix/fd.rs:16
↓ 4 callersFunctionsetsockopt
(sock: &Socket, opt: c_int, val: c_int, payload: T)
src/sys_common/bt.rs:33
↓ 3 callersFunctioncvt_r
(mut f: F)
src/sys/unix/mod.rs:30
↓ 3 callersMethodset_cloexec
(&self)
src/sys/unix/fd.rs:186
↓ 3 callersMethodset_no_inherit
(&self)
src/sys/windows/bt.rs:317
↓ 3 callersFunctionsockname
(f: F)
src/sys_common/bt.rs:63
↓ 2 callersMethodduplicate
(&self)
src/sys/unix/bt.rs:305
↓ 2 callersFunctioneach_addr
(addrs: I, mut f: F)
src/bt/mod.rs:485
↓ 2 callersFunctioninit
()
src/sys/windows/bt.rs:26
↓ 2 callersMethodlocal_addr
(&self)
src/sys_common/bt.rs:118
↓ 2 callersMethodrecv
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 callersMethodrecv_from_with_flags
(&self, buf: &mut [u8], flags: c_int)
src/sys/unix/bt.rs:209
↓ 2 callersMethodrecv_from_with_flags
(&self, buf: &mut [u8], flags: c_int)
src/sys/windows/bt.rs:237
↓ 2 callersMethodrecv_with_flags
(&self, buf: &mut [u8], flags: c_int)
src/sys/unix/bt.rs:226
↓ 2 callersMethodrecv_with_flags
(&self, buf: &mut [u8], flags: c_int)
src/sys/windows/bt.rs:278
↓ 2 callersMethodset_nonblocking
(&self, nonblocking: bool)
src/sys/unix/bt.rs:291
↓ 2 callersMethodset_nonblocking
(&self, nonblocking: bool)
src/sys/windows/bt.rs:324
↓ 2 callersMethodset_timeout
(&self, dur: Option<Duration>, kind: c_int)
src/sys/unix/bt.rs:238
↓ 2 callersMethodtimeout
(&self, kind: c_int)
src/sys/unix/bt.rs:270
↓ 1 callersFunctiondiscover_devices
()
src/sys/unix/bt.rs:328
↓ 1 callersFunctiondur2timeout
(dur: Duration)
src/sys/windows/mod.rs:30
↓ 1 callersMethodinto
(self)
src/sys/windows/bt.rs:455
↓ 1 callersMethodinto_raw
Extracts the actual file descriptor without closing it.
src/sys/unix/fd.rs:42
↓ 1 callersMethodlocal_addr
Returns the local socket address of this listener.
src/bt/mod.rs:126
↓ 1 callersMethodpeer_addr
Returns the socket address of the remote peer this socket was connected to.
src/bt/mod.rs:335
↓ 1 callersMethodread
(&self, buf: &mut [u8])
src/sys/unix/bt.rs:201
↓ 1 callersFunctionrequest_device_idx
(len: usize)
examples/01_socket.rs:45
↓ 1 callersMethodsend
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 callersMethodtake_error
(&self)
src/sys/unix/bt.rs:296
↓ 1 callersMethodtake_error
(&self)
src/sys/windows/bt.rs:340
Methodaccept
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
Methodaccept
(&self)
src/sys/unix/bt.rs:77
Methodaccept
(&self)
src/sys/windows/bt.rs:107
Methodaccept
(&self)
src/sys_common/bt.rs:102
Methodas_inner
(&self)
src/bt/mod.rs:175
Methodas_inner
(&self)
src/sys/unix/fd.rs:293
Methodas_inner
(&self)
src/sys/windows/bt.rs:357
Methodbind
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
Methodbind
(addr: &BtAddr, protocol: BtProtocol)
src/sys_common/bt.rs:83
Methodconnect
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
Methodconnect
(addr: &BtAddr, protocol: BtProtocol)
src/sys_common/bt.rs:169
Methodconnect_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
Methodconnect_timeout
(&self, addr: &BtAddr, timeout: Duration)
src/sys/unix/bt.rs:109
Methodconnect_timeout
(&self, addr: &BtAddr, timeout: Duration)
src/sys/windows/bt.rs:126
Methodconnect_timeout
( addr: &BtAddr, protocol: BtProtocol, timeout: Duration, )
src/sys_common/bt.rs:180
Functioncvt
(i: I)
src/sys/windows/mod.rs:22
Methodcvt_pread64
( fd: c_int, buf: *mut c_void, count: usize, offset: i64,
src/sys/unix/fd.rs:69
Methodcvt_pwrite64
( fd: c_int, buf: *const c_void, count: usize, offset: i64,
src/sys/unix/fd.rs:129
Functioncvt_r
Just to provide the same interface as sys/unix/bt.rs
src/sys/windows/bt.rs:69
Functiondiscover_devices
()
src/sys/windows/bt.rs:376
Methoddrop
(&mut self)
src/sys/unix/fd.rs:299
Methoddrop
(&mut self)
src/sys/windows/bt.rs:351
Methodduplicate
(&self)
src/sys/unix/fd.rs:236
Methodduplicate
(&self)
src/sys/windows/bt.rs:207
Methodduplicate
(&self)
src/sys_common/bt.rs:138
Methodflush
(&mut self)
src/bt/mod.rs:462
Methodfmt
(&self, f: &mut fmt::Formatter)
src/bt/mod.rs:22
Methodfmt
(&self, f: &mut fmt::Formatter)
src/sys_common/bt.rs:147
Methodfrom_inner
(inner: bt_imp::BtListener)
src/bt/mod.rs:181
Methodfrom_inner
(fd: c_int)
src/sys/unix/bt.rs:317
Methodfrom_inner
(socket: c::SOCKET)
src/sys/windows/bt.rs:363
Methodget_cloexec
(&self)
src/sys/unix/fd.rs:174
Methodinit_bt_addr
(storage: *mut c::SOCKADDR_STORAGE_LH, addr: &BtAddr)
src/sys/windows/bt.rs:130
Methodinto_inner
(self)
src/bt/mod.rs:187
Methodinto_inner
(self)
src/sys/unix/bt.rs:323
Methodinto_inner
(self)
src/sys/windows/bt.rs:369
Methodinto_socket
(self)
src/sys_common/bt.rs:134
Functionmain
()
examples/01_socket.rs:8
Methodnap_sap
(nap: u16, sap: u32)
src/bt/mod.rs:14
Methodnew
(protocol: BtProtocol)
src/sys/unix/bt.rs:41
Methodnew
(fd: c_int)
src/sys/unix/fd.rs:33
Methodnew
(protocol: BtProtocol)
src/sys/windows/bt.rs:78
Methodpeek
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
Methodpeek
(&self, buf: &mut [u8])
src/sys/unix/bt.rs:193
Methodpeek
(&self, buf: &mut [u8])
src/sys/windows/bt.rs:270
Methodpeek
(&self, buf: &mut [u8])
src/sys_common/bt.rs:193
Methodpeek_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
Methodpeek_from
(&self, buf: &mut [u8])
src/sys/unix/bt.rs:197
Methodpeek_from
(&self, buf: &mut [u8])
src/sys/windows/bt.rs:229
Methodpeek_from
(&self, buf: &mut [u8])
src/sys_common/bt.rs:197
Methodpeer_addr
(&self)
src/sys_common/bt.rs:264
Methodprotocol
Returns the socket protocol of this socket.
src/bt/mod.rs:131
Methodprotocol
(&self)
src/sys_common/bt.rs:126
Functionprotocol_guid
(protocol: BtProtocol)
src/sys/windows/bt.rs:447
Methodread
(&mut self, buf: &mut [u8])
src/bt/mod.rs:452
Methodread
(&self, buf: &mut [u8])
src/sys/unix/fd.rs:48
Methodread
(&self, buf: &mut [u8])
src/sys/windows/bt.rs:274
Methodread_at
(&self, buf: &mut [u8], offset: u64)
src/sys/unix/fd.rs:64
Methodread_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
Methodread_timeout
(&self)
src/sys_common/bt.rs:240
Methodread_to_end
(&self, buf: &mut Vec<u8>)
src/sys/unix/fd.rs:59
Methodrecv
(&self, buf: &mut [u8])
src/sys_common/bt.rs:201
Methodrecv_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