fidl_fuchsia_power_topology_test

Trait TopologyControlProxyInterface

Source
pub trait TopologyControlProxyInterface: Send + Sync {
    type CreateResponseFut: Future<Output = Result<TopologyControlCreateResult, Error>> + Send;
    type AcquireLeaseResponseFut: Future<Output = Result<TopologyControlAcquireLeaseResult, Error>> + Send;
    type DropLeaseResponseFut: Future<Output = Result<TopologyControlDropLeaseResult, Error>> + Send;
    type OpenStatusChannelResponseFut: Future<Output = Result<TopologyControlOpenStatusChannelResult, Error>> + Send;

    // Required methods
    fn create(&self, elements: &[Element]) -> Self::CreateResponseFut;
    fn acquire_lease(
        &self,
        element_name: &str,
        level: u8,
    ) -> Self::AcquireLeaseResponseFut;
    fn drop_lease(&self, element_name: &str) -> Self::DropLeaseResponseFut;
    fn open_status_channel(
        &self,
        element_name: &str,
        status_channel: ServerEnd<StatusMarker>,
    ) -> Self::OpenStatusChannelResponseFut;
}

Required Associated Types§

Required Methods§

Source

fn create(&self, elements: &[Element]) -> Self::CreateResponseFut

Source

fn acquire_lease( &self, element_name: &str, level: u8, ) -> Self::AcquireLeaseResponseFut

Source

fn drop_lease(&self, element_name: &str) -> Self::DropLeaseResponseFut

Source

fn open_status_channel( &self, element_name: &str, status_channel: ServerEnd<StatusMarker>, ) -> Self::OpenStatusChannelResponseFut

Implementors§