pub struct EventMessageStreamBegin {
pub stream_id: u32,
}
Expand description
The server sends this event to notify the client that a stream has become functional and can be used for communication. By default, this event is sent on ID 0 after the application connect command is successfully received from the client. The event data is 4-byte and represents the stream ID of the stream that became functional.
Fields§
§stream_id: u32
The stream ID of the stream that became functional.
Implementations§
Source§impl EventMessageStreamBegin
impl EventMessageStreamBegin
Sourcepub fn write(&self, writer: &ChunkWriter, io: &mut impl Write) -> Result<()>
pub fn write(&self, writer: &ChunkWriter, io: &mut impl Write) -> Result<()>
Writes the EventMessageStreamBegin
to the given writer.
Auto Trait Implementations§
impl Freeze for EventMessageStreamBegin
impl RefUnwindSafe for EventMessageStreamBegin
impl Send for EventMessageStreamBegin
impl Sync for EventMessageStreamBegin
impl Unpin for EventMessageStreamBegin
impl UnwindSafe for EventMessageStreamBegin
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