pub struct DirectionalIntentVolume<IS: InstrumentSpec> {
pub directional_intent: DirectionalIntent,
pub directionless_volume: DirectionlessVolume<IS>,
}Fields§
§directional_intent: DirectionalIntent§directionless_volume: DirectionlessVolume<IS>Implementations§
Source§impl<IS: InstrumentSpec> DirectionalIntentVolume<IS>
impl<IS: InstrumentSpec> DirectionalIntentVolume<IS>
pub fn from_volume_type_positive_unchecked(volume_type: IS::VolumeType) -> Self
pub fn from_volume_type_negative_unchecked(volume_type: IS::VolumeType) -> Self
pub fn as_flipped(&self) -> Self
pub fn as_volume_type_signed(&self) -> IS::VolumeType
Trait Implementations§
Source§impl<IS: InstrumentSpec> AddChecked<DirectionalIntentVolume<IS>, Result<DirectionalIntentVolume<IS>, FromVolumeTypeError>> for DirectionalIntentVolume<IS>
impl<IS: InstrumentSpec> AddChecked<DirectionalIntentVolume<IS>, Result<DirectionalIntentVolume<IS>, FromVolumeTypeError>> for DirectionalIntentVolume<IS>
fn add_checked( self, rhs: impl Borrow<DirectionalIntentVolume<IS>>, ) -> Result<DirectionalIntentVolume<IS>, FromVolumeTypeError>
Source§impl<IS: InstrumentSpec> AddChecked<DirectionalIntentVolume<IS>, Result<DirectionalIntentVolume<IS>, FromVolumeTypeError>> for &DirectionalIntentVolume<IS>
impl<IS: InstrumentSpec> AddChecked<DirectionalIntentVolume<IS>, Result<DirectionalIntentVolume<IS>, FromVolumeTypeError>> for &DirectionalIntentVolume<IS>
fn add_checked( self, rhs: impl Borrow<DirectionalIntentVolume<IS>>, ) -> Result<DirectionalIntentVolume<IS>, FromVolumeTypeError>
Source§impl<IS: InstrumentSpec> AddReleaseUnchecked<DirectionalIntentVolume<IS>, DirectionalIntentVolume<IS>, Result<DirectionalIntentVolume<IS>, FromVolumeTypeError>> for DirectionalIntentVolume<IS>
impl<IS: InstrumentSpec> AddReleaseUnchecked<DirectionalIntentVolume<IS>, DirectionalIntentVolume<IS>, Result<DirectionalIntentVolume<IS>, FromVolumeTypeError>> for DirectionalIntentVolume<IS>
fn add_release_unchecked(self, rhs: impl Borrow<Rhs>) -> CheckedOutputwhere
Self: Sized,
Source§impl<IS: InstrumentSpec> AddReleaseUnchecked<DirectionalIntentVolume<IS>, DirectionalIntentVolume<IS>, Result<DirectionalIntentVolume<IS>, FromVolumeTypeError>> for &DirectionalIntentVolume<IS>
impl<IS: InstrumentSpec> AddReleaseUnchecked<DirectionalIntentVolume<IS>, DirectionalIntentVolume<IS>, Result<DirectionalIntentVolume<IS>, FromVolumeTypeError>> for &DirectionalIntentVolume<IS>
fn add_release_unchecked(self, rhs: impl Borrow<Rhs>) -> CheckedOutputwhere
Self: Sized,
Source§impl<IS: InstrumentSpec> AddUnchecked for DirectionalIntentVolume<IS>
impl<IS: InstrumentSpec> AddUnchecked for DirectionalIntentVolume<IS>
fn add_unchecked( self, rhs: impl Borrow<DirectionalIntentVolume<IS>>, ) -> DirectionalIntentVolume<IS>
Source§impl<IS: InstrumentSpec> AddUnchecked<DirectionalIntentVolume<IS>, DirectionalIntentVolume<IS>> for &DirectionalIntentVolume<IS>
impl<IS: InstrumentSpec> AddUnchecked<DirectionalIntentVolume<IS>, DirectionalIntentVolume<IS>> for &DirectionalIntentVolume<IS>
fn add_unchecked( self, rhs: impl Borrow<DirectionalIntentVolume<IS>>, ) -> DirectionalIntentVolume<IS>
Source§impl<IS: Clone + InstrumentSpec> Clone for DirectionalIntentVolume<IS>
impl<IS: Clone + InstrumentSpec> Clone for DirectionalIntentVolume<IS>
Source§fn clone(&self) -> DirectionalIntentVolume<IS>
fn clone(&self) -> DirectionalIntentVolume<IS>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl<IS: Copy + InstrumentSpec> Copy for DirectionalIntentVolume<IS>
Source§impl<IS: Debug + InstrumentSpec> Debug for DirectionalIntentVolume<IS>
impl<IS: Debug + InstrumentSpec> Debug for DirectionalIntentVolume<IS>
impl<IS: Eq + InstrumentSpec> Eq for DirectionalIntentVolume<IS>
Source§impl<IS: InstrumentSpec> From<&AggressiveVolume<IS>> for DirectionalIntentVolume<IS>
impl<IS: InstrumentSpec> From<&AggressiveVolume<IS>> for DirectionalIntentVolume<IS>
Source§fn from(value: &AggressiveVolume<IS>) -> Self
fn from(value: &AggressiveVolume<IS>) -> Self
Converts to this type from the input type.
Source§impl<IS: InstrumentSpec> From<&RestingVolume<IS>> for DirectionalIntentVolume<IS>
impl<IS: InstrumentSpec> From<&RestingVolume<IS>> for DirectionalIntentVolume<IS>
Source§fn from(value: &RestingVolume<IS>) -> Self
fn from(value: &RestingVolume<IS>) -> Self
Converts to this type from the input type.
Source§impl<IS: InstrumentSpec> From<&Subpoints> for DirectionalIntentVolume<IS>
impl<IS: InstrumentSpec> From<&Subpoints> for DirectionalIntentVolume<IS>
Source§impl<IS: InstrumentSpec> From<&WholePoints> for DirectionalIntentVolume<IS>
impl<IS: InstrumentSpec> From<&WholePoints> for DirectionalIntentVolume<IS>
Source§fn from(value: &WholePoints) -> Self
fn from(value: &WholePoints) -> Self
Converts to this type from the input type.
Source§impl<IS: InstrumentSpec> From<AggressiveVolume<IS>> for DirectionalIntentVolume<IS>
impl<IS: InstrumentSpec> From<AggressiveVolume<IS>> for DirectionalIntentVolume<IS>
Source§fn from(value: AggressiveVolume<IS>) -> Self
fn from(value: AggressiveVolume<IS>) -> Self
Converts to this type from the input type.
Source§impl<IS: InstrumentSpec> From<DirectionalIntentVolume<IS>> for Result<DirectionalIntentVolume<IS>, FromVolumeTypeError>
impl<IS: InstrumentSpec> From<DirectionalIntentVolume<IS>> for Result<DirectionalIntentVolume<IS>, FromVolumeTypeError>
Source§fn from(value: DirectionalIntentVolume<IS>) -> Self
fn from(value: DirectionalIntentVolume<IS>) -> Self
Converts to this type from the input type.
Source§impl<IS: InstrumentSpec> From<RestingVolume<IS>> for DirectionalIntentVolume<IS>
impl<IS: InstrumentSpec> From<RestingVolume<IS>> for DirectionalIntentVolume<IS>
Source§fn from(value: RestingVolume<IS>) -> Self
fn from(value: RestingVolume<IS>) -> Self
Converts to this type from the input type.
Source§impl<IS: InstrumentSpec> From<Subpoints> for DirectionalIntentVolume<IS>
impl<IS: InstrumentSpec> From<Subpoints> for DirectionalIntentVolume<IS>
Source§impl<IS: InstrumentSpec> From<WholePoints> for DirectionalIntentVolume<IS>
impl<IS: InstrumentSpec> From<WholePoints> for DirectionalIntentVolume<IS>
Source§fn from(value: WholePoints) -> Self
fn from(value: WholePoints) -> Self
Converts to this type from the input type.
Source§impl<IS: InstrumentSpec> FromVolumeType<IS> for DirectionalIntentVolume<IS>
impl<IS: InstrumentSpec> FromVolumeType<IS> for DirectionalIntentVolume<IS>
fn from_volume_type_checked(
volume_type: impl Into<IS::VolumeType>,
) -> Result<Self, FromVolumeTypeError>where
Self: Sized,
fn from_volume_type_unchecked(volume_type: impl Into<IS::VolumeType>) -> Self
fn from_volume_type_unchecked_release(
volume_type: impl Into<IS::VolumeType>,
) -> Result<Self, FromVolumeTypeError>where
Self: Sized,
Source§impl<IS: Hash + InstrumentSpec> Hash for DirectionalIntentVolume<IS>
impl<IS: Hash + InstrumentSpec> Hash for DirectionalIntentVolume<IS>
Source§impl<IS: InstrumentSpec> Ord for DirectionalIntentVolume<IS>
impl<IS: InstrumentSpec> Ord for DirectionalIntentVolume<IS>
1.21.0 (const: unstable) · 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
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl<IS: PartialEq + InstrumentSpec> PartialEq for DirectionalIntentVolume<IS>
impl<IS: PartialEq + InstrumentSpec> PartialEq for DirectionalIntentVolume<IS>
Source§impl<IS: InstrumentSpec> PartialOrd for DirectionalIntentVolume<IS>
impl<IS: InstrumentSpec> PartialOrd for DirectionalIntentVolume<IS>
impl<IS: PartialEq + InstrumentSpec> StructuralPartialEq for DirectionalIntentVolume<IS>
Source§impl<IS: InstrumentSpec> SubChecked<DirectionalIntentVolume<IS>, Result<DirectionalIntentVolume<IS>, FromVolumeTypeError>> for DirectionalIntentVolume<IS>
impl<IS: InstrumentSpec> SubChecked<DirectionalIntentVolume<IS>, Result<DirectionalIntentVolume<IS>, FromVolumeTypeError>> for DirectionalIntentVolume<IS>
fn sub_checked( self, rhs: impl Borrow<DirectionalIntentVolume<IS>>, ) -> Result<DirectionalIntentVolume<IS>, FromVolumeTypeError>
Source§impl<IS: InstrumentSpec> SubChecked<DirectionalIntentVolume<IS>, Result<DirectionalIntentVolume<IS>, FromVolumeTypeError>> for &DirectionalIntentVolume<IS>
impl<IS: InstrumentSpec> SubChecked<DirectionalIntentVolume<IS>, Result<DirectionalIntentVolume<IS>, FromVolumeTypeError>> for &DirectionalIntentVolume<IS>
fn sub_checked( self, rhs: impl Borrow<DirectionalIntentVolume<IS>>, ) -> Result<DirectionalIntentVolume<IS>, FromVolumeTypeError>
Source§impl<IS: InstrumentSpec> SubReleaseUnchecked<DirectionalIntentVolume<IS>, DirectionalIntentVolume<IS>, Result<DirectionalIntentVolume<IS>, FromVolumeTypeError>> for DirectionalIntentVolume<IS>
impl<IS: InstrumentSpec> SubReleaseUnchecked<DirectionalIntentVolume<IS>, DirectionalIntentVolume<IS>, Result<DirectionalIntentVolume<IS>, FromVolumeTypeError>> for DirectionalIntentVolume<IS>
fn sub_release_unchecked(self, rhs: impl Borrow<Rhs>) -> CheckedOutputwhere
Self: Sized,
Source§impl<IS: InstrumentSpec> SubReleaseUnchecked<DirectionalIntentVolume<IS>, DirectionalIntentVolume<IS>, Result<DirectionalIntentVolume<IS>, FromVolumeTypeError>> for &DirectionalIntentVolume<IS>
impl<IS: InstrumentSpec> SubReleaseUnchecked<DirectionalIntentVolume<IS>, DirectionalIntentVolume<IS>, Result<DirectionalIntentVolume<IS>, FromVolumeTypeError>> for &DirectionalIntentVolume<IS>
fn sub_release_unchecked(self, rhs: impl Borrow<Rhs>) -> CheckedOutputwhere
Self: Sized,
Source§impl<IS: InstrumentSpec> SubUnchecked for DirectionalIntentVolume<IS>
impl<IS: InstrumentSpec> SubUnchecked for DirectionalIntentVolume<IS>
fn sub_unchecked( self, rhs: impl Borrow<DirectionalIntentVolume<IS>>, ) -> DirectionalIntentVolume<IS>
Source§impl<IS: InstrumentSpec> SubUnchecked<DirectionalIntentVolume<IS>, DirectionalIntentVolume<IS>> for &DirectionalIntentVolume<IS>
impl<IS: InstrumentSpec> SubUnchecked<DirectionalIntentVolume<IS>, DirectionalIntentVolume<IS>> for &DirectionalIntentVolume<IS>
fn sub_unchecked( self, rhs: impl Borrow<DirectionalIntentVolume<IS>>, ) -> DirectionalIntentVolume<IS>
Source§impl<IS: InstrumentSpec> VolumeConstruct<(DirectionalIntent, DirectionlessVolume<IS>), ()> for DirectionalIntentVolume<IS>
impl<IS: InstrumentSpec> VolumeConstruct<(DirectionalIntent, DirectionlessVolume<IS>), ()> for DirectionalIntentVolume<IS>
fn new_checked(
t: impl Into<(DirectionalIntent, DirectionlessVolume<IS>)>,
) -> Result<Self, ()>where
Self: Sized,
fn new_unchecked( t: impl Into<(DirectionalIntent, DirectionlessVolume<IS>)>, ) -> Self
fn new_unchecked_release(t: impl Into<T>) -> Selfwhere
Self: Sized,
Source§impl<IS: InstrumentSpec> ZeroableVolume for DirectionalIntentVolume<IS>
impl<IS: InstrumentSpec> ZeroableVolume for DirectionalIntentVolume<IS>
Auto Trait Implementations§
impl<IS> Freeze for DirectionalIntentVolume<IS>where
DirectionlessVolume<IS>: Freeze,
impl<IS> RefUnwindSafe for DirectionalIntentVolume<IS>where
DirectionlessVolume<IS>: RefUnwindSafe,
impl<IS> Send for DirectionalIntentVolume<IS>where
DirectionlessVolume<IS>: Send,
impl<IS> Sync for DirectionalIntentVolume<IS>where
DirectionlessVolume<IS>: Sync,
impl<IS> Unpin for DirectionalIntentVolume<IS>where
DirectionlessVolume<IS>: Unpin,
impl<IS> UnsafeUnpin for DirectionalIntentVolume<IS>where
DirectionlessVolume<IS>: UnsafeUnpin,
impl<IS> UnwindSafe for DirectionalIntentVolume<IS>where
DirectionlessVolume<IS>: UnwindSafe,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CheckedAs for T
impl<T> CheckedAs for T
Source§fn checked_as<Dst>(self) -> Option<Dst>where
T: CheckedCast<Dst>,
fn checked_as<Dst>(self) -> Option<Dst>where
T: CheckedCast<Dst>,
Casts the value.
Source§impl<Src, Dst> CheckedCastFrom<Src> for Dstwhere
Src: CheckedCast<Dst>,
impl<Src, Dst> CheckedCastFrom<Src> for Dstwhere
Src: CheckedCast<Dst>,
Source§fn checked_cast_from(src: Src) -> Option<Dst>
fn checked_cast_from(src: Src) -> Option<Dst>
Casts the value.
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<Src, Dst> LosslessTryInto<Dst> for Srcwhere
Dst: LosslessTryFrom<Src>,
impl<Src, Dst> LosslessTryInto<Dst> for Srcwhere
Dst: LosslessTryFrom<Src>,
Source§fn lossless_try_into(self) -> Option<Dst>
fn lossless_try_into(self) -> Option<Dst>
Performs the conversion.
Source§impl<Src, Dst> LossyInto<Dst> for Srcwhere
Dst: LossyFrom<Src>,
impl<Src, Dst> LossyInto<Dst> for Srcwhere
Dst: LossyFrom<Src>,
Source§fn lossy_into(self) -> Dst
fn lossy_into(self) -> Dst
Performs the conversion.
Source§impl<T> OverflowingAs for T
impl<T> OverflowingAs for T
Source§fn overflowing_as<Dst>(self) -> (Dst, bool)where
T: OverflowingCast<Dst>,
fn overflowing_as<Dst>(self) -> (Dst, bool)where
T: OverflowingCast<Dst>,
Casts the value.
Source§impl<Src, Dst> OverflowingCastFrom<Src> for Dstwhere
Src: OverflowingCast<Dst>,
impl<Src, Dst> OverflowingCastFrom<Src> for Dstwhere
Src: OverflowingCast<Dst>,
Source§fn overflowing_cast_from(src: Src) -> (Dst, bool)
fn overflowing_cast_from(src: Src) -> (Dst, bool)
Casts the value.
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
Source§impl<T> SaturatingAs for T
impl<T> SaturatingAs for T
Source§fn saturating_as<Dst>(self) -> Dstwhere
T: SaturatingCast<Dst>,
fn saturating_as<Dst>(self) -> Dstwhere
T: SaturatingCast<Dst>,
Casts the value.
Source§impl<Src, Dst> SaturatingCastFrom<Src> for Dstwhere
Src: SaturatingCast<Dst>,
impl<Src, Dst> SaturatingCastFrom<Src> for Dstwhere
Src: SaturatingCast<Dst>,
Source§fn saturating_cast_from(src: Src) -> Dst
fn saturating_cast_from(src: Src) -> Dst
Casts the value.
Source§impl<T> StrictAs for T
impl<T> StrictAs for T
Source§fn strict_as<Dst>(self) -> Dstwhere
T: StrictCast<Dst>,
fn strict_as<Dst>(self) -> Dstwhere
T: StrictCast<Dst>,
Casts the value.
Source§impl<Src, Dst> StrictCastFrom<Src> for Dstwhere
Src: StrictCast<Dst>,
impl<Src, Dst> StrictCastFrom<Src> for Dstwhere
Src: StrictCast<Dst>,
Source§fn strict_cast_from(src: Src) -> Dst
fn strict_cast_from(src: Src) -> Dst
Casts the value.
Source§impl<T> UnwrappedAs for T
impl<T> UnwrappedAs for T
Source§fn unwrapped_as<Dst>(self) -> Dstwhere
T: UnwrappedCast<Dst>,
fn unwrapped_as<Dst>(self) -> Dstwhere
T: UnwrappedCast<Dst>,
Casts the value.
Source§impl<Src, Dst> UnwrappedCastFrom<Src> for Dstwhere
Src: UnwrappedCast<Dst>,
impl<Src, Dst> UnwrappedCastFrom<Src> for Dstwhere
Src: UnwrappedCast<Dst>,
Source§fn unwrapped_cast_from(src: Src) -> Dst
fn unwrapped_cast_from(src: Src) -> Dst
Casts the value.
Source§impl<T> WithSubscriber for T
impl<T> WithSubscriber for T
Source§fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> ⓘ
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> ⓘ
Source§fn with_current_subscriber(self) -> WithDispatch<Self> ⓘ
fn with_current_subscriber(self) -> WithDispatch<Self> ⓘ
Source§impl<T> WrappingAs for T
impl<T> WrappingAs for T
Source§fn wrapping_as<Dst>(self) -> Dstwhere
T: WrappingCast<Dst>,
fn wrapping_as<Dst>(self) -> Dstwhere
T: WrappingCast<Dst>,
Casts the value.
Source§impl<Src, Dst> WrappingCastFrom<Src> for Dstwhere
Src: WrappingCast<Dst>,
impl<Src, Dst> WrappingCastFrom<Src> for Dstwhere
Src: WrappingCast<Dst>,
Source§fn wrapping_cast_from(src: Src) -> Dst
fn wrapping_cast_from(src: Src) -> Dst
Casts the value.