pub enum OpenTargetRequest {
StrictOneWay {
control_handle: OpenTargetControlHandle,
},
FlexibleOneWay {
control_handle: OpenTargetControlHandle,
},
StrictTwoWay {
responder: OpenTargetStrictTwoWayResponder,
},
StrictTwoWayFields {
reply_with: i32,
responder: OpenTargetStrictTwoWayFieldsResponder,
},
StrictTwoWayErr {
payload: OpenTargetStrictTwoWayErrRequest,
responder: OpenTargetStrictTwoWayErrResponder,
},
StrictTwoWayFieldsErr {
payload: OpenTargetStrictTwoWayFieldsErrRequest,
responder: OpenTargetStrictTwoWayFieldsErrResponder,
},
FlexibleTwoWay {
responder: OpenTargetFlexibleTwoWayResponder,
},
FlexibleTwoWayFields {
reply_with: i32,
responder: OpenTargetFlexibleTwoWayFieldsResponder,
},
FlexibleTwoWayErr {
payload: OpenTargetFlexibleTwoWayErrRequest,
responder: OpenTargetFlexibleTwoWayErrResponder,
},
FlexibleTwoWayFieldsErr {
payload: OpenTargetFlexibleTwoWayFieldsErrRequest,
responder: OpenTargetFlexibleTwoWayFieldsErrResponder,
},
_UnknownMethod {
ordinal: u64,
control_handle: OpenTargetControlHandle,
method_type: MethodType,
},
}
Variants§
StrictOneWay
Fields
§
control_handle: OpenTargetControlHandle
FlexibleOneWay
Fields
§
control_handle: OpenTargetControlHandle
StrictTwoWay
Fields
§
responder: OpenTargetStrictTwoWayResponder
StrictTwoWayFields
StrictTwoWayErr
StrictTwoWayFieldsErr
Fields
§
responder: OpenTargetStrictTwoWayFieldsErrResponder
FlexibleTwoWay
Fields
§
responder: OpenTargetFlexibleTwoWayResponder
FlexibleTwoWayFields
FlexibleTwoWayErr
FlexibleTwoWayFieldsErr
Fields
§
responder: OpenTargetFlexibleTwoWayFieldsErrResponder
_UnknownMethod
An interaction was received which does not match any known method.
Fields
This variant is marked as non-exhaustive
Non-exhaustive enum variants could have additional fields added in future. Therefore, non-exhaustive enum variants cannot be constructed in external crates and cannot be matched against.
§
control_handle: OpenTargetControlHandle
§
method_type: MethodType
Implementations§
Source§impl OpenTargetRequest
impl OpenTargetRequest
pub fn into_strict_one_way(self) -> Option<OpenTargetControlHandle>
pub fn into_flexible_one_way(self) -> Option<OpenTargetControlHandle>
pub fn into_strict_two_way(self) -> Option<OpenTargetStrictTwoWayResponder>
pub fn into_strict_two_way_fields( self, ) -> Option<(i32, OpenTargetStrictTwoWayFieldsResponder)>
pub fn into_strict_two_way_err( self, ) -> Option<(OpenTargetStrictTwoWayErrRequest, OpenTargetStrictTwoWayErrResponder)>
pub fn into_strict_two_way_fields_err( self, ) -> Option<(OpenTargetStrictTwoWayFieldsErrRequest, OpenTargetStrictTwoWayFieldsErrResponder)>
pub fn into_flexible_two_way(self) -> Option<OpenTargetFlexibleTwoWayResponder>
pub fn into_flexible_two_way_fields( self, ) -> Option<(i32, OpenTargetFlexibleTwoWayFieldsResponder)>
pub fn into_flexible_two_way_err( self, ) -> Option<(OpenTargetFlexibleTwoWayErrRequest, OpenTargetFlexibleTwoWayErrResponder)>
pub fn into_flexible_two_way_fields_err( self, ) -> Option<(OpenTargetFlexibleTwoWayFieldsErrRequest, OpenTargetFlexibleTwoWayFieldsErrResponder)>
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 OpenTargetRequest
impl !RefUnwindSafe for OpenTargetRequest
impl Send for OpenTargetRequest
impl Sync for OpenTargetRequest
impl Unpin for OpenTargetRequest
impl !UnwindSafe for OpenTargetRequest
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