pub enum TopologyRequest {
AddElement {
payload: ElementSchema,
responder: TopologyAddElementResponder,
},
_UnknownMethod {
ordinal: u64,
control_handle: TopologyControlHandle,
method_type: MethodType,
},
}
Expand description
This is the primary initial protocol used by Power Element Owners to communicate with Power Broker. Power Element Owners should add the elements they own to the Power Topology through AddElement. All further interactions with Power Broker are done through channels opened by the AddElement call, which are scoped to the added element.
Variants§
AddElement
Called by a Power Element owner to register a new Power Element and open control channels for that element.
_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: TopologyControlHandle
§
method_type: MethodType
Implementations§
Source§impl TopologyRequest
impl TopologyRequest
pub fn into_add_element( self, ) -> Option<(ElementSchema, TopologyAddElementResponder)>
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 TopologyRequest
impl !RefUnwindSafe for TopologyRequest
impl Send for TopologyRequest
impl Sync for TopologyRequest
impl Unpin for TopologyRequest
impl !UnwindSafe for TopologyRequest
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