pub enum ManagerCapabilityKind {
Capabilities,
Launch,
Connect,
OpenChannel,
Channel,
CloseChannel,
Info,
Kill,
List,
Shutdown,
}
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
OpenChannel
Opens a channel for communication with a 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
Shutdown
Signals the manager to shutdown
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_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
pub fn is_shutdown(&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 more
sourceimpl 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ⓘNotable traits for ManagerCapabilityKindIterimpl Iterator for ManagerCapabilityKindIter type Item = ManagerCapabilityKind;
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) -> Self
fn max(self, other: Self) -> Self
Compares and returns the maximum of two values. Read more
1.21.0 · sourcefn min(self, other: Self) -> Self
fn min(self, other: Self) -> Self
Compares and returns the minimum of two values. Read more
1.50.0 · sourcefn clamp(self, min: Self, max: Self) -> Self where
Self: PartialOrd<Self>,
fn clamp(self, min: Self, max: Self) -> Self where
Self: 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
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
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>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
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 more
sourceimpl 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 T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
fn vzip(self) -> V
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more