pub enum ProtocolMode {
BidiStream,
RequestResponse,
}
Expand description
ProtocolMode
JSON schema
{
"title": "ProtocolMode",
"enum": [
"BIDI_STREAM",
"REQUEST_RESPONSE"
]
}
Variants§
Trait Implementations§
Source§impl Clone for ProtocolMode
impl Clone for ProtocolMode
Source§fn clone(&self) -> ProtocolMode
fn clone(&self) -> ProtocolMode
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for ProtocolMode
impl Debug for ProtocolMode
Source§impl<'de> Deserialize<'de> for ProtocolMode
impl<'de> Deserialize<'de> for ProtocolMode
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
Source§impl From<&ProtocolMode> for ProtocolMode
impl From<&ProtocolMode> for ProtocolMode
Source§fn from(value: &ProtocolMode) -> Self
fn from(value: &ProtocolMode) -> Self
Converts to this type from the input type.
Source§impl FromStr for ProtocolMode
impl FromStr for ProtocolMode
Source§impl Hash for ProtocolMode
impl Hash for ProtocolMode
Source§impl Ord for ProtocolMode
impl Ord for ProtocolMode
Source§fn cmp(&self, other: &ProtocolMode) -> Ordering
fn cmp(&self, other: &ProtocolMode) -> Ordering
1.21.0 · Source§fn 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
Source§impl PartialEq for ProtocolMode
impl PartialEq for ProtocolMode
Source§impl PartialOrd for ProtocolMode
impl PartialOrd for ProtocolMode
Source§impl Serialize for ProtocolMode
impl Serialize for ProtocolMode
Source§impl ToString for ProtocolMode
impl ToString for ProtocolMode
Source§impl TryFrom<&String> for ProtocolMode
impl TryFrom<&String> for ProtocolMode
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§impl TryFrom<&str> for ProtocolMode
impl TryFrom<&str> for ProtocolMode
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§impl TryFrom<String> for ProtocolMode
impl TryFrom<String> for ProtocolMode
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
impl Copy for ProtocolMode
impl Eq for ProtocolMode
impl StructuralPartialEq for ProtocolMode
Auto Trait Implementations§
impl Freeze for ProtocolMode
impl RefUnwindSafe for ProtocolMode
impl Send for ProtocolMode
impl Sync for ProtocolMode
impl Unpin for ProtocolMode
impl UnwindSafe for ProtocolMode
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<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<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.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more