pub enum Frame {
Input(Vec<u8>),
Resize {
cols: u16,
rows: u16,
},
Ping,
Detach,
End,
Output {
offset: u64,
data: Vec<u8>,
},
Lost {
from: u64,
to: u64,
},
Exited {
code: i32,
},
Pong,
Hello {
session: String,
created: bool,
end: u64,
},
Error(String),
}Expand description
One message.
Variants§
Input(Vec<u8>)
Keystrokes for the session’s terminal.
Resize
The pane’s size.
Ping
Are you there? Answered with Pong; silence means a stalled link (§7.5).
Detach
Leave the session running and drop this connection.
End
End the session: its shell and everything it started.
Output
Terminal output starting at byte offset of the session’s stream.
Lost
Bytes from..to fell out of the session’s ring before they could be
replayed: the pane marks a gap there.
Exited
The session’s shell exited with code; the session is over.
Pong
Hello
Sent first: the session id, whether it was just created, and the next offset its output will have.
Error(String)
Something went wrong, in words for the pane.
Implementations§
Trait Implementations§
impl Eq for Frame
impl StructuralPartialEq for Frame
Auto Trait Implementations§
impl Freeze for Frame
impl RefUnwindSafe for Frame
impl Send for Frame
impl Sync for Frame
impl Unpin for Frame
impl UnsafeUnpin for Frame
impl UnwindSafe for Frame
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