Struct capnp::MessageSize
source · pub struct MessageSize {
pub word_count: u64,
pub cap_count: u32,
}
Expand description
Size of a message. Every generated struct has a method .total_size()
that returns this.
Fields§
§word_count: u64
§cap_count: u32
Size of the capability table.
Trait Implementations§
source§impl AddAssign for MessageSize
impl AddAssign for MessageSize
source§fn add_assign(&mut self, rhs: Self)
fn add_assign(&mut self, rhs: Self)
Performs the
+=
operation. Read moresource§impl Clone for MessageSize
impl Clone for MessageSize
source§fn clone(&self) -> MessageSize
fn clone(&self) -> MessageSize
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 moresource§impl Debug for MessageSize
impl Debug for MessageSize
source§impl PartialEq for MessageSize
impl PartialEq for MessageSize
source§fn eq(&self, other: &MessageSize) -> bool
fn eq(&self, other: &MessageSize) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for MessageSize
impl StructuralPartialEq for MessageSize
Auto Trait Implementations§
impl RefUnwindSafe for MessageSize
impl Send for MessageSize
impl Sync for MessageSize
impl Unpin for MessageSize
impl UnwindSafe for MessageSize
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