pub enum ManagerCapabilityKind {
Capabilities,
Launch,
Connect,
Authenticate,
OpenChannel,
Channel,
CloseChannel,
Info,
Kill,
List,
}Expand description
Auto-generated discriminant enum variants
Variants
Capabilities
Retrieve information about the server’s capabilities
Launch
Launch a server using the manager
Connect
Initiate a connection through the manager
Authenticate
Submit some authentication message for the manager to use with an active connection
OpenChannel
Opens a channel for communication with an already-connected server
Channel
Sends data through channel
CloseChannel
Closes an open channel
Info
Retrieve information about a specific connection
Kill
Kill a specific connection
List
Retrieve list of connections being managed
Implementations
sourceimpl ManagerCapabilityKind
impl ManagerCapabilityKind
pub fn is_capabilities(&self) -> bool
pub fn is_launch(&self) -> bool
pub fn is_connect(&self) -> bool
pub fn is_authenticate(&self) -> bool
pub fn is_open_channel(&self) -> bool
pub fn is_channel(&self) -> bool
pub fn is_close_channel(&self) -> bool
pub fn is_info(&self) -> bool
pub fn is_kill(&self) -> bool
pub fn is_list(&self) -> bool
Trait Implementations
sourceimpl AsRef<str> for ManagerCapabilityKind
impl AsRef<str> for ManagerCapabilityKind
sourceimpl Clone for ManagerCapabilityKind
impl Clone for ManagerCapabilityKind
sourcefn clone(&self) -> ManagerCapabilityKind
fn clone(&self) -> ManagerCapabilityKind
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresourceimpl Debug for ManagerCapabilityKind
impl Debug for ManagerCapabilityKind
sourceimpl<'de> Deserialize<'de> for ManagerCapabilityKind
impl<'de> Deserialize<'de> for ManagerCapabilityKind
sourcefn 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
sourceimpl Display for ManagerCapabilityKind
impl Display for ManagerCapabilityKind
sourceimpl EnumMessage for ManagerCapabilityKind
impl EnumMessage for ManagerCapabilityKind
fn get_message(&self) -> Option<&'static str>
fn get_detailed_message(&self) -> Option<&'static str>
sourcefn get_documentation(&self) -> Option<&'static str>
fn get_documentation(&self) -> Option<&'static str>
Get the doc comment associated with a variant if it exists.
fn get_serializations(&self) -> &'static [&'static str]
sourceimpl<'_enum> From<&'_enum ManagerRequest> for ManagerCapabilityKind
impl<'_enum> From<&'_enum ManagerRequest> for ManagerCapabilityKind
sourcefn from(val: &'_enum ManagerRequest) -> ManagerCapabilityKind
fn from(val: &'_enum ManagerRequest) -> ManagerCapabilityKind
Converts to this type from the input type.
sourceimpl From<ManagerCapabilityKind> for ManagerCapability
impl From<ManagerCapabilityKind> for ManagerCapability
sourcefn from(kind: ManagerCapabilityKind) -> Self
fn from(kind: ManagerCapabilityKind) -> Self
Creates a new capability using the kind’s default message
sourceimpl From<ManagerRequest> for ManagerCapabilityKind
impl From<ManagerRequest> for ManagerCapabilityKind
sourcefn from(val: ManagerRequest) -> ManagerCapabilityKind
fn from(val: ManagerRequest) -> ManagerCapabilityKind
Converts to this type from the input type.
sourceimpl FromStr for ManagerCapabilityKind
impl FromStr for ManagerCapabilityKind
type Err = ParseError
type Err = ParseError
The associated error which can be returned from parsing.
sourceimpl Hash for ManagerCapabilityKind
impl Hash for ManagerCapabilityKind
sourceimpl IntoEnumIterator for ManagerCapabilityKind
impl IntoEnumIterator for ManagerCapabilityKind
type Iterator = ManagerCapabilityKindIter
fn iter() -> ManagerCapabilityKindIter ⓘ
sourceimpl Ord for ManagerCapabilityKind
impl Ord for ManagerCapabilityKind
sourcefn cmp(&self, other: &ManagerCapabilityKind) -> Ordering
fn cmp(&self, other: &ManagerCapabilityKind) -> Ordering
1.21.0 · sourcefn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 · sourcefn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
1.50.0 · sourcefn clamp(self, min: Self, max: Self) -> Selfwhere
Self: Sized + PartialOrd<Self>,
fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: Sized + PartialOrd<Self>,
Restrict a value to a certain interval. Read more
sourceimpl PartialEq<ManagerCapabilityKind> for ManagerCapabilityKind
impl PartialEq<ManagerCapabilityKind> for ManagerCapabilityKind
sourcefn eq(&self, other: &ManagerCapabilityKind) -> bool
fn eq(&self, other: &ManagerCapabilityKind) -> bool
sourceimpl PartialOrd<ManagerCapabilityKind> for ManagerCapabilityKind
impl PartialOrd<ManagerCapabilityKind> for ManagerCapabilityKind
sourcefn partial_cmp(&self, other: &ManagerCapabilityKind) -> Option<Ordering>
fn partial_cmp(&self, other: &ManagerCapabilityKind) -> Option<Ordering>
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self and other) and is used by the <=
operator. Read moresourceimpl Serialize for ManagerCapabilityKind
impl Serialize for ManagerCapabilityKind
sourceimpl TryFrom<&str> for ManagerCapabilityKind
impl TryFrom<&str> for ManagerCapabilityKind
type Error = ParseError
type Error = ParseError
The type returned in the event of a conversion error.
impl Copy for ManagerCapabilityKind
impl Eq for ManagerCapabilityKind
impl StructuralEq for ManagerCapabilityKind
impl StructuralPartialEq for ManagerCapabilityKind
Auto Trait Implementations
impl RefUnwindSafe for ManagerCapabilityKind
impl Send for ManagerCapabilityKind
impl Sync for ManagerCapabilityKind
impl Unpin for ManagerCapabilityKind
impl UnwindSafe for ManagerCapabilityKind
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more