pub struct DesktopConnectRequest {
pub connection_id: String,
pub protocol: DesktopKind,
pub host: String,
pub port: u16,
pub username: Option<String>,
pub password: Option<String>,
pub domain: Option<String>,
pub resolution: Option<String>,
pub color_depth: Option<u8>,
}Expand description
Request to establish an RDP or VNC connection.
Fields§
§connection_id: String§protocol: DesktopKind§host: String§port: u16§username: Option<String>§password: Option<String>§domain: Option<String>§resolution: Option<String>RDP resolution: “1024x768”, “1280x720”, “1920x1080”, or “fit”
color_depth: Option<u8>VNC color depth: 24, 16, or 8
Implementations§
Source§impl DesktopConnectRequest
impl DesktopConnectRequest
Sourcepub fn parse_resolution(&self) -> (u16, u16)
pub fn parse_resolution(&self) -> (u16, u16)
Parse the resolution string into (width, height), defaulting to 1024×768.
Sourcepub fn to_rdp_config(&self) -> RdpConfig
pub fn to_rdp_config(&self) -> RdpConfig
Convert to an RdpConfig.
Sourcepub fn to_vnc_config(&self) -> VncConfig
pub fn to_vnc_config(&self) -> VncConfig
Convert to a VncConfig.
Trait Implementations§
Source§impl Debug for DesktopConnectRequest
impl Debug for DesktopConnectRequest
Source§impl<'de> Deserialize<'de> for DesktopConnectRequest
impl<'de> Deserialize<'de> for DesktopConnectRequest
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for DesktopConnectRequest
impl RefUnwindSafe for DesktopConnectRequest
impl Send for DesktopConnectRequest
impl Sync for DesktopConnectRequest
impl Unpin for DesktopConnectRequest
impl UnsafeUnpin for DesktopConnectRequest
impl UnwindSafe for DesktopConnectRequest
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