pub enum AgentEndpointDescriptor {
Unix {
app_id: String,
pid: u32,
path: PathBuf,
token: Option<String>,
vnc: Option<VncEndpoint>,
},
Tcp {
app_id: String,
pid: u32,
host: String,
port: u16,
token: Option<String>,
vnc: Option<VncEndpoint>,
},
}Variants§
Implementations§
Source§impl AgentEndpointDescriptor
impl AgentEndpointDescriptor
pub fn unix(app_id: impl Into<String>, pid: u32, path: PathBuf) -> Self
pub fn tcp( app_id: impl Into<String>, pid: u32, host: impl Into<String>, port: u16, ) -> Self
pub fn app_id(&self) -> &str
Sourcepub fn token(&self) -> Option<&str>
pub fn token(&self) -> Option<&str>
The per-session auth token a client must present, if this server requires one.
Sourcepub fn with_token(self, value: Option<String>) -> Self
pub fn with_token(self, value: Option<String>) -> Self
Attach (or clear) the required auth token, consuming self.
Sourcepub fn vnc(&self) -> Option<&VncEndpoint>
pub fn vnc(&self) -> Option<&VncEndpoint>
The advertised VNC surface, if this app publishes one.
Sourcepub fn with_vnc(self, endpoint: Option<VncEndpoint>) -> Self
pub fn with_vnc(self, endpoint: Option<VncEndpoint>) -> Self
Attach (or clear) the advertised VNC surface, consuming self.
Trait Implementations§
Source§impl Clone for AgentEndpointDescriptor
impl Clone for AgentEndpointDescriptor
Source§fn clone(&self) -> AgentEndpointDescriptor
fn clone(&self) -> AgentEndpointDescriptor
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AgentEndpointDescriptor
impl Debug for AgentEndpointDescriptor
Source§impl<'de> Deserialize<'de> for AgentEndpointDescriptor
impl<'de> Deserialize<'de> for AgentEndpointDescriptor
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
impl Eq for AgentEndpointDescriptor
Source§impl PartialEq for AgentEndpointDescriptor
impl PartialEq for AgentEndpointDescriptor
Source§impl Serialize for AgentEndpointDescriptor
impl Serialize for AgentEndpointDescriptor
impl StructuralPartialEq for AgentEndpointDescriptor
Auto Trait Implementations§
impl Freeze for AgentEndpointDescriptor
impl RefUnwindSafe for AgentEndpointDescriptor
impl Send for AgentEndpointDescriptor
impl Sync for AgentEndpointDescriptor
impl Unpin for AgentEndpointDescriptor
impl UnsafeUnpin for AgentEndpointDescriptor
impl UnwindSafe for AgentEndpointDescriptor
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<'de, D, R> CommandArg<'de, R> for Dwhere
D: Deserialize<'de>,
R: Runtime,
impl<'de, D, R> CommandArg<'de, R> for Dwhere
D: Deserialize<'de>,
R: Runtime,
Source§fn from_command(command: CommandItem<'de, R>) -> Result<D, InvokeError>
fn from_command(command: CommandItem<'de, R>) -> Result<D, InvokeError>
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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.