pub struct ServerSetup {
pub version: Version,
pub parameters: Parameters,
}Expand description
Sent by the server in response to a client setup.
Fields§
§version: VersionThe list of supported versions in preferred order.
parameters: ParametersSupported extensions.
Trait Implementations§
Source§impl Clone for ServerSetup
impl Clone for ServerSetup
Source§fn clone(&self) -> ServerSetup
fn clone(&self) -> ServerSetup
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 ServerSetup
impl Debug for ServerSetup
Source§impl Message for ServerSetup
impl Message for ServerSetup
const ID: u64 = 33u64
Source§fn encode_msg<W: BufMut>(&self, w: &mut W, version: IetfVersion)
fn encode_msg<W: BufMut>(&self, w: &mut W, version: IetfVersion)
Encode this message with a size prefix.
Source§fn decode_msg<R: Buf>(
r: &mut R,
version: IetfVersion,
) -> Result<Self, DecodeError>
fn decode_msg<R: Buf>( r: &mut R, version: IetfVersion, ) -> Result<Self, DecodeError>
Decode a size-prefixed message, ensuring exact size consumption.
Auto Trait Implementations§
impl Freeze for ServerSetup
impl RefUnwindSafe for ServerSetup
impl Send for ServerSetup
impl Sync for ServerSetup
impl Unpin for ServerSetup
impl UnwindSafe for ServerSetup
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)