pub enum ControllerRequest {
CreateGuest {
name: String,
network: ClientEnd<NetworkMarker>,
mac: Option<Box<MacAddress>>,
responder: ControllerCreateGuestResponder,
},
}Expand description
Controller exposes methods for interacting with the guest manager.
Variants§
CreateGuest
Creates a new guest instance, attaches it to the provided network, optionally
with mac as its mac address, and starts serving the Guest protocol over
the returned client end.
- request
namea name to be associated with the guest, to be used in logs and assertions. - request
networkthe client end of a netemul network, to which the guest should be attached. - request
macan optional mac address which is provided to the guest on on creation. Ifmacis not provided, the guest’s mac address is picked by guest-manager. - response
guestthe client end of aGuestprotocol which can be used to interact with the guest.
Implementations§
Source§impl ControllerRequest
impl ControllerRequest
pub fn into_create_guest( self, ) -> Option<(String, ClientEnd<NetworkMarker>, Option<Box<MacAddress>>, ControllerCreateGuestResponder)>
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 ControllerRequest
impl !RefUnwindSafe for ControllerRequest
impl Send for ControllerRequest
impl Sync for ControllerRequest
impl Unpin for ControllerRequest
impl !UnwindSafe for ControllerRequest
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