pub enum ServerDhParams {
Fail(ServerDhParamsFail),
Ok(ServerDhParamsOk),
}Expand description
Variants§
Fail(ServerDhParamsFail)
Ok(ServerDhParamsOk)
Trait Implementations§
Source§impl Clone for ServerDhParams
impl Clone for ServerDhParams
Source§fn clone(&self) -> ServerDhParams
fn clone(&self) -> ServerDhParams
Returns a duplicate of the value. Read more
1.0.0 · 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 ServerDhParams
impl Debug for ServerDhParams
Source§impl Deserializable for ServerDhParams
impl Deserializable for ServerDhParams
Source§fn deserialize(buf: Buffer<'_, '_>) -> Result<Self>
fn deserialize(buf: Buffer<'_, '_>) -> Result<Self>
Read
Self from buf, advancing its position.Source§fn from_bytes(bytes: &[u8]) -> Result<Self>
fn from_bytes(bytes: &[u8]) -> Result<Self>
Convenience: deserialize from a byte slice.
Source§impl From<ServerDhParamsFail> for ServerDhParams
impl From<ServerDhParamsFail> for ServerDhParams
Source§fn from(x: ServerDhParamsFail) -> Self
fn from(x: ServerDhParamsFail) -> Self
Converts to this type from the input type.
Source§impl From<ServerDhParamsOk> for ServerDhParams
impl From<ServerDhParamsOk> for ServerDhParams
Source§fn from(x: ServerDhParamsOk) -> Self
fn from(x: ServerDhParamsOk) -> Self
Converts to this type from the input type.
Source§impl PartialEq for ServerDhParams
impl PartialEq for ServerDhParams
Source§impl Serializable for ServerDhParams
impl Serializable for ServerDhParams
Source§impl TryFrom<ServerDhParams> for ServerDhParamsFail
impl TryFrom<ServerDhParams> for ServerDhParamsFail
Source§type Error = ServerDhParams
type Error = ServerDhParams
The type returned in the event of a conversion error.
Source§impl TryFrom<ServerDhParams> for ServerDhParamsOk
impl TryFrom<ServerDhParams> for ServerDhParamsOk
Source§type Error = ServerDhParams
type Error = ServerDhParams
The type returned in the event of a conversion error.
impl StructuralPartialEq for ServerDhParams
Auto Trait Implementations§
impl Freeze for ServerDhParams
impl RefUnwindSafe for ServerDhParams
impl Send for ServerDhParams
impl Sync for ServerDhParams
impl Unpin for ServerDhParams
impl UnsafeUnpin for ServerDhParams
impl UnwindSafe for ServerDhParams
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