Struct naia_shared::MessageContainer
source · pub struct MessageContainer { /* private fields */ }
Implementations§
source§impl MessageContainer
impl MessageContainer
pub fn from_write( message: Box<dyn Message>, converter: &mut dyn LocalEntityAndGlobalEntityConverterMut, ) -> Self
pub fn from_read(message: Box<dyn Message>) -> Self
pub fn name(&self) -> String
pub fn bit_length(&self) -> u32
pub fn write( &self, message_kinds: &MessageKinds, writer: &mut dyn BitWrite, converter: &mut dyn LocalEntityAndGlobalEntityConverterMut, )
pub fn is_fragment(&self) -> bool
pub fn is_request_or_response(&self) -> bool
pub fn to_boxed_any(self) -> Box<dyn Any>
pub fn kind(&self) -> MessageKind
pub fn relations_waiting(&self) -> Option<HashSet<RemoteEntity>>
pub fn relations_complete( &mut self, converter: &dyn LocalEntityAndGlobalEntityConverter, )
Trait Implementations§
source§impl Clone for MessageContainer
impl Clone for MessageContainer
source§fn clone(&self) -> MessageContainer
fn clone(&self) -> MessageContainer
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 moreAuto Trait Implementations§
impl Freeze for MessageContainer
impl !RefUnwindSafe for MessageContainer
impl Send for MessageContainer
impl Sync for MessageContainer
impl Unpin for MessageContainer
impl !UnwindSafe for MessageContainer
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)