pub enum Proxy_Request {
Describe {
responder: Proxy_DescribeResponder,
},
OpenSession {
context: RunContext,
mode: SessionMode,
expectations: Expectations,
allowlist: Vec<AccessRule>,
session: ServerEnd<SessionMarker>,
responder: Proxy_OpenSessionResponder,
},
#[non_exhaustive] _UnknownMethod {
ordinal: u64,
control_handle: Proxy_ControlHandle,
method_type: MethodType,
},
}Variants§
Describe
Identity, resources, limits, and digests of this proxy instance.
Fields
§
responder: Proxy_DescribeResponderOpenSession
Opens a session with an exact allowlist. Stale expectations and rejected allowlists create no session and touch no hardware.
Fields
§
context: RunContext§
mode: SessionMode§
expectations: Expectations§
allowlist: Vec<AccessRule>§
session: ServerEnd<SessionMarker>§
responder: Proxy_OpenSessionResponder#[non_exhaustive]_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: Proxy_ControlHandle§
method_type: MethodTypeImplementations§
Source§impl Proxy_Request
impl Proxy_Request
pub fn into_describe(self) -> Option<Proxy_DescribeResponder>
pub fn into_open_session( self, ) -> Option<(RunContext, SessionMode, Expectations, Vec<AccessRule>, ServerEnd<SessionMarker>, Proxy_OpenSessionResponder)>
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 !RefUnwindSafe for Proxy_Request
impl !UnwindSafe for Proxy_Request
impl Freeze for Proxy_Request
impl Send for Proxy_Request
impl Sync for Proxy_Request
impl Unpin for Proxy_Request
impl UnsafeUnpin for Proxy_Request
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