pub trait PartitionAndDeviceProxyInterface: Send + Sync {
Show 34 associated items
type GetInfoResponseFut: Future<Output = Result<BlockGetInfoResult, Error>> + Send;
type GetStatsResponseFut: Future<Output = Result<BlockGetStatsResult, Error>> + Send;
type ReadBlocksResponseFut: Future<Output = Result<BlockReadBlocksResult, Error>> + Send;
type WriteBlocksResponseFut: Future<Output = Result<BlockWriteBlocksResult, Error>> + Send;
type GetTypeGuidResponseFut: Future<Output = Result<(i32, Option<Box<Guid>>), Error>> + Send;
type GetInstanceGuidResponseFut: Future<Output = Result<(i32, Option<Box<Guid>>), Error>> + Send;
type GetNameResponseFut: Future<Output = Result<(i32, Option<String>), Error>> + Send;
type BindResponseFut: Future<Output = Result<ControllerBindResult, Error>> + Send;
type RebindResponseFut: Future<Output = Result<ControllerRebindResult, Error>> + Send;
type UnbindChildrenResponseFut: Future<Output = Result<ControllerUnbindChildrenResult, Error>> + Send;
type ScheduleUnbindResponseFut: Future<Output = Result<ControllerScheduleUnbindResult, Error>> + Send;
type GetTopologicalPathResponseFut: Future<Output = Result<ControllerGetTopologicalPathResult, Error>> + Send;
type GetMinDriverLogSeverityResponseFut: Future<Output = Result<(i32, LogLevelFilter), Error>> + Send;
type SetMinDriverLogSeverityResponseFut: Future<Output = Result<i32, Error>> + Send;
type GetCurrentPerformanceStateResponseFut: Future<Output = Result<u32, Error>> + Send;
type SetPerformanceStateResponseFut: Future<Output = Result<(i32, u32), Error>> + Send;
// Required methods
fn get_info(&self) -> Self::GetInfoResponseFut;
fn get_stats(&self, clear: bool) -> Self::GetStatsResponseFut;
fn open_session(
&self,
session: ServerEnd<SessionMarker>
) -> Result<(), Error>;
fn read_blocks(
&self,
vmo: Vmo,
length: u64,
dev_offset: u64,
vmo_offset: u64
) -> Self::ReadBlocksResponseFut;
fn write_blocks(
&self,
vmo: Vmo,
length: u64,
dev_offset: u64,
vmo_offset: u64
) -> Self::WriteBlocksResponseFut;
fn get_type_guid(&self) -> Self::GetTypeGuidResponseFut;
fn get_instance_guid(&self) -> Self::GetInstanceGuidResponseFut;
fn get_name(&self) -> Self::GetNameResponseFut;
fn connect_to_device_fidl(&self, server: Channel) -> Result<(), Error>;
fn bind(&self, driver: &str) -> Self::BindResponseFut;
fn rebind(&self, driver: &str) -> Self::RebindResponseFut;
fn unbind_children(&self) -> Self::UnbindChildrenResponseFut;
fn schedule_unbind(&self) -> Self::ScheduleUnbindResponseFut;
fn get_topological_path(&self) -> Self::GetTopologicalPathResponseFut;
fn get_min_driver_log_severity(
&self
) -> Self::GetMinDriverLogSeverityResponseFut;
fn set_min_driver_log_severity(
&self,
severity: LogLevelFilter
) -> Self::SetMinDriverLogSeverityResponseFut;
fn get_current_performance_state(
&self
) -> Self::GetCurrentPerformanceStateResponseFut;
fn set_performance_state(
&self,
requested_state: u32
) -> Self::SetPerformanceStateResponseFut;
}