pub struct StreamBegin(/* private fields */);
Expand description
The event to tell that the stream is ready to a client.
Implementations§
Source§impl StreamBegin
impl StreamBegin
Trait Implementations§
Source§impl ChunkData for StreamBegin
impl ChunkData for StreamBegin
const CHANNEL: Channel = Channel::Network
const MESSAGE_TYPE: MessageType = MessageType::UserControl
Source§impl Clone for StreamBegin
impl Clone for StreamBegin
Source§fn clone(&self) -> StreamBegin
fn clone(&self) -> StreamBegin
Returns a copy 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 StreamBegin
impl Debug for StreamBegin
Source§impl Decoder<StreamBegin> for ByteBuffer
impl Decoder<StreamBegin> for ByteBuffer
Source§fn decode(&mut self) -> IOResult<StreamBegin>
fn decode(&mut self) -> IOResult<StreamBegin>
Decodes bytes into a StreamBegin event.
§Errors
When some field misses.
§Examples
use sheave_core::{
ByteBuffer,
Decoder,
Encoder,
messages::{
EventType,
StreamBegin
}
};
let mut buffer = ByteBuffer::default();
buffer.put_u32_be(u32::default());
assert!(Decoder::<StreamBegin>::decode(&mut buffer).is_ok());
let mut buffer = ByteBuffer::default();
assert!(Decoder::<StreamBegin>::decode(&mut buffer).is_err())
Source§impl Encoder<StreamBegin> for ByteBuffer
impl Encoder<StreamBegin> for ByteBuffer
Source§fn encode(&mut self, stream_begin: &StreamBegin)
fn encode(&mut self, stream_begin: &StreamBegin)
Encodes a StreamBegin event into bytes.
Source§impl From<StreamBegin> for u32
impl From<StreamBegin> for u32
Source§fn from(stream_begin: StreamBegin) -> Self
fn from(stream_begin: StreamBegin) -> Self
Converts to this type from the input type.
Source§impl PartialEq for StreamBegin
impl PartialEq for StreamBegin
Source§impl UserControl for StreamBegin
impl UserControl for StreamBegin
const EVENT_TYPE: EventType = EventType::StreamBegin
impl Copy for StreamBegin
impl Eq for StreamBegin
impl StructuralPartialEq for StreamBegin
Auto Trait Implementations§
impl Freeze for StreamBegin
impl RefUnwindSafe for StreamBegin
impl Send for StreamBegin
impl Sync for StreamBegin
impl Unpin for StreamBegin
impl UnwindSafe for StreamBegin
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