pub enum ActorRequest {
GetActions {
responder: ActorGetActionsResponder,
},
Run {
action_name: String,
seed: u64,
responder: ActorRunResponder,
},
}
Expand description
This protocol is implemented by an actor and exposes ways to query and run actions. Actors expect exactly one connection to the Actor protocol from the test runner during the actor’s lifetime.
Variants§
GetActions
Enumerate the actions available in this actor.
Fields
§
responder: ActorGetActionsResponder
Run
Runs a single action with a given seed. Returns when the action has completed. If the action failed, the corresponding error message is returned.
Implementations§
Source§impl ActorRequest
impl ActorRequest
pub fn into_get_actions(self) -> Option<ActorGetActionsResponder>
pub fn into_run(self) -> Option<(String, u64, ActorRunResponder)>
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 ActorRequest
impl !RefUnwindSafe for ActorRequest
impl Send for ActorRequest
impl Sync for ActorRequest
impl Unpin for ActorRequest
impl !UnwindSafe for ActorRequest
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