pub struct DatagramBuilder { /* private fields */ }Expand description
Builds one datagram. Add updates in ascending id order.
Implementations§
Source§impl DatagramBuilder
impl DatagramBuilder
pub fn new( frame: u64, tick: u64, ack: u64, stream_tick: u64, precision: f32, ) -> Self
Sourcepub fn len_with(&self, id: EntityId, entry: &[u8]) -> usize
pub fn len_with(&self, id: EntityId, entry: &[u8]) -> usize
The datagram’s length if an update with entry (from
encode_entry_into) for id were added.
pub fn is_empty(&self) -> bool
Auto Trait Implementations§
impl Freeze for DatagramBuilder
impl RefUnwindSafe for DatagramBuilder
impl Send for DatagramBuilder
impl Sync for DatagramBuilder
impl Unpin for DatagramBuilder
impl UnsafeUnpin for DatagramBuilder
impl UnwindSafe for DatagramBuilder
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