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
records
is the set of device information records that identify the device. - request
token
is used to manage the lifetime of the advertised device information. Therecords
will remain advertised as long as the channel is open. The device identification advertisement will be removed whentoken
is closed with any epitaph.
- response An empty response will be sent when the
token
has been closed and the server has processed the closure.
- error Returns
ZX_ERR_INVALID_ARGS
if any of the providedrecords
are invalidly formatted. - error Returns
ZX_ERR_NO_RESOURCES
if the server has reached the maximum number of device information advertisements. - error Returns
ZX_ERR_CANCELLED
if the request was cancelled by the server for all other errors.
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