Server

Trait Server 

Source
pub trait Server {
    type XEvent;

    // Required methods
    fn error(
        &mut self,
        client_win: u32,
        code: ErrorCode,
        detail: String,
        input_method_id: Option<NonZeroU16>,
        user_ic_id: Option<NonZeroU16>,
    ) -> Result<(), ServerError>;
    fn preedit_draw(
        &mut self,
        ic: &mut InputContext,
        s: &str,
    ) -> Result<(), ServerError>;
    fn commit(&mut self, ic: &InputContext, s: &str) -> Result<(), ServerError>;
    fn set_event_mask(
        &mut self,
        ic: &InputContext,
        forward_event_mask: u32,
        synchronous_event_mask: u32,
    ) -> Result<(), ServerError>;
}

Required Associated Types§

Required Methods§

Source

fn error( &mut self, client_win: u32, code: ErrorCode, detail: String, input_method_id: Option<NonZeroU16>, user_ic_id: Option<NonZeroU16>, ) -> Result<(), ServerError>

Source

fn preedit_draw( &mut self, ic: &mut InputContext, s: &str, ) -> Result<(), ServerError>

Source

fn commit(&mut self, ic: &InputContext, s: &str) -> Result<(), ServerError>

Source

fn set_event_mask( &mut self, ic: &InputContext, forward_event_mask: u32, synchronous_event_mask: u32, ) -> Result<(), ServerError>

Implementors§