pub enum Frame {
Show 16 variants
Data(Bytes),
Resize {
cols: u16,
rows: u16,
},
Exit {
code: i32,
},
Detached,
Ping,
Pong,
Env {
vars: Vec<(String, String)>,
},
NewSession {
name: String,
},
Attach {
session: String,
},
ListSessions,
KillSession {
session: String,
},
KillServer,
SessionCreated {
id: String,
},
SessionInfo {
sessions: Vec<SessionEntry>,
},
Ok,
Error {
message: String,
},
}Variants§
Data(Bytes)
Resize
Exit
Detached
Sent to a client when another client takes over the session.
Ping
Heartbeat request (client → server).
Pong
Heartbeat reply (server → client).
Env
Environment variables (client → server, sent before first Resize on new session).
NewSession
Attach
ListSessions
KillSession
KillServer
SessionCreated
SessionInfo
Fields
§
sessions: Vec<SessionEntry>Ok
Error
Implementations§
Trait Implementations§
Source§impl Encoder<Frame> for FrameCodec
impl Encoder<Frame> for FrameCodec
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