pub enum TransportPhases {
Disabled,
Enabled(PhasePolicy),
}Expand description
The transport phase posture of an adapter binding. disabled, the
default, keeps spec 009’s one undivided transport timeout.
Variants§
Disabled
Enabled(PhasePolicy)
Implementations§
Source§impl TransportPhases
impl TransportPhases
pub fn is_disabled(&self) -> bool
pub fn policy(&self) -> Option<&PhasePolicy>
Sourcepub fn validate(&self) -> Result<(), ZeroCeiling>
pub fn validate(&self) -> Result<(), ZeroCeiling>
Refuse an enabled policy with a zero ceiling.
Sourcepub fn cancel_budget(&self, budget: Budget) -> Budget
pub fn cancel_budget(&self, budget: Budget) -> Budget
The budget of a cancel exchange: budget, cut to the cancellation
acknowledgement ceiling when the policy is enabled.
Trait Implementations§
Source§impl Clone for TransportPhases
impl Clone for TransportPhases
impl Copy for TransportPhases
Source§impl Debug for TransportPhases
impl Debug for TransportPhases
Source§impl Default for TransportPhases
impl Default for TransportPhases
impl Eq for TransportPhases
Source§impl PartialEq for TransportPhases
impl PartialEq for TransportPhases
Source§impl Serialize for TransportPhases
impl Serialize for TransportPhases
impl StructuralPartialEq for TransportPhases
Auto Trait Implementations§
impl Freeze for TransportPhases
impl RefUnwindSafe for TransportPhases
impl Send for TransportPhases
impl Sync for TransportPhases
impl Unpin for TransportPhases
impl UnsafeUnpin for TransportPhases
impl UnwindSafe for TransportPhases
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