pub enum Event {
Cursor(String),
Clipboard(String),
OpenUrl {
url: String,
new_tab: bool,
},
Role(Role),
ImeArea(Option<[f32; 4]>),
Closed(String),
Other(Value),
}Expand description
Something the session told this client.
Variants§
Cursor(String)
The pointer’s cursor over the session, as a CSS cursor name
(default, pointer, text, grab, ew-resize, …).
Clipboard(String)
Text the session copied: put it on the host’s clipboard.
OpenUrl
The session asked to open a link.
Role(Role)
This client’s role changed.
ImeArea(Option<[f32; 4]>)
Where a text cursor is (logical pixels), for placing an input method’s
window; None when no text field has focus.
Closed(String)
The connection ended.
Other(Value)
Any other message, as sent.
Trait Implementations§
impl StructuralPartialEq for Event
Auto Trait Implementations§
impl Forget for Event
impl Freeze for Eventwhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<Value>: Freeze,
*const LeafNode<String, Value> is !null: Freeze,
PhantomData<(Owned, LeafOrInternal)>: Freeze,
PhantomData<Box<(String, Value)>>: Freeze,
impl Move for Event
impl RefUnwindSafe for Event
impl Send for Event
impl Sync for Event
impl Unpin for Event
impl UnsafeUnpin for Eventwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<Value>: UnsafeUnpin,
*const LeafNode<String, Value> is !null: UnsafeUnpin,
PhantomData<(Owned, LeafOrInternal)>: UnsafeUnpin,
PhantomData<Box<(String, Value)>>: UnsafeUnpin,
impl UnwindSafe for Event
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more