pub enum DeviceIdentificationRequest {
SetDeviceIdentification {
records: Vec<DeviceIdentificationRecord>,
token: ServerEnd<DeviceIdentificationHandleMarker>,
responder: DeviceIdentificationSetDeviceIdentificationResponder,
},
}Expand description
An interface for setting the identification of a Fuchsia device.
Variants§
SetDeviceIdentification
Request to set the device information to be advertised over Bluetooth.
The device information can only be set once per provided token. To cancel the request,
close the token with any epitaph.
At most one record in records may be denoted as the primary record. If multiple records
have primary set, ZX_ERR_INVALID_ARGS will be returned.
If the server is already advertising a primary record, a subsequent request with primary
may be rejected with ZX_ERR_ALREADY_EXISTS.
- request
recordsis the set of device information records that identify the device. - request
tokenis used to manage the lifetime of the advertised device information. Therecordswill remain advertised as long as the channel is open. The device identification advertisement will be removed whentokenis closed with any epitaph.
- response An empty response will be sent when the
tokenhas been closed and the server has processed the closure.
- error Returns
ZX_ERR_INVALID_ARGSif any of the providedrecordsare invalidly formatted. - error Returns
ZX_ERR_NO_RESOURCESif the server has reached the maximum number of device information advertisements. - error Returns
ZX_ERR_CANCELLEDif the request was cancelled by the server for all other errors.
Fields
§
records: Vec<DeviceIdentificationRecord>Implementations§
Source§impl DeviceIdentificationRequest
impl DeviceIdentificationRequest
pub fn into_set_device_identification( self, ) -> Option<(Vec<DeviceIdentificationRecord>, ServerEnd<DeviceIdentificationHandleMarker>, DeviceIdentificationSetDeviceIdentificationResponder)>
Sourcepub fn method_name(&self) -> &'static str
pub fn method_name(&self) -> &'static str
Name of the method defined in FIDL
Trait Implementations§
Auto Trait Implementations§
impl Freeze for DeviceIdentificationRequest
impl !RefUnwindSafe for DeviceIdentificationRequest
impl Send for DeviceIdentificationRequest
impl Sync for DeviceIdentificationRequest
impl Unpin for DeviceIdentificationRequest
impl !UnwindSafe for DeviceIdentificationRequest
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