Struct raptorq::ObjectTransmissionInformation
source · pub struct ObjectTransmissionInformation { /* private fields */ }
Implementations§
source§impl ObjectTransmissionInformation
impl ObjectTransmissionInformation
pub fn new( transfer_length: u64, symbol_size: u16, source_blocks: u8, sub_blocks: u16, alignment: u8 ) -> ObjectTransmissionInformation
pub fn deserialize(data: &[u8; 12]) -> ObjectTransmissionInformation
pub fn serialize(&self) -> [u8; 12]
pub fn transfer_length(&self) -> u64
pub fn symbol_size(&self) -> u16
pub fn source_blocks(&self) -> u8
pub fn sub_blocks(&self) -> u16
pub fn symbol_alignment(&self) -> u8
pub fn with_defaults( transfer_length: u64, max_packet_size: u16 ) -> ObjectTransmissionInformation
Trait Implementations§
source§impl Clone for ObjectTransmissionInformation
impl Clone for ObjectTransmissionInformation
source§fn clone(&self) -> ObjectTransmissionInformation
fn clone(&self) -> ObjectTransmissionInformation
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 Hash for ObjectTransmissionInformation
impl Hash for ObjectTransmissionInformation
source§impl Ord for ObjectTransmissionInformation
impl Ord for ObjectTransmissionInformation
source§fn cmp(&self, other: &ObjectTransmissionInformation) -> Ordering
fn cmp(&self, other: &ObjectTransmissionInformation) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for ObjectTransmissionInformation
impl PartialEq for ObjectTransmissionInformation
source§fn eq(&self, other: &ObjectTransmissionInformation) -> bool
fn eq(&self, other: &ObjectTransmissionInformation) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for ObjectTransmissionInformation
impl PartialOrd for ObjectTransmissionInformation
source§fn partial_cmp(&self, other: &ObjectTransmissionInformation) -> Option<Ordering>
fn partial_cmp(&self, other: &ObjectTransmissionInformation) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for ObjectTransmissionInformation
impl Eq for ObjectTransmissionInformation
impl StructuralPartialEq for ObjectTransmissionInformation
Auto Trait Implementations§
impl Freeze for ObjectTransmissionInformation
impl RefUnwindSafe for ObjectTransmissionInformation
impl Send for ObjectTransmissionInformation
impl Sync for ObjectTransmissionInformation
impl Unpin for ObjectTransmissionInformation
impl UnwindSafe for ObjectTransmissionInformation
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