pub enum FactoryRegisterRequest {
Register {
name: String,
driver: ClientEnd<FactoryDriverMarker>,
control_handle: FactoryRegisterControlHandle,
},
}
Expand description
Protocol for registering the factory instance of a LoWPAN driver with the LoWPAN service.
This protocol is implemented by the LoWPAN service and used by LoWPAN drivers.
Variants§
Register
Registers the given LoWPAN device factory API with the LoWPAN Service using the given interface name.
The provided FactoryDriver
will be used to connect requests made via
FactoryLookup.Lookup()
for FactoryDevice
.
Implementations§
Source§impl FactoryRegisterRequest
impl FactoryRegisterRequest
pub fn into_register( self, ) -> Option<(String, ClientEnd<FactoryDriverMarker>, FactoryRegisterControlHandle)>
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 FactoryRegisterRequest
impl !RefUnwindSafe for FactoryRegisterRequest
impl Send for FactoryRegisterRequest
impl Sync for FactoryRegisterRequest
impl Unpin for FactoryRegisterRequest
impl !UnwindSafe for FactoryRegisterRequest
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