Struct tf_demo_parser::demo::message::packetentities::PacketEntitiesMessage
source · [−]pub struct PacketEntitiesMessage {
pub entities: Vec<PacketEntity>,
pub removed_entities: Vec<EntityId>,
pub max_entries: u16,
pub delta: Option<NonZeroU32>,
pub base_line: u8,
pub updated_base_line: bool,
}
Fields
entities: Vec<PacketEntity>
removed_entities: Vec<EntityId>
max_entries: u16
delta: Option<NonZeroU32>
base_line: u8
updated_base_line: bool
Implementations
sourceimpl PacketEntitiesMessage
impl PacketEntitiesMessage
pub fn read_update(
stream: &mut Stream<'_>,
send_table: &SendTable,
props: &mut Vec<SendProp>
) -> Result<()>
pub fn write_update<'a, Props: IntoIterator<Item = &'a SendProp>>(
props: Props,
stream: &mut BitWriteStream<'_, LittleEndian>,
send_table: &SendTable
) -> Result<()>
Trait Implementations
sourceimpl Clone for PacketEntitiesMessage
impl Clone for PacketEntitiesMessage
sourcefn clone(&self) -> PacketEntitiesMessage
fn clone(&self) -> PacketEntitiesMessage
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for PacketEntitiesMessage
impl Debug for PacketEntitiesMessage
sourceimpl<'de> Deserialize<'de> for PacketEntitiesMessage
impl<'de> Deserialize<'de> for PacketEntitiesMessage
sourcefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl Encode for PacketEntitiesMessage
impl Encode for PacketEntitiesMessage
fn encode(
&self,
stream: &mut BitWriteStream<'_, LittleEndian>,
state: &ParserState
) -> Result<()>
sourceimpl Parse<'_> for PacketEntitiesMessage
impl Parse<'_> for PacketEntitiesMessage
fn parse(stream: &mut Stream<'_>, state: &ParserState) -> Result<Self>
sourceimpl ParseBitSkip<'_> for PacketEntitiesMessage
impl ParseBitSkip<'_> for PacketEntitiesMessage
fn parse_skip(stream: &mut Stream<'_>, _state: &ParserState) -> Result<()>
sourceimpl PartialEq<PacketEntitiesMessage> for PacketEntitiesMessage
impl PartialEq<PacketEntitiesMessage> for PacketEntitiesMessage
sourcefn eq(&self, other: &PacketEntitiesMessage) -> bool
fn eq(&self, other: &PacketEntitiesMessage) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &PacketEntitiesMessage) -> bool
fn ne(&self, other: &PacketEntitiesMessage) -> bool
This method tests for !=
.
sourceimpl Serialize for PacketEntitiesMessage
impl Serialize for PacketEntitiesMessage
impl StructuralPartialEq for PacketEntitiesMessage
Auto Trait Implementations
impl RefUnwindSafe for PacketEntitiesMessage
impl Send for PacketEntitiesMessage
impl Sync for PacketEntitiesMessage
impl Unpin for PacketEntitiesMessage
impl UnwindSafe for PacketEntitiesMessage
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> IntoResult<T> for T
impl<T> IntoResult<T> for T
type Err = Infallible
pub fn into_result(self) -> Result<T, <T as IntoResult<T>>::Err>
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more