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§
unsafe fn peripheralDidUpdateName(&self, peripheral: &CBPeripheral)
Available on crate feature
CBPeer only.unsafe fn peripheral_didModifyServices( &self, peripheral: &CBPeripheral, invalidated_services: &NSArray<CBService> )
Available on crate features
CBAttribute and CBPeer and CBService only.unsafe fn peripheralDidUpdateRSSI_error( &self, peripheral: &CBPeripheral, error: Option<&NSError> )
👎Deprecated
Available on crate feature
CBPeer only.unsafe fn peripheral_didReadRSSI_error( &self, peripheral: &CBPeripheral, rssi: &NSNumber, error: Option<&NSError> )
Available on crate feature
CBPeer only.unsafe fn peripheral_didDiscoverServices( &self, peripheral: &CBPeripheral, error: Option<&NSError> )
Available on crate feature
CBPeer only.unsafe fn peripheral_didDiscoverIncludedServicesForService_error( &self, peripheral: &CBPeripheral, service: &CBService, error: Option<&NSError> )
Available on crate features
CBAttribute and CBPeer and CBService only.unsafe fn peripheral_didDiscoverCharacteristicsForService_error( &self, peripheral: &CBPeripheral, service: &CBService, error: Option<&NSError> )
Available on crate features
CBAttribute and CBPeer and CBService only.unsafe fn peripheral_didUpdateValueForCharacteristic_error( &self, peripheral: &CBPeripheral, characteristic: &CBCharacteristic, error: Option<&NSError> )
Available on crate features
CBAttribute and CBCharacteristic and CBPeer only.unsafe fn peripheral_didWriteValueForCharacteristic_error( &self, peripheral: &CBPeripheral, characteristic: &CBCharacteristic, error: Option<&NSError> )
Available on crate features
CBAttribute and CBCharacteristic and CBPeer only.unsafe fn peripheral_didUpdateNotificationStateForCharacteristic_error( &self, peripheral: &CBPeripheral, characteristic: &CBCharacteristic, error: Option<&NSError> )
Available on crate features
CBAttribute and CBCharacteristic and CBPeer only.unsafe fn peripheral_didDiscoverDescriptorsForCharacteristic_error( &self, peripheral: &CBPeripheral, characteristic: &CBCharacteristic, error: Option<&NSError> )
Available on crate features
CBAttribute and CBCharacteristic and CBPeer only.unsafe fn peripheral_didUpdateValueForDescriptor_error( &self, peripheral: &CBPeripheral, descriptor: &CBDescriptor, error: Option<&NSError> )
Available on crate features
CBAttribute and CBDescriptor and CBPeer only.unsafe fn peripheral_didWriteValueForDescriptor_error( &self, peripheral: &CBPeripheral, descriptor: &CBDescriptor, error: Option<&NSError> )
Available on crate features
CBAttribute and CBDescriptor and CBPeer only.unsafe fn peripheralIsReadyToSendWriteWithoutResponse( &self, peripheral: &CBPeripheral )
Available on crate feature
CBPeer only.unsafe fn peripheral_didOpenL2CAPChannel_error( &self, peripheral: &CBPeripheral, channel: Option<&CBL2CAPChannel>, error: Option<&NSError> )
Available on crate features
CBL2CAPChannel and CBPeer only.