pub enum TopologyControlRequest {
Create {
elements: Vec<Element>,
responder: TopologyControlCreateResponder,
},
AcquireLease {
element_name: String,
level: u8,
responder: TopologyControlAcquireLeaseResponder,
},
DropLease {
element_name: String,
responder: TopologyControlDropLeaseResponder,
},
OpenStatusChannel {
element_name: String,
status_channel: ServerEnd<StatusMarker>,
responder: TopologyControlOpenStatusChannelResponder,
},
_UnknownMethod {
ordinal: u64,
control_handle: TopologyControlControlHandle,
method_type: MethodType,
},
}
Expand description
The primary initial protocol used by a client tool to communiate with the topology-test-daemon. The client can create the whole topology, and then acquire or drop lease according to element names.
Variants§
Create
AcquireLease
DropLease
OpenStatusChannel
Register a new Status channel on which Power Broker will send read-only updates of the element’s current power level.
_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: TopologyControlControlHandle
§
method_type: MethodType
Implementations§
Source§impl TopologyControlRequest
impl TopologyControlRequest
pub fn into_create( self, ) -> Option<(Vec<Element>, TopologyControlCreateResponder)>
pub fn into_acquire_lease( self, ) -> Option<(String, u8, TopologyControlAcquireLeaseResponder)>
pub fn into_drop_lease( self, ) -> Option<(String, TopologyControlDropLeaseResponder)>
pub fn into_open_status_channel( self, ) -> Option<(String, ServerEnd<StatusMarker>, TopologyControlOpenStatusChannelResponder)>
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 TopologyControlRequest
impl !RefUnwindSafe for TopologyControlRequest
impl Send for TopologyControlRequest
impl Sync for TopologyControlRequest
impl Unpin for TopologyControlRequest
impl !UnwindSafe for TopologyControlRequest
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