MCPcopy Create free account

hub / github.com/AndrewGi/btle / functions

Functions487 in github.com/AndrewGi/btle

Methodread_buffer_size_v2
Returns max number of ACL packets and packet length PLUS Max number of Isochronous packets and packet length.
src/hci/adapters/le.rs:121
Methodread_event
( &'s mut self, )
src/hci/adapter.rs:70
Methodread_event
( &mut self, )
src/hci/stream.rs:172
Methodread_some_acl_bytes
( &mut self, buf: &mut [u8], timeout: Duration, )
src/hci/usb/adapter.rs:159
Methodreset
(&mut self)
src/hci/adapters/mod.rs:89
Functionsend_command
Send a HCI Command With `Box`ing overhead, it takes around `150-200us` to send the command and `400-500us` to receive the status. Some commands (like
src/hci/adapter.rs:80
Methodservice
(&self)
src/windows/ble/gatt/service.rs:38
Methodset
(&mut self, flag: CharacteristicProperty)
src/windows/ble/gatt/characteristic.rs:140
Methodset_filter
(self: Pin<&mut Self>, filter: &Filter)
src/hci/bluez_socket.rs:307
Methodset_filter_raw
(fd: RawFd, filter: &Filter)
src/hci/bluez_socket.rs:196
Methodset_scan_enable
(&mut self, is_enabled: bool)
src/windows/ble/advertisements/observer.rs:74
Methodset_scan_parameters
( &'a mut self, scan_parameters: scan::ScanParameters, )
src/windows/ble/advertisements/observer.rs:214
Methodset_scan_response_data
(&mut self, data: &[u8])
src/hci/adapters/le.rs:131
Methodset_static_value
(&self, value: &[u8])
src/windows/ble/gatt/characteristic.rs:82
Methodset_user_description
(&self, description: &str)
src/windows/ble/gatt/characteristic.rs:91
Methodsource
The lower-level source of this error, if any.
src/error.rs:8
Methodspace_left
(&self)
src/bytes.rs:325
Methodstart_advertising
(&self)
src/windows/ble/gatt/service.rs:32
Methodstatic_value
(&self)
src/windows/ble/gatt/characteristic.rs:74
Methodstatic_value
(&self)
src/windows/ble/gatt/descriptor.rs:22
Methodstop_advertising
(&self)
src/windows/ble/gatt/service.rs:35
Methodsuffix
(self)
src/le/att/attribute.rs:59
Methodtake_parameters
(self)
src/hci/event.rs:244
Functiontest_ad_type_try_into
()
src/le/advertisement.rs:260
Functiontest_format
()
src/uuid.rs:175
Methodto_bytes_be
(&self)
src/lib.rs:284
Methodto_bytes_endian
(&self, endian: Option<Endian>)
src/bytes.rs:80
Methodto_bytes_ne
(&self)
src/bytes.rs:58
Methodto_raw_packet
(&self)
src/hci/command.rs:23
Methodto_raw_packet
(&self)
src/hci/event.rs:247
Methodto_str
(&self)
src/le/advertisement_structures/local_name.rs:19
Methodtry_from
(value: u8)
src/uri.rs:206
Methodtry_from
(value: i8)
src/lib.rs:139
Methodtry_from
(value: &[u8])
src/uuid.rs:74
Methodtry_from
(value: u8)
src/le/advertisement.rs:67
Methodtry_from
(value: u8)
src/le/scan.rs:25
Methodtry_from
(value: u8)
src/le/report.rs:27
Methodtry_from
(value: Duration)
src/le/advertiser.rs:52
Methodtry_from
(value: u8)
src/le/connection/mod.rs:175
Methodtry_from
(value: u8)
src/le/advertisement_structures/flags.rs:29
Methodtry_from
(value: u8)
src/le/att/mod.rs:58
Methodtry_from
(value: u8)
src/le/att/error.rs:132
Methodtry_from
(value: u8)
src/hci/mod.rs:90
Methodtry_from
(value: u8)
src/hci/packet.rs:29
Methodtry_from
(value: &RawPacket<S>)
src/hci/packet.rs:119
Methodtry_from
(value: u8)
src/hci/event.rs:91
Methodtry_from
Returns `std::io::Error` if it can't bind the `UnixStream` to the tokio Event loop. Usually safe to `.unwrap()/.expect()` unless bad file descriptor.
src/hci/bluez_socket.rs:298
Methodtry_from
(ocf: OCF)
src/hci/le/mod.rs:56
Methodtry_from
(value: i8)
src/hci/le/advertise.rs:222
Methodtry_from
(value: &'a [u8])
src/hci/le/scan.rs:133
Methodtry_from
(value: u64)
src/hci/le/mask.rs:44
Methodunpack
(bytes: &[u8])
src/hci/stream.rs:45
Methodunpack
# Errors returns `HCIPackError::BadLength` if `buf.len() != OPCODE_LEN`. returns `HCIPackError::BadBytes` if `buf` doesn't contain a value opcode.
src/hci/mod.rs:395
Methodunpack_command_packet
(packet: &CommandPacket<S>)
src/hci/command.rs:99
Methodunpack_event_packet
(packet: &EventPacket<S>)
src/hci/event.rs:172
Methodunpack_from
(bytes: &[u8])
src/lib.rs:191
Methodunpack_from
(ad_type: AdType, buf: &[u8])
src/le/advertisement.rs:171
Methodunpack_from
(ad_type: AdType, buf: &[u8])
src/le/advertisement_structures/tx_power_level.rs:41
Methodunpack_from
(ad_type: AdType, buf: &[u8])
src/le/advertisement_structures/mod.rs:47
Methodunpack_from
(ad_type: AdType, buf: &[u8])
src/le/advertisement_structures/local_name.rs:39
Methodunpack_from
(ad_type: AdType, buf: &[u8])
src/le/advertisement_structures/manufacturer_data.rs:35
Methodunpack_from
(ad_type: AdType, buf: &[u8])
src/le/advertisement_structures/flags.rs:53
Methodunpack_from
(buf: &[u8])
src/le/att/pdus/error.rs:32
Methodunpack_from
(buf: &[u8])
src/le/att/pdus/exchange/request.rs:27
Methodunpack_from
(buf: &[u8])
src/le/att/pdus/exchange/response.rs:26
Methodunpack_from
(buf: &[u8])
src/hci/baseband.rs:50
Methodunpack_from
(buf: &[u8])
src/hci/event.rs:329
Methodunpack_from
(buf: &[u8])
src/hci/le/random.rs:26
Methodunpack_from
(buf: &[u8])
src/hci/le/advertise.rs:37
Methodunpack_from
(buf: &[u8])
src/hci/le/scan.rs:37
Methodunpack_from
(buf: &[u8])
src/hci/le/connection.rs:43
Methodunpack_from
(buf: &[u8])
src/hci/le/mask.rs:75
Methodunpack_return
(event: EventPacket<&[u8]>)
src/hci/command.rs:118
Methoduser_description
(&self)
src/windows/ble/gatt/characteristic.rs:88
Methoduuid
(&self)
src/windows/ble/gatt/service.rs:48
Methoduuid
(&self)
src/windows/ble/gatt/descriptor.rs:19
Methoduuid_bytes_from_str
(s: &str)
src/uuid.rs:58
Methodwith_address
Creates a new `AdvertisingParameters` from `self` with `self.address` set to the `address` parameters.
src/le/advertiser.rs:304
Methodwith_capacity
(capacity: usize)
src/windows/ble/advertisements/observer.rs:183
Methodwith_interval
Creates a new `AdvertisingParameters` from `self` with `self.interval_min` and `self.interval_max` set to the `interval_min` and `interval_max` parame
src/le/advertiser.rs:318
Methodwith_size
(size: usize)
src/bytes.rs:333
Methodwrite
(&mut self, buf: &[u8])
src/hci/remote.rs:5
Methodwrite_command
( &'s mut self, packet: CommandPacket<&'p [u8]>, )
src/hci/stream.rs:194
Methodwrite_command
( &'s mut self, packet: CommandPacket<&'p [u8]>, )
src/hci/usb/adapter.rs:236
Functionyield_now
Yield the task back to the executor. Just returns `Poll::Pending` once and calls `.waker_by_ref()` to put the task back onto the queue. Workaround for
src/hci/usb/adapter.rs:17
Methodzeroed
()
src/hci/baseband.rs:129
Methodzeroed
()
src/hci/le/mask.rs:17
← previous401–487 of 487, ranked by callers