pub struct StartPacket {
pub stream_id: u8,
pub scope: Scope,
pub data_length: u16,
pub data_part: Vec<u8>,
}Fields§
§stream_id: u8§scope: Scope§data_length: u16§data_part: Vec<u8>Implementations§
Source§impl StartPacket
impl StartPacket
pub const DATA_PART_LENGTH: usize = 59usize
pub fn new<S: Into<Scope>>( stream_id: u8, scope: S, data_length: u16, data_part: Vec<u8>, ) -> Result<Self, StartPacketError>
pub fn new_reader<S: Into<Scope>>( stream_id: u8, scope: S, data_length: u16, data_stream: &mut impl Read, ) -> Result<Self, StartPacketError>
pub fn encode(&self) -> Result<Vec<u8>, StartPacketError>
Trait Implementations§
Source§impl Debug for StartPacket
impl Debug for StartPacket
Source§impl PartialEq for StartPacket
impl PartialEq for StartPacket
impl Eq for StartPacket
impl StructuralPartialEq for StartPacket
Auto Trait Implementations§
impl Freeze for StartPacket
impl RefUnwindSafe for StartPacket
impl Send for StartPacket
impl Sync for StartPacket
impl Unpin for StartPacket
impl UnwindSafe for StartPacket
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