[][src]Trait xrl::Frontend

pub trait Frontend {
    type NotificationResult: IntoStaticFuture<Item = (), Error = ()>;
    type MeasureWidthResult: IntoStaticFuture<Item = Vec<Vec<f32>>, Error = ()>;
    pub fn handle_notification(
        &mut self,
        notification: XiNotification
    ) -> Self::NotificationResult;
pub fn handle_measure_width(
        &mut self,
        request: MeasureWidth
    ) -> Self::MeasureWidthResult; }

The Frontend trait must be implemented by clients. It defines how the client handles notifications and requests coming from xi-core.

Associated Types

Loading content...

Required methods

pub fn handle_notification(
    &mut self,
    notification: XiNotification
) -> Self::NotificationResult
[src]

pub fn handle_measure_width(
    &mut self,
    request: MeasureWidth
) -> Self::MeasureWidthResult
[src]

Loading content...

Implementors

Loading content...