pub struct Protocomm<T> { /* private fields */ }Implementations§
Source§impl Protocomm<TransportGatt>
impl Protocomm<TransportGatt>
pub fn new( gatt_config: ProtocommGattConfig, security: ProtocommSecurity, ) -> Self
pub fn set_version_info( &mut self, uuid: Uuid, ep_name: &str, version_info: String, )
pub fn set_security_endpoint(&mut self, uuid: Uuid, ep_name: &str)
pub fn register_endpoint( &mut self, uuid: Uuid, ep_name: &str, callback: ProtocommCallbackType, )
pub fn start(&mut self)
Source§impl Protocomm<TransportHttpd>
impl Protocomm<TransportHttpd>
pub fn new(config: ProtocommHttpdConfig, security: ProtocommSecurity) -> Self
pub fn set_version_info(&mut self, ep_name: &str, version_info: String)
pub fn set_security_endpoint(&mut self, ep_name: &str)
pub fn register_endpoint( &mut self, ep_name: &str, callback: ProtocommCallbackType, )
Auto Trait Implementations§
impl<T> Freeze for Protocomm<T>where
T: Freeze,
impl<T> RefUnwindSafe for Protocomm<T>where
T: RefUnwindSafe,
impl<T> Send for Protocomm<T>where
T: Send,
impl<T> Sync for Protocomm<T>where
T: Sync,
impl<T> Unpin for Protocomm<T>where
T: Unpin,
impl<T> UnwindSafe for Protocomm<T>where
T: UnwindSafe,
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