pub struct ConnectionShutdownBehaviour {
    pub send_application_close: bool,
    pub error_code: u64,
    pub reason: Vec<u8>,
}Expand description
Parameters to close a quiche::Connection.
The connection will use these parameters for the CONNECTION_CLOSE frame
it sends to its peer.
Fields§
§send_application_close: boolWhether to send an application close or a regular close to the peer.
If this is true but the connection is not in a state where it is safe to
send an application error (not established nor in early data), in
accordance with RFC 9000, the
error code is changed to APPLICATION_ERROR and the reason phrase is
cleared.
error_code: u64The QUIC or application-level error code to send to the peer.
reason: Vec<u8>The reason phrase to send to the peer.
Trait Implementations§
Source§impl Clone for ConnectionShutdownBehaviour
 
impl Clone for ConnectionShutdownBehaviour
Source§fn clone(&self) -> ConnectionShutdownBehaviour
 
fn clone(&self) -> ConnectionShutdownBehaviour
Returns a duplicate 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 moreAuto Trait Implementations§
impl Freeze for ConnectionShutdownBehaviour
impl RefUnwindSafe for ConnectionShutdownBehaviour
impl Send for ConnectionShutdownBehaviour
impl Sync for ConnectionShutdownBehaviour
impl Unpin for ConnectionShutdownBehaviour
impl UnwindSafe for ConnectionShutdownBehaviour
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
Source§impl<T> CloneToUninit for Twhere
    T: Clone,
 
impl<T> CloneToUninit for Twhere
    T: Clone,
Source§impl<T> IntoEither for T
 
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
 
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts 
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
 
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts 
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more