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>;
}