Struct ross_protocol::packet::PacketBuilder
source · [−]pub struct PacketBuilder { /* private fields */ }
Implementations
sourceimpl PacketBuilder
impl PacketBuilder
pub fn expected_frame_count(&self) -> u16
pub fn frame_count(&self) -> u16
pub fn frames_left(&self) -> u16
pub fn new(frame: Frame) -> Result<Self, PacketBuilderError>
pub fn add_frame(&mut self, frame: Frame) -> Result<(), PacketBuilderError>
pub fn build(&self) -> Result<Packet, PacketBuilderError>
Trait Implementations
sourceimpl Debug for PacketBuilder
impl Debug for PacketBuilder
sourceimpl PartialEq<PacketBuilder> for PacketBuilder
impl PartialEq<PacketBuilder> for PacketBuilder
sourcefn eq(&self, other: &PacketBuilder) -> bool
fn eq(&self, other: &PacketBuilder) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &PacketBuilder) -> bool
fn ne(&self, other: &PacketBuilder) -> bool
This method tests for !=
.
impl StructuralPartialEq for PacketBuilder
Auto Trait Implementations
impl RefUnwindSafe for PacketBuilder
impl Send for PacketBuilder
impl Sync for PacketBuilder
impl Unpin for PacketBuilder
impl UnwindSafe for PacketBuilder
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more