pub struct GattConfig {
pub preferred_mtu: u16,
pub min_mtu: u16,
pub enable_server: bool,
pub enable_client: bool,
}Expand description
GATT configuration
Fields§
§preferred_mtu: u16Preferred MTU size (23-517 bytes)
min_mtu: u16Minimum acceptable MTU
enable_server: boolEnable GATT server (peripheral) mode
enable_client: boolEnable GATT client (central) mode
Trait Implementations§
Source§impl Clone for GattConfig
impl Clone for GattConfig
Source§fn clone(&self) -> GattConfig
fn clone(&self) -> GattConfig
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 Debug for GattConfig
impl Debug for GattConfig
Auto Trait Implementations§
impl Freeze for GattConfig
impl RefUnwindSafe for GattConfig
impl Send for GattConfig
impl Sync for GattConfig
impl Unpin for GattConfig
impl UnwindSafe for GattConfig
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