pub struct BluetoothRfcommProfileSettings {
pub uuid: String,
pub name: Option<String>,
pub service_uuid: Option<String>,
pub channel: Option<u16>,
pub psm: Option<u16>,
pub authenticate: Option<bool>,
pub authorize: Option<bool>,
pub auto_connect: Option<bool>,
pub sdp_record: Option<String>,
pub sdp_version: Option<u16>,
pub sdp_features: Option<u16>,
}
Expand description
Settings for an rfcomm profile
Fields§
§uuid: String
The uuid for the profile
name: Option<String>
User readable name for the profile
service_uuid: Option<String>
The service uuid for the profile (can be the same as service)
channel: Option<u16>
The channel to use
psm: Option<u16>
PSM number used for UUIDS and SDP (if applicable)
authenticate: Option<bool>
Is authentication required for a connection
Is authorization required for a connection
auto_connect: Option<bool>
For client profiles, This will force connection of the channel when a remote device is connected
sdp_record: Option<String>
manual SDP record
sdp_version: Option<u16>
SDP version
sdp_features: Option<u16>
SDP profile features
Trait Implementations§
Source§impl Clone for BluetoothRfcommProfileSettings
impl Clone for BluetoothRfcommProfileSettings
Source§fn clone(&self) -> BluetoothRfcommProfileSettings
fn clone(&self) -> BluetoothRfcommProfileSettings
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for BluetoothRfcommProfileSettings
impl RefUnwindSafe for BluetoothRfcommProfileSettings
impl Send for BluetoothRfcommProfileSettings
impl Sync for BluetoothRfcommProfileSettings
impl Unpin for BluetoothRfcommProfileSettings
impl UnwindSafe for BluetoothRfcommProfileSettings
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more