#[non_exhaustive]pub struct ConnectionCloseFrameReceived<'a> {
pub packet_header: PacketHeader,
pub path: Path<'a>,
pub frame: ConnectionCloseFrame<'a>,
}Expand description
A CONNECTION_CLOSE frame was received
This event includes additional details from the frame, particularly the reason (if provided) the peer closed the connection
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.packet_header: PacketHeader§path: Path<'a>§frame: ConnectionCloseFrame<'a>Trait Implementations§
Source§impl<'a> Clone for ConnectionCloseFrameReceived<'a>
impl<'a> Clone for ConnectionCloseFrameReceived<'a>
Source§fn clone(&self) -> ConnectionCloseFrameReceived<'a>
fn clone(&self) -> ConnectionCloseFrameReceived<'a>
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<'a> Debug for ConnectionCloseFrameReceived<'a>
impl<'a> Debug for ConnectionCloseFrameReceived<'a>
Source§impl<'a> Event for ConnectionCloseFrameReceived<'a>
impl<'a> Event for ConnectionCloseFrameReceived<'a>
Source§impl<'a> IntoEvent<ConnectionCloseFrameReceived<'a>> for ConnectionCloseFrameReceived<'a>
impl<'a> IntoEvent<ConnectionCloseFrameReceived<'a>> for ConnectionCloseFrameReceived<'a>
fn into_event(self) -> ConnectionCloseFrameReceived<'a>
Auto Trait Implementations§
impl<'a> Freeze for ConnectionCloseFrameReceived<'a>
impl<'a> RefUnwindSafe for ConnectionCloseFrameReceived<'a>
impl<'a> Send for ConnectionCloseFrameReceived<'a>
impl<'a> Sync for ConnectionCloseFrameReceived<'a>
impl<'a> Unpin for ConnectionCloseFrameReceived<'a>
impl<'a> UnwindSafe for ConnectionCloseFrameReceived<'a>
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)