Struct cfdp::request::alloc_mod::PutRequestOwned

source ·
pub struct PutRequestOwned {
    pub destination_id: UnsignedByteField,
    pub trans_mode: Option<TransmissionMode>,
    pub closure_requested: Option<bool>,
    pub seg_ctrl: Option<SegmentationControl>,
    pub msgs_to_user: Option<Vec<TlvOwned>>,
    pub fault_handler_overrides: Option<Vec<TlvOwned>>,
    pub flow_label: Option<TlvOwned>,
    pub fs_requests: Option<Vec<TlvOwned>>,
    /* private fields */
}
Available on crate feature alloc only.
Expand description

Owned variant of PutRequest with no lifetimes which is also Cloneable.

Fields§

§destination_id: UnsignedByteField§trans_mode: Option<TransmissionMode>§closure_requested: Option<bool>§seg_ctrl: Option<SegmentationControl>§msgs_to_user: Option<Vec<TlvOwned>>§fault_handler_overrides: Option<Vec<TlvOwned>>§flow_label: Option<TlvOwned>§fs_requests: Option<Vec<TlvOwned>>

Implementations§

source§

impl PutRequestOwned

source

pub fn new_regular_request( dest_id: UnsignedByteField, source_file: &str, dest_file: &str, trans_mode: Option<TransmissionMode>, closure_requested: Option<bool>, ) -> Result<Self, FilePathTooLarge>

source

pub fn new_msgs_to_user_only( dest_id: UnsignedByteField, msgs_to_user: &[MsgToUserTlv<'_>], ) -> Result<Self, TlvWithInvalidType>

source

pub fn check_tlv_type_validities(&self) -> bool

Uses generic_tlv_list_type_check to check the TLV type validity of all TLV fields.

Trait Implementations§

source§

impl Clone for PutRequestOwned

source§

fn clone(&self) -> PutRequestOwned

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for PutRequestOwned

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<'de> Deserialize<'de> for PutRequestOwned

source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl Format for PutRequestOwned

source§

fn format(&self, f: Formatter<'_>)

Writes the defmt representation of self to fmt.
source§

impl From<PutRequest<'_, '_, '_, '_, '_, '_>> for PutRequestOwned

source§

fn from(req: PutRequest<'_, '_, '_, '_, '_, '_>) -> Self

Converts to this type from the input type.
source§

impl PartialEq for PutRequestOwned

source§

fn eq(&self, other: &PutRequestOwned) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl ReadablePutRequest for PutRequestOwned

source§

impl Serialize for PutRequestOwned

source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl Eq for PutRequestOwned

source§

impl StructuralPartialEq for PutRequestOwned

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> CloneToUninit for T
where T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

source§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for T
where T: Clone,

source§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,