Struct s2n_quic_transport::connection::close::ConnectionClose
source · [−]pub struct ConnectionClose<'a> {
pub error_code: VarInt,
pub frame_type: Option<VarInt>,
pub reason: Option<&'a [u8]>,
}
Fields
error_code: VarInt
A variable length integer error code which indicates the reason for closing this connection.
frame_type: Option<VarInt>
A variable-length integer encoding the type of frame that triggered the error.
reason: Option<&'a [u8]>
A human-readable explanation for why the connection was closed. This SHOULD be a UTF-8 encoded string.
Implementations
sourceimpl<'a> ConnectionClose<'a>
impl<'a> ConnectionClose<'a>
Trait Implementations
sourceimpl<'_> AckElicitable for ConnectionClose<'_>
impl<'_> AckElicitable for ConnectionClose<'_>
fn ack_elicitation(&self) -> AckElicitation
sourceimpl<'a> Clone for ConnectionClose<'a>
impl<'a> Clone for ConnectionClose<'a>
sourcefn clone(&self) -> ConnectionClose<'a>
fn clone(&self) -> ConnectionClose<'a>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl<'_> CongestionControlled for ConnectionClose<'_>
impl<'_> CongestionControlled for ConnectionClose<'_>
fn is_congestion_controlled(&self) -> bool
sourceimpl<'a> Debug for ConnectionClose<'a>
impl<'a> Debug for ConnectionClose<'a>
sourceimpl<'a> DecoderParameterizedValue<'a> for ConnectionClose<'a>
impl<'a> DecoderParameterizedValue<'a> for ConnectionClose<'a>
type Parameter = u8
fn decode_parameterized(
tag: <ConnectionClose<'a> as DecoderParameterizedValue<'a>>::Parameter,
buffer: DecoderBuffer<'a>
) -> Result<(ConnectionClose<'a>, DecoderBuffer<'a>), DecoderError>
sourceimpl<'a> DecoderParameterizedValueMut<'a> for ConnectionClose<'a>
impl<'a> DecoderParameterizedValueMut<'a> for ConnectionClose<'a>
type Parameter = u8
fn decode_parameterized_mut(
tag: <ConnectionClose<'a> as DecoderParameterizedValueMut<'a>>::Parameter,
buffer: DecoderBufferMut<'a>
) -> Result<(ConnectionClose<'a>, DecoderBufferMut<'a>), DecoderError>
sourceimpl<'a> EncoderValue for ConnectionClose<'a>
impl<'a> EncoderValue for ConnectionClose<'a>
sourcefn encode_mut<E>(&mut self, encoder: &mut E) where
E: Encoder,
fn encode_mut<E>(&mut self, encoder: &mut E) where
E: Encoder,
Encodes the value into the encoder, while potentially mutating the value itself
sourcefn encoding_size(&self) -> usize
fn encoding_size(&self) -> usize
Returns the encoding size with no buffer constrains
sourcefn encoding_size_for_encoder<E>(&self, encoder: &E) -> usize where
E: Encoder,
fn encoding_size_for_encoder<E>(&self, encoder: &E) -> usize where
E: Encoder,
Returns the encoding size for the given encoder’s capacity
sourceimpl<'a> From<ConnectionClose<'a>> for Error
impl<'a> From<ConnectionClose<'a>> for Error
sourcefn from(error: ConnectionClose<'_>) -> Error
fn from(error: ConnectionClose<'_>) -> Error
Converts to this type from the input type.
sourceimpl<'a> From<ConnectionClose<'a>> for StreamError
impl<'a> From<ConnectionClose<'a>> for StreamError
sourcefn from(error: ConnectionClose<'_>) -> StreamError
fn from(error: ConnectionClose<'_>) -> StreamError
Converts to this type from the input type.
sourceimpl<'a> From<Error> for ConnectionClose<'a>
impl<'a> From<Error> for ConnectionClose<'a>
sourcefn from(error: Error) -> ConnectionClose<'a>
fn from(error: Error) -> ConnectionClose<'a>
Converts to this type from the input type.
sourceimpl<'a> From<Error> for ConnectionClose<'a>
impl<'a> From<Error> for ConnectionClose<'a>
sourcefn from(error: Error) -> ConnectionClose<'a>
fn from(error: Error) -> ConnectionClose<'a>
Converts to this type from the input type.
sourceimpl<'a, '_> IntoEvent<Frame> for &'_ ConnectionClose<'a>
impl<'a, '_> IntoEvent<Frame> for &'_ ConnectionClose<'a>
fn into_event(self) -> Frame
sourceimpl<'a> PartialEq<ConnectionClose<'a>> for ConnectionClose<'a>
impl<'a> PartialEq<ConnectionClose<'a>> for ConnectionClose<'a>
sourcefn eq(&self, other: &ConnectionClose<'a>) -> bool
fn eq(&self, other: &ConnectionClose<'a>) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &ConnectionClose<'a>) -> bool
fn ne(&self, other: &ConnectionClose<'a>) -> bool
This method tests for !=
.
sourceimpl<'_> Probing for ConnectionClose<'_>
impl<'_> Probing for ConnectionClose<'_>
fn path_validation(&self) -> Probe
sourceimpl<'a> TryInto for ConnectionClose<'a>
impl<'a> TryInto for ConnectionClose<'a>
sourcefn application_error(&self) -> Option<Error>
fn application_error(&self) -> Option<Error>
Returns the associated Error
, if any
impl<'a> Copy for ConnectionClose<'a>
impl<'a> Eq for ConnectionClose<'a>
impl<'a> StructuralEq for ConnectionClose<'a>
impl<'a> StructuralPartialEq for ConnectionClose<'a>
Auto Trait Implementations
impl<'a> RefUnwindSafe for ConnectionClose<'a>
impl<'a> Send for ConnectionClose<'a>
impl<'a> Sync for ConnectionClose<'a>
impl<'a> Unpin for ConnectionClose<'a>
impl<'a> UnwindSafe for ConnectionClose<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> PacketPayloadEncoder for T where
T: EncoderValue,
impl<T> PacketPayloadEncoder for T where
T: EncoderValue,
sourcefn encoding_size_hint<E>(&mut self, encoder: &E, minimum_len: usize) -> usize where
E: Encoder,
fn encoding_size_hint<E>(&mut self, encoder: &E, minimum_len: usize) -> usize where
E: Encoder,
Returns an estimate of the encoding size of the payload. This may be inaccurate from what actually is encoded. Estimates should be less than or equal to what is actually written. Implementations can return 0 to skip encoding. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more