pub enum ServerMsg<'a> {
Show 22 variants
Hello {
version: u16,
features: u32,
},
Update {
pty_id: u16,
payload: &'a [u8],
},
Created {
pty_id: u16,
tag: &'a str,
},
CreatedN {
nonce: u16,
pty_id: u16,
tag: &'a str,
},
Closed {
pty_id: u16,
},
Exited {
pty_id: u16,
exit_status: i32,
},
List {
entries: Vec<PtyListEntry<'a>>,
},
Title {
pty_id: u16,
title: &'a [u8],
},
SearchResults {
request_id: u16,
results: Vec<SearchResultEntry<'a>>,
},
Ready,
Text {
nonce: u16,
pty_id: u16,
total_lines: u32,
offset: u32,
text: &'a str,
},
SurfaceCreated {
surface_id: u16,
parent_id: u16,
width: u16,
height: u16,
title: &'a str,
app_id: &'a str,
},
SurfaceDestroyed {
surface_id: u16,
},
SurfaceFrame {
surface_id: u16,
timestamp: u32,
flags: u8,
width: u16,
height: u16,
data: &'a [u8],
},
SurfaceTitle {
surface_id: u16,
title: &'a str,
},
SurfaceAppId {
surface_id: u16,
app_id: &'a str,
},
SurfaceResized {
surface_id: u16,
width: u16,
height: u16,
},
ClipboardContent {
mime_type: &'a str,
data: &'a [u8],
},
SurfaceList {
entries: Vec<SurfaceListEntry>,
},
SurfaceCapture {
surface_id: u16,
width: u32,
height: u32,
image_data: &'a [u8],
},
ClipboardList {
mime_types: Vec<String>,
},
Quit,
}Variants§
Hello
Update
Created
CreatedN
Closed
Exited
List
Fields
§
entries: Vec<PtyListEntry<'a>>Title
SearchResults
Ready
Text
SurfaceCreated
SurfaceDestroyed
SurfaceFrame
SurfaceTitle
SurfaceAppId
SurfaceResized
ClipboardContent
SurfaceList
Fields
§
entries: Vec<SurfaceListEntry>SurfaceCapture
ClipboardList
Quit
Auto Trait Implementations§
impl<'a> Freeze for ServerMsg<'a>
impl<'a> RefUnwindSafe for ServerMsg<'a>
impl<'a> Send for ServerMsg<'a>
impl<'a> Sync for ServerMsg<'a>
impl<'a> Unpin for ServerMsg<'a>
impl<'a> UnsafeUnpin for ServerMsg<'a>
impl<'a> UnwindSafe for ServerMsg<'a>
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