Trait objc2_core_bluetooth::CBPeripheralDelegate

source ·
pub unsafe trait CBPeripheralDelegate: NSObjectProtocol {
Show 15 methods // Provided methods unsafe fn peripheralDidUpdateName(&self, peripheral: &CBPeripheral) where Self: Sized + Message { ... } unsafe fn peripheral_didModifyServices( &self, peripheral: &CBPeripheral, invalidated_services: &NSArray<CBService> ) where Self: Sized + Message { ... } unsafe fn peripheralDidUpdateRSSI_error( &self, peripheral: &CBPeripheral, error: Option<&NSError> ) where Self: Sized + Message { ... } unsafe fn peripheral_didReadRSSI_error( &self, peripheral: &CBPeripheral, rssi: &NSNumber, error: Option<&NSError> ) where Self: Sized + Message { ... } unsafe fn peripheral_didDiscoverServices( &self, peripheral: &CBPeripheral, error: Option<&NSError> ) where Self: Sized + Message { ... } unsafe fn peripheral_didDiscoverIncludedServicesForService_error( &self, peripheral: &CBPeripheral, service: &CBService, error: Option<&NSError> ) where Self: Sized + Message { ... } unsafe fn peripheral_didDiscoverCharacteristicsForService_error( &self, peripheral: &CBPeripheral, service: &CBService, error: Option<&NSError> ) where Self: Sized + Message { ... } unsafe fn peripheral_didUpdateValueForCharacteristic_error( &self, peripheral: &CBPeripheral, characteristic: &CBCharacteristic, error: Option<&NSError> ) where Self: Sized + Message { ... } unsafe fn peripheral_didWriteValueForCharacteristic_error( &self, peripheral: &CBPeripheral, characteristic: &CBCharacteristic, error: Option<&NSError> ) where Self: Sized + Message { ... } unsafe fn peripheral_didUpdateNotificationStateForCharacteristic_error( &self, peripheral: &CBPeripheral, characteristic: &CBCharacteristic, error: Option<&NSError> ) where Self: Sized + Message { ... } unsafe fn peripheral_didDiscoverDescriptorsForCharacteristic_error( &self, peripheral: &CBPeripheral, characteristic: &CBCharacteristic, error: Option<&NSError> ) where Self: Sized + Message { ... } unsafe fn peripheral_didUpdateValueForDescriptor_error( &self, peripheral: &CBPeripheral, descriptor: &CBDescriptor, error: Option<&NSError> ) where Self: Sized + Message { ... } unsafe fn peripheral_didWriteValueForDescriptor_error( &self, peripheral: &CBPeripheral, descriptor: &CBDescriptor, error: Option<&NSError> ) where Self: Sized + Message { ... } unsafe fn peripheralIsReadyToSendWriteWithoutResponse( &self, peripheral: &CBPeripheral ) where Self: Sized + Message { ... } unsafe fn peripheral_didOpenL2CAPChannel_error( &self, peripheral: &CBPeripheral, channel: Option<&CBL2CAPChannel>, error: Option<&NSError> ) where Self: Sized + Message { ... }
}
Available on crate feature CBPeripheral only.

Provided Methods§

source

unsafe fn peripheralDidUpdateName(&self, peripheral: &CBPeripheral)
where Self: Sized + Message,

Available on crate feature CBPeer only.
source

unsafe fn peripheral_didModifyServices( &self, peripheral: &CBPeripheral, invalidated_services: &NSArray<CBService> )
where Self: Sized + Message,

Available on crate features CBAttribute and CBPeer and CBService only.
source

unsafe fn peripheralDidUpdateRSSI_error( &self, peripheral: &CBPeripheral, error: Option<&NSError> )
where Self: Sized + Message,

👎Deprecated
Available on crate feature CBPeer only.
source

unsafe fn peripheral_didReadRSSI_error( &self, peripheral: &CBPeripheral, rssi: &NSNumber, error: Option<&NSError> )
where Self: Sized + Message,

Available on crate feature CBPeer only.
source

unsafe fn peripheral_didDiscoverServices( &self, peripheral: &CBPeripheral, error: Option<&NSError> )
where Self: Sized + Message,

Available on crate feature CBPeer only.
source

unsafe fn peripheral_didDiscoverIncludedServicesForService_error( &self, peripheral: &CBPeripheral, service: &CBService, error: Option<&NSError> )
where Self: Sized + Message,

Available on crate features CBAttribute and CBPeer and CBService only.
source

unsafe fn peripheral_didDiscoverCharacteristicsForService_error( &self, peripheral: &CBPeripheral, service: &CBService, error: Option<&NSError> )
where Self: Sized + Message,

Available on crate features CBAttribute and CBPeer and CBService only.
source

unsafe fn peripheral_didUpdateValueForCharacteristic_error( &self, peripheral: &CBPeripheral, characteristic: &CBCharacteristic, error: Option<&NSError> )
where Self: Sized + Message,

Available on crate features CBAttribute and CBCharacteristic and CBPeer only.
source

unsafe fn peripheral_didWriteValueForCharacteristic_error( &self, peripheral: &CBPeripheral, characteristic: &CBCharacteristic, error: Option<&NSError> )
where Self: Sized + Message,

Available on crate features CBAttribute and CBCharacteristic and CBPeer only.
source

unsafe fn peripheral_didUpdateNotificationStateForCharacteristic_error( &self, peripheral: &CBPeripheral, characteristic: &CBCharacteristic, error: Option<&NSError> )
where Self: Sized + Message,

Available on crate features CBAttribute and CBCharacteristic and CBPeer only.
source

unsafe fn peripheral_didDiscoverDescriptorsForCharacteristic_error( &self, peripheral: &CBPeripheral, characteristic: &CBCharacteristic, error: Option<&NSError> )
where Self: Sized + Message,

Available on crate features CBAttribute and CBCharacteristic and CBPeer only.
source

unsafe fn peripheral_didUpdateValueForDescriptor_error( &self, peripheral: &CBPeripheral, descriptor: &CBDescriptor, error: Option<&NSError> )
where Self: Sized + Message,

Available on crate features CBAttribute and CBDescriptor and CBPeer only.
source

unsafe fn peripheral_didWriteValueForDescriptor_error( &self, peripheral: &CBPeripheral, descriptor: &CBDescriptor, error: Option<&NSError> )
where Self: Sized + Message,

Available on crate features CBAttribute and CBDescriptor and CBPeer only.
source

unsafe fn peripheralIsReadyToSendWriteWithoutResponse( &self, peripheral: &CBPeripheral )
where Self: Sized + Message,

Available on crate feature CBPeer only.
source

unsafe fn peripheral_didOpenL2CAPChannel_error( &self, peripheral: &CBPeripheral, channel: Option<&CBL2CAPChannel>, error: Option<&NSError> )
where Self: Sized + Message,

Available on crate features CBL2CAPChannel and CBPeer only.

Trait Implementations§

source§

impl ProtocolType for dyn CBPeripheralDelegate

source§

const NAME: &'static str = "CBPeripheralDelegate"

The name of the Objective-C protocol that this type represents.
source§

fn protocol() -> Option<&'static AnyProtocol>

Get a reference to the Objective-C protocol object that this type represents. Read more
source§

impl<T> ImplementedBy<T> for dyn CBPeripheralDelegate

Implementations on Foreign Types§

source§

impl<T> CBPeripheralDelegate for ProtocolObject<T>

Implementors§