Skip to main content

ServerMsg

Enum ServerMsg 

Source
pub enum ServerMsg<'a> {
    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,
    },
}

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

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.