pub enum Frame {
Show 25 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,
},
Hello {
version: u16,
},
HelloAck {
version: u16,
},
NewSession {
name: String,
},
Attach {
session: String,
},
Tail {
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).
Hello
Protocol version handshake (client → server, first frame on connection).
HelloAck
Protocol version acknowledgement (server → client).
NewSession
Attach
Tail
Read-only tail of a session’s PTY output (client → server).
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.