pub enum TlsHandshakeExternalMessage {}Expand description
Owned peer-initiated messages legal in TlsHandshake.
Implementations§
Source§impl TlsHandshakeExternalMessage
impl TlsHandshakeExternalMessage
Sourcepub const fn as_wire(&self) -> &PreStartupMessage
pub const fn as_wire(&self) -> &PreStartupMessage
Borrows the underlying decoded wire message.
Sourcepub fn into_wire(self) -> PreStartupMessage
pub fn into_wire(self) -> PreStartupMessage
Returns the underlying decoded wire message.
Trait Implementations§
Source§impl AsRef<PreStartupMessage> for TlsHandshakeExternalMessage
impl AsRef<PreStartupMessage> for TlsHandshakeExternalMessage
Source§fn as_ref(&self) -> &PreStartupMessage
fn as_ref(&self) -> &PreStartupMessage
Converts this type into a shared reference of the (usually inferred) input type.
Source§impl From<TlsHandshakeExternalMessage> for PreStartupMessage
impl From<TlsHandshakeExternalMessage> for PreStartupMessage
Source§fn from(message: TlsHandshakeExternalMessage) -> Self
fn from(message: TlsHandshakeExternalMessage) -> Self
Converts to this type from the input type.
Source§impl TryFrom<PreStartupMessage> for TlsHandshakeExternalMessage
impl TryFrom<PreStartupMessage> for TlsHandshakeExternalMessage
Source§type Error = PreStartupMessage
type Error = PreStartupMessage
The type returned in the event of a conversion error.
Source§fn try_from(message: PreStartupMessage) -> Result<Self, PreStartupMessage>
fn try_from(message: PreStartupMessage) -> Result<Self, PreStartupMessage>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for TlsHandshakeExternalMessage
impl RefUnwindSafe for TlsHandshakeExternalMessage
impl Send for TlsHandshakeExternalMessage
impl Sync for TlsHandshakeExternalMessage
impl Unpin for TlsHandshakeExternalMessage
impl UnsafeUnpin for TlsHandshakeExternalMessage
impl UnwindSafe for TlsHandshakeExternalMessage
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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