fidl_fuchsia_hardware_display

Trait CoordinatorProxyInterface

Source
pub trait CoordinatorProxyInterface: Send + Sync {
    type ImportImageResponseFut: Future<Output = Result<CoordinatorImportImageResult, Error>> + Send;
    type CreateLayerResponseFut: Future<Output = Result<CoordinatorCreateLayerResult, Error>> + Send;
    type CheckConfigResponseFut: Future<Output = Result<(ConfigResult, Vec<ClientCompositionOp>), Error>> + Send;
    type GetLatestAppliedConfigStampResponseFut: Future<Output = Result<ConfigStamp, Error>> + Send;
    type ImportBufferCollectionResponseFut: Future<Output = Result<CoordinatorImportBufferCollectionResult, Error>> + Send;
    type SetBufferCollectionConstraintsResponseFut: Future<Output = Result<CoordinatorSetBufferCollectionConstraintsResult, Error>> + Send;
    type IsCaptureSupportedResponseFut: Future<Output = Result<CoordinatorIsCaptureSupportedResult, Error>> + Send;
    type StartCaptureResponseFut: Future<Output = Result<CoordinatorStartCaptureResult, Error>> + Send;
    type SetMinimumRgbResponseFut: Future<Output = Result<CoordinatorSetMinimumRgbResult, Error>> + Send;
    type SetDisplayPowerResponseFut: Future<Output = Result<CoordinatorSetDisplayPowerResult, Error>> + Send;

Show 28 methods // Required methods fn import_image( &self, image_metadata: &ImageMetadata, buffer_id: &BufferId, image_id: &ImageId, ) -> Self::ImportImageResponseFut; fn release_image(&self, image_id: &ImageId) -> Result<(), Error>; fn import_event(&self, event: Event, id: &EventId) -> Result<(), Error>; fn release_event(&self, id: &EventId) -> Result<(), Error>; fn create_layer(&self) -> Self::CreateLayerResponseFut; fn destroy_layer(&self, layer_id: &LayerId) -> Result<(), Error>; fn set_display_mode( &self, display_id: &DisplayId, mode: &Mode, ) -> Result<(), Error>; fn set_display_color_conversion( &self, display_id: &DisplayId, preoffsets: &[f32; 3], coefficients: &[f32; 9], postoffsets: &[f32; 3], ) -> Result<(), Error>; fn set_display_layers( &self, display_id: &DisplayId, layer_ids: &[LayerId], ) -> Result<(), Error>; fn set_layer_primary_config( &self, layer_id: &LayerId, image_metadata: &ImageMetadata, ) -> Result<(), Error>; fn set_layer_primary_position( &self, layer_id: &LayerId, image_source_transformation: CoordinateTransformation, image_source: &RectU, display_destination: &RectU, ) -> Result<(), Error>; fn set_layer_primary_alpha( &self, layer_id: &LayerId, mode: AlphaMode, val: f32, ) -> Result<(), Error>; fn set_layer_color_config( &self, layer_id: &LayerId, color: &Color, ) -> Result<(), Error>; fn set_layer_image2( &self, layer_id: &LayerId, image_id: &ImageId, wait_event_id: &EventId, ) -> Result<(), Error>; fn check_config(&self, discard: bool) -> Self::CheckConfigResponseFut; fn apply_config(&self) -> Result<(), Error>; fn get_latest_applied_config_stamp( &self, ) -> Self::GetLatestAppliedConfigStampResponseFut; fn apply_config3( &self, payload: CoordinatorApplyConfig3Request, ) -> Result<(), Error>; fn enable_vsync(&self, enable: bool) -> Result<(), Error>; fn acknowledge_vsync(&self, cookie: u64) -> Result<(), Error>; fn set_virtcon_mode(&self, mode: VirtconMode) -> Result<(), Error>; fn import_buffer_collection( &self, buffer_collection_id: &BufferCollectionId, buffer_collection_token: ClientEnd<BufferCollectionTokenMarker>, ) -> Self::ImportBufferCollectionResponseFut; fn release_buffer_collection( &self, buffer_collection_id: &BufferCollectionId, ) -> Result<(), Error>; fn set_buffer_collection_constraints( &self, buffer_collection_id: &BufferCollectionId, buffer_usage: &ImageBufferUsage, ) -> Self::SetBufferCollectionConstraintsResponseFut; fn is_capture_supported(&self) -> Self::IsCaptureSupportedResponseFut; fn start_capture( &self, signal_event_id: &EventId, image_id: &ImageId, ) -> Self::StartCaptureResponseFut; fn set_minimum_rgb(&self, minimum_rgb: u8) -> Self::SetMinimumRgbResponseFut; fn set_display_power( &self, display_id: &DisplayId, power_on: bool, ) -> Self::SetDisplayPowerResponseFut;
}

Required Associated Types§

Required Methods§

Source

fn import_image( &self, image_metadata: &ImageMetadata, buffer_id: &BufferId, image_id: &ImageId, ) -> Self::ImportImageResponseFut

Source

fn release_image(&self, image_id: &ImageId) -> Result<(), Error>

Source

fn import_event(&self, event: Event, id: &EventId) -> Result<(), Error>

Source

fn release_event(&self, id: &EventId) -> Result<(), Error>

Source

fn create_layer(&self) -> Self::CreateLayerResponseFut

Source

fn destroy_layer(&self, layer_id: &LayerId) -> Result<(), Error>

Source

fn set_display_mode( &self, display_id: &DisplayId, mode: &Mode, ) -> Result<(), Error>

Source

fn set_display_color_conversion( &self, display_id: &DisplayId, preoffsets: &[f32; 3], coefficients: &[f32; 9], postoffsets: &[f32; 3], ) -> Result<(), Error>

Source

fn set_display_layers( &self, display_id: &DisplayId, layer_ids: &[LayerId], ) -> Result<(), Error>

Source

fn set_layer_primary_config( &self, layer_id: &LayerId, image_metadata: &ImageMetadata, ) -> Result<(), Error>

Source

fn set_layer_primary_position( &self, layer_id: &LayerId, image_source_transformation: CoordinateTransformation, image_source: &RectU, display_destination: &RectU, ) -> Result<(), Error>

Source

fn set_layer_primary_alpha( &self, layer_id: &LayerId, mode: AlphaMode, val: f32, ) -> Result<(), Error>

Source

fn set_layer_color_config( &self, layer_id: &LayerId, color: &Color, ) -> Result<(), Error>

Source

fn set_layer_image2( &self, layer_id: &LayerId, image_id: &ImageId, wait_event_id: &EventId, ) -> Result<(), Error>

Source

fn check_config(&self, discard: bool) -> Self::CheckConfigResponseFut

Source

fn apply_config(&self) -> Result<(), Error>

Source

fn get_latest_applied_config_stamp( &self, ) -> Self::GetLatestAppliedConfigStampResponseFut

Source

fn apply_config3( &self, payload: CoordinatorApplyConfig3Request, ) -> Result<(), Error>

Source

fn enable_vsync(&self, enable: bool) -> Result<(), Error>

Source

fn acknowledge_vsync(&self, cookie: u64) -> Result<(), Error>

Source

fn set_virtcon_mode(&self, mode: VirtconMode) -> Result<(), Error>

Source

fn import_buffer_collection( &self, buffer_collection_id: &BufferCollectionId, buffer_collection_token: ClientEnd<BufferCollectionTokenMarker>, ) -> Self::ImportBufferCollectionResponseFut

Source

fn release_buffer_collection( &self, buffer_collection_id: &BufferCollectionId, ) -> Result<(), Error>

Source

fn set_buffer_collection_constraints( &self, buffer_collection_id: &BufferCollectionId, buffer_usage: &ImageBufferUsage, ) -> Self::SetBufferCollectionConstraintsResponseFut

Source

fn is_capture_supported(&self) -> Self::IsCaptureSupportedResponseFut

Source

fn start_capture( &self, signal_event_id: &EventId, image_id: &ImageId, ) -> Self::StartCaptureResponseFut

Source

fn set_minimum_rgb(&self, minimum_rgb: u8) -> Self::SetMinimumRgbResponseFut

Source

fn set_display_power( &self, display_id: &DisplayId, power_on: bool, ) -> Self::SetDisplayPowerResponseFut

Implementors§