pub enum Frame {
Show 22 variants
Data(Bytes),
Resize {
cols: u16,
rows: u16,
},
Exit {
code: i32,
},
Detached,
Ping,
Pong,
Env {
vars: Vec<(String, String)>,
},
AgentForward,
AgentOpen {
channel_id: u32,
},
AgentData {
channel_id: u32,
data: Bytes,
},
AgentClose {
channel_id: u32,
},
OpenForward,
OpenUrl {
url: 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).
AgentForward
Client signals it can handle agent forwarding (client → server).
AgentOpen
New agent connection on the remote side (server → client).
AgentData
Agent protocol data (bidirectional).
AgentClose
Close an agent channel (bidirectional).
OpenForward
Client signals it can handle URL open forwarding (client → server).
OpenUrl
URL to open on the client machine (server → client).
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