pub struct StreamClose {
pub logical_stream_id: u64,
pub code: CloseCode,
pub reason: Option<String>,
}Expand description
Notification that a stream has closed.
Fields§
§logical_stream_id: u64Logical stream ID of the closed stream.
code: CloseCodeClose code indicating the reason.
reason: Option<String>Optional human-readable reason.
Implementations§
Trait Implementations§
Source§impl Clone for StreamClose
impl Clone for StreamClose
Source§fn clone(&self) -> StreamClose
fn clone(&self) -> StreamClose
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 moreSource§impl Debug for StreamClose
impl Debug for StreamClose
Source§impl<'de> Deserialize<'de> for StreamClose
impl<'de> Deserialize<'de> for StreamClose
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for StreamClose
impl PartialEq for StreamClose
Source§impl Serialize for StreamClose
impl Serialize for StreamClose
impl Eq for StreamClose
impl StructuralPartialEq for StreamClose
Auto Trait Implementations§
impl Freeze for StreamClose
impl RefUnwindSafe for StreamClose
impl Send for StreamClose
impl Sync for StreamClose
impl Unpin for StreamClose
impl UnwindSafe for StreamClose
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