pub enum EmbedEvent {
Ready {
surface: String,
socket: String,
tty: String,
},
Joined {
surface: String,
},
Title {
surface: String,
text: String,
},
Clipboard {
surface: String,
text: String,
},
Closed {
surface: String,
},
}Expand description
One event about an embedded program.
Variants§
Ready
Start the program with PIXEL_EMBED set to socket and
PIXEL_TTY to tty.
Joined
Title
Clipboard
Closed
Implementations§
Source§impl EmbedEvent
impl EmbedEvent
Sourcepub fn from_event(event: &Event) -> Option<Self>
pub fn from_event(event: &Event) -> Option<Self>
The embed event an event carries, if it is one.
Trait Implementations§
Source§impl Clone for EmbedEvent
impl Clone for EmbedEvent
Source§impl Debug for EmbedEvent
impl Debug for EmbedEvent
impl Eq for EmbedEvent
Source§impl PartialEq for EmbedEvent
impl PartialEq for EmbedEvent
impl StructuralPartialEq for EmbedEvent
Auto Trait Implementations§
impl Forget for EmbedEvent
impl Freeze for EmbedEvent
impl Move for EmbedEvent
impl RefUnwindSafe for EmbedEvent
impl Send for EmbedEvent
impl Sync for EmbedEvent
impl Unpin for EmbedEvent
impl UnsafeUnpin for EmbedEvent
impl UnwindSafe for EmbedEvent
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