pub struct CorruptMessagePayload {
location: &'static Location<'static>,
kind: ContentType,
}
Expand description
Context around a corrupt TLS message payload that resulted in an error.
Fields§
§location: &'static Location<'static>
§kind: ContentType
Implementations§
source§impl CorruptMessagePayload
impl CorruptMessagePayload
sourcepub fn content_type(&self) -> ContentType
pub fn content_type(&self) -> ContentType
Returns the type of content we expected but found as corrupt.
Trait Implementations§
source§impl Clone for CorruptMessagePayload
impl Clone for CorruptMessagePayload
source§fn clone(&self) -> CorruptMessagePayload
fn clone(&self) -> CorruptMessagePayload
Returns a copy 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 CorruptMessagePayload
impl Debug for CorruptMessagePayload
source§impl PartialEq for CorruptMessagePayload
impl PartialEq for CorruptMessagePayload
impl StructuralPartialEq for CorruptMessagePayload
Auto Trait Implementations§
impl Freeze for CorruptMessagePayload
impl RefUnwindSafe for CorruptMessagePayload
impl Send for CorruptMessagePayload
impl Sync for CorruptMessagePayload
impl Unpin for CorruptMessagePayload
impl UnwindSafe for CorruptMessagePayload
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
§impl<T> CloneAny for T
impl<T> CloneAny for T
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)§impl<Tail, T> Prepend<T> for Tail
impl<Tail, T> Prepend<T> for Tail
§type PreprendResult = Tail
type PreprendResult = Tail
The Resulting [
TupleList
], of an [Prepend::prepend()
] call,
including the prepended entry.