pub enum TcpWarpMessage {
Show 13 variants
AddPorts(Vec<u16>),
Connected {
connection_id: Uuid,
},
BytesClient {
connection_id: Uuid,
data: BytesMut,
},
BytesServer {
data: BytesMut,
},
BytesHost {
connection_id: Uuid,
data: BytesMut,
},
Connect {
connection_id: Uuid,
connection: TcpWarpPortConnection,
sender: Sender<TcpWarpMessage>,
connected_sender: Sender<Result<(), Error>>,
},
ConnectForward {
connection_id: Uuid,
sender: Sender<TcpWarpMessage>,
connected_sender: Sender<Result<(), Error>>,
},
ConnectFailure {
connection_id: Uuid,
},
Disconnect,
Listener(AbortHandle),
HostConnect {
connection_id: Uuid,
host: Option<String>,
port: u16,
},
DisconnectHost {
connection_id: Uuid,
},
DisconnectClient {
connection_id: Uuid,
},
}Expand description
Command types.
Serialization scheme:
- 1 - add ports u16 len * u16
- 2 - host connect u16=(len + 2) u128 u16 len * u8
- 3 - bytes client u128 u32 len * u8
- 4 - bytes host u128 u32 len * u8
- 5 - connected u128
- 6 - disconnect host u128
- 7 - disconnect client u128
Variants§
AddPorts(Vec<u16>)
Connected
BytesClient
BytesServer
BytesHost
Connect
ConnectForward
Fields
§
sender: Sender<TcpWarpMessage>ConnectFailure
Disconnect
Listener(AbortHandle)
HostConnect
DisconnectHost
DisconnectClient
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TcpWarpMessage
impl !RefUnwindSafe for TcpWarpMessage
impl Send for TcpWarpMessage
impl Sync for TcpWarpMessage
impl Unpin for TcpWarpMessage
impl !UnwindSafe for TcpWarpMessage
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