pub enum SetterRequest {
SetResponses {
device: DeviceInfo,
product: ProductInfo,
board: BoardInfo,
responder: SetterSetResponsesResponder,
},
}
Expand description
This Setter protocol is used to set the return values for a hwinfo mock.
Variants§
SetResponses
Sets the responses from the mock.
When this method returns future calls to the mocked hwinfo service will return the given values until a subsequent request to SetResponses.
Implementations§
Source§impl SetterRequest
impl SetterRequest
pub fn into_set_responses( self, ) -> Option<(DeviceInfo, ProductInfo, BoardInfo, SetterSetResponsesResponder)>
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 SetterRequest
impl !RefUnwindSafe for SetterRequest
impl Send for SetterRequest
impl Sync for SetterRequest
impl Unpin for SetterRequest
impl !UnwindSafe for SetterRequest
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