fidl_fuchsia_sysmem

Trait BufferCollectionTokenProxyInterface

Source
pub trait BufferCollectionTokenProxyInterface: Send + Sync {
    type SyncResponseFut: Future<Output = Result<(), Error>> + Send;
    type GetNodeRefResponseFut: Future<Output = Result<Event, Error>> + Send;
    type IsAlternateForResponseFut: Future<Output = Result<NodeIsAlternateForResult, Error>> + Send;
    type DuplicateSyncResponseFut: Future<Output = Result<Vec<ClientEnd<BufferCollectionTokenMarker>>, Error>> + Send;

    // Required methods
    fn sync(&self) -> Self::SyncResponseFut;
    fn close(&self) -> Result<(), Error>;
    fn set_name(&self, priority: u32, name: &str) -> Result<(), Error>;
    fn set_debug_client_info(&self, name: &str, id: u64) -> Result<(), Error>;
    fn set_debug_timeout_log_deadline(&self, deadline: i64) -> Result<(), Error>;
    fn set_verbose_logging(&self) -> Result<(), Error>;
    fn get_node_ref(&self) -> Self::GetNodeRefResponseFut;
    fn is_alternate_for(
        &self,
        node_ref: Event,
    ) -> Self::IsAlternateForResponseFut;
    fn duplicate_sync(
        &self,
        rights_attenuation_masks: &[Rights],
    ) -> Self::DuplicateSyncResponseFut;
    fn duplicate(
        &self,
        rights_attenuation_mask: u32,
        token_request: ServerEnd<BufferCollectionTokenMarker>,
    ) -> Result<(), Error>;
    fn set_dispensable(&self) -> Result<(), Error>;
    fn create_buffer_collection_token_group(
        &self,
        group_request: ServerEnd<BufferCollectionTokenGroupMarker>,
    ) -> Result<(), Error>;
}

Required Associated Types§

Required Methods§

Source

fn sync(&self) -> Self::SyncResponseFut

Source

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

Source

fn set_name(&self, priority: u32, name: &str) -> Result<(), Error>

Source

fn set_debug_client_info(&self, name: &str, id: u64) -> Result<(), Error>

Source

fn set_debug_timeout_log_deadline(&self, deadline: i64) -> Result<(), Error>

Source

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

Source

fn get_node_ref(&self) -> Self::GetNodeRefResponseFut

Source

fn is_alternate_for(&self, node_ref: Event) -> Self::IsAlternateForResponseFut

Source

fn duplicate_sync( &self, rights_attenuation_masks: &[Rights], ) -> Self::DuplicateSyncResponseFut

Source

fn duplicate( &self, rights_attenuation_mask: u32, token_request: ServerEnd<BufferCollectionTokenMarker>, ) -> Result<(), Error>

Source

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

Source

fn create_buffer_collection_token_group( &self, group_request: ServerEnd<BufferCollectionTokenGroupMarker>, ) -> Result<(), Error>

Implementors§