pub enum ParameterValue {
Bytes(Bytes),
True,
VarInt(VarInt),
Duration(Duration),
ConnectionId(ConnectionId),
ResetToken(ResetToken),
PreferredAddress(PreferredAddress),
}Variants§
Bytes(Bytes)
True
VarInt(VarInt)
Duration(Duration)
ConnectionId(ConnectionId)
ResetToken(ResetToken)
PreferredAddress(PreferredAddress)
Implementations§
Source§impl ParameterValue
impl ParameterValue
pub fn value_type(&self) -> ParameterValueType
Trait Implementations§
Source§impl Clone for ParameterValue
impl Clone for ParameterValue
Source§fn clone(&self) -> ParameterValue
fn clone(&self) -> ParameterValue
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ParameterValue
impl Debug for ParameterValue
Source§impl From<Bytes> for ParameterValue
impl From<Bytes> for ParameterValue
Source§impl From<ConnectionId> for ParameterValue
impl From<ConnectionId> for ParameterValue
Source§fn from(value: ConnectionId) -> Self
fn from(value: ConnectionId) -> Self
Converts to this type from the input type.
Source§impl From<Duration> for ParameterValue
impl From<Duration> for ParameterValue
Source§impl From<PreferredAddress> for ParameterValue
impl From<PreferredAddress> for ParameterValue
Source§fn from(value: PreferredAddress) -> Self
fn from(value: PreferredAddress) -> Self
Converts to this type from the input type.
Source§impl From<ResetToken> for ParameterValue
impl From<ResetToken> for ParameterValue
Source§fn from(value: ResetToken) -> Self
fn from(value: ResetToken) -> Self
Converts to this type from the input type.
Source§impl From<String> for ParameterValue
impl From<String> for ParameterValue
Source§impl From<VarInt> for ParameterValue
impl From<VarInt> for ParameterValue
Source§impl From<u32> for ParameterValue
impl From<u32> for ParameterValue
Source§impl PartialEq for ParameterValue
impl PartialEq for ParameterValue
Source§impl TryFrom<ParameterValue> for Bytes
impl TryFrom<ParameterValue> for Bytes
Source§type Error = TryIntoError<ParameterValue>
type Error = TryIntoError<ParameterValue>
The type returned in the event of a conversion error.
Source§fn try_from(value: ParameterValue) -> Result<Self, TryIntoError<ParameterValue>>
fn try_from(value: ParameterValue) -> Result<Self, TryIntoError<ParameterValue>>
Performs the conversion.
Source§impl TryFrom<ParameterValue> for ConnectionId
impl TryFrom<ParameterValue> for ConnectionId
Source§type Error = TryIntoError<ParameterValue>
type Error = TryIntoError<ParameterValue>
The type returned in the event of a conversion error.
Source§fn try_from(value: ParameterValue) -> Result<Self, TryIntoError<ParameterValue>>
fn try_from(value: ParameterValue) -> Result<Self, TryIntoError<ParameterValue>>
Performs the conversion.
Source§impl TryFrom<ParameterValue> for Duration
impl TryFrom<ParameterValue> for Duration
Source§type Error = TryIntoError<ParameterValue>
type Error = TryIntoError<ParameterValue>
The type returned in the event of a conversion error.
Source§fn try_from(value: ParameterValue) -> Result<Self, TryIntoError<ParameterValue>>
fn try_from(value: ParameterValue) -> Result<Self, TryIntoError<ParameterValue>>
Performs the conversion.
Source§impl TryFrom<ParameterValue> for PreferredAddress
impl TryFrom<ParameterValue> for PreferredAddress
Source§type Error = TryIntoError<ParameterValue>
type Error = TryIntoError<ParameterValue>
The type returned in the event of a conversion error.
Source§fn try_from(value: ParameterValue) -> Result<Self, TryIntoError<ParameterValue>>
fn try_from(value: ParameterValue) -> Result<Self, TryIntoError<ParameterValue>>
Performs the conversion.
Source§impl TryFrom<ParameterValue> for ResetToken
impl TryFrom<ParameterValue> for ResetToken
Source§type Error = TryIntoError<ParameterValue>
type Error = TryIntoError<ParameterValue>
The type returned in the event of a conversion error.
Source§fn try_from(value: ParameterValue) -> Result<Self, TryIntoError<ParameterValue>>
fn try_from(value: ParameterValue) -> Result<Self, TryIntoError<ParameterValue>>
Performs the conversion.
Source§impl TryFrom<ParameterValue> for String
impl TryFrom<ParameterValue> for String
Source§impl TryFrom<ParameterValue> for VarInt
impl TryFrom<ParameterValue> for VarInt
Source§type Error = TryIntoError<ParameterValue>
type Error = TryIntoError<ParameterValue>
The type returned in the event of a conversion error.
Source§fn try_from(value: ParameterValue) -> Result<Self, TryIntoError<ParameterValue>>
fn try_from(value: ParameterValue) -> Result<Self, TryIntoError<ParameterValue>>
Performs the conversion.
Source§impl TryFrom<ParameterValue> for bool
impl TryFrom<ParameterValue> for bool
Source§type Error = TryIntoError<ParameterValue>
type Error = TryIntoError<ParameterValue>
The type returned in the event of a conversion error.
Source§impl TryFrom<ParameterValue> for u64
impl TryFrom<ParameterValue> for u64
impl StructuralPartialEq for ParameterValue
Auto Trait Implementations§
impl !Freeze for ParameterValue
impl RefUnwindSafe for ParameterValue
impl Send for ParameterValue
impl Sync for ParameterValue
impl Unpin for ParameterValue
impl UnwindSafe for ParameterValue
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)