Skip to main content

ServerMsg

Enum ServerMsg 

Source
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

Fields

§version: u16
§features: u32
§

Update

Fields

§pty_id: u16
§payload: &'a [u8]
§

Created

Fields

§pty_id: u16
§tag: &'a str
§

CreatedN

Fields

§nonce: u16
§pty_id: u16
§tag: &'a str
§

Closed

Fields

§pty_id: u16
§

Exited

Fields

§pty_id: u16
§exit_status: i32
§

List

Fields

§entries: Vec<PtyListEntry<'a>>
§

Title

Fields

§pty_id: u16
§title: &'a [u8]
§

SearchResults

Fields

§request_id: u16
§results: Vec<SearchResultEntry<'a>>
§

Ready

§

Text

Fields

§nonce: u16
§pty_id: u16
§total_lines: u32
§offset: u32
§text: &'a str
§

SurfaceCreated

Fields

§surface_id: u16
§parent_id: u16
§width: u16
§height: u16
§title: &'a str
§app_id: &'a str
§

SurfaceDestroyed

Fields

§surface_id: u16
§

SurfaceFrame

Fields

§surface_id: u16
§timestamp: u32
§flags: u8
§width: u16
§height: u16
§data: &'a [u8]
§

SurfaceTitle

Fields

§surface_id: u16
§title: &'a str
§

SurfaceAppId

Fields

§surface_id: u16
§app_id: &'a str
§

SurfaceResized

Fields

§surface_id: u16
§width: u16
§height: u16
§

ClipboardContent

Fields

§mime_type: &'a str
§data: &'a [u8]
§

SurfaceList

Fields

§

SurfaceCapture

Fields

§surface_id: u16
§width: u32
§height: u32
§image_data: &'a [u8]
§

ClipboardList

Fields

§mime_types: Vec<String>
§

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> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.