pub struct BluetoothL2capProfileSettings {
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: StringThe 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 BluetoothL2capProfileSettings
impl Clone for BluetoothL2capProfileSettings
Source§fn clone(&self) -> BluetoothL2capProfileSettings
fn clone(&self) -> BluetoothL2capProfileSettings
Returns a duplicate 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 moreSource§impl TryFrom<BluetoothL2capProfileSettings> for Profile
L2CAP profiles are registered through the same BlueZ D-Bus
ProfileManager1 mechanism as RFCOMM profiles, but with the psm field
set instead of channel.
impl TryFrom<BluetoothL2capProfileSettings> for Profile
L2CAP profiles are registered through the same BlueZ D-Bus
ProfileManager1 mechanism as RFCOMM profiles, but with the psm field
set instead of channel.
Auto Trait Implementations§
impl Freeze for BluetoothL2capProfileSettings
impl RefUnwindSafe for BluetoothL2capProfileSettings
impl Send for BluetoothL2capProfileSettings
impl Sync for BluetoothL2capProfileSettings
impl Unpin for BluetoothL2capProfileSettings
impl UnsafeUnpin for BluetoothL2capProfileSettings
impl UnwindSafe for BluetoothL2capProfileSettings
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