Struct raptorq::ObjectTransmissionInformation
source · [−]pub struct ObjectTransmissionInformation { /* private fields */ }
Implementations
sourceimpl 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
sourceimpl Clone for ObjectTransmissionInformation
impl Clone for ObjectTransmissionInformation
sourcefn clone(&self) -> ObjectTransmissionInformation
fn clone(&self) -> ObjectTransmissionInformation
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 ObjectTransmissionInformation
impl Debug for ObjectTransmissionInformation
sourceimpl Hash for ObjectTransmissionInformation
impl Hash for ObjectTransmissionInformation
sourceimpl Ord for ObjectTransmissionInformation
impl Ord for ObjectTransmissionInformation
sourceimpl PartialEq<ObjectTransmissionInformation> for ObjectTransmissionInformation
impl PartialEq<ObjectTransmissionInformation> for ObjectTransmissionInformation
sourcefn 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 ==
. Read more
sourcefn ne(&self, other: &ObjectTransmissionInformation) -> bool
fn ne(&self, other: &ObjectTransmissionInformation) -> bool
This method tests for !=
.
sourceimpl PartialOrd<ObjectTransmissionInformation> for ObjectTransmissionInformation
impl PartialOrd<ObjectTransmissionInformation> for ObjectTransmissionInformation
sourcefn partial_cmp(&self, other: &ObjectTransmissionInformation) -> Option<Ordering>
fn partial_cmp(&self, other: &ObjectTransmissionInformation) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn 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 more
impl Copy for ObjectTransmissionInformation
impl Eq for ObjectTransmissionInformation
impl StructuralEq for ObjectTransmissionInformation
impl StructuralPartialEq for ObjectTransmissionInformation
Auto Trait Implementations
impl RefUnwindSafe for ObjectTransmissionInformation
impl Send for ObjectTransmissionInformation
impl Sync for ObjectTransmissionInformation
impl Unpin for ObjectTransmissionInformation
impl UnwindSafe for ObjectTransmissionInformation
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> 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