Enum dtn7::core::bundlepack::Constraint [−][src]
pub enum Constraint { DispatchPending, ForwardPending, ReassemblyPending, Contraindicated, LocalEndpoint, Deleted, }
Expand description
Constraint is a retention constraint as defined in the subsections of the fifth chapter of draft-ietf-dtn-bpbis-12.
Variants
DispatchPending is assigned to a bundle if its dispatching is pending.
ForwardPending is assigned to a bundle if its forwarding is pending.
ReassemblyPending is assigned to a fragmented bundle if its reassembly is pending.
Contraindicated is assigned to a bundle if it could not be delivered and was moved to the contraindicated stage. This Constraint was not defined in draft-ietf-dtn-bpbis-12, but seemed reasonable for this implementation.
LocalEndpoint is assigned to a bundle after delivery to a local endpoint. This constraint demands storage until the endpoint removes this constraint.
This bundle has been deleted, only the meta data is kept to prevent resubmission in the future.
Trait Implementations
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations
impl RefUnwindSafe for Constraint
impl Send for Constraint
impl Sync for Constraint
impl Unpin for Constraint
impl UnwindSafe for Constraint
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
type Output = T
type Output = T
Should always be Self