pub struct ChannelBandwidth { /* private fields */ }Expand description
The wire type corresponding to ChannelBandwidth.
Implementations§
Source§impl ChannelBandwidth
impl ChannelBandwidth
pub const CBW20: ChannelBandwidth
pub const CBW40: ChannelBandwidth
pub const CBW40_BELOW: ChannelBandwidth
pub const CBW80: ChannelBandwidth
pub const CBW160: ChannelBandwidth
pub const CBW80_P80: ChannelBandwidth
Trait Implementations§
Source§impl Clone for ChannelBandwidth
impl Clone for ChannelBandwidth
Source§fn clone(&self) -> ChannelBandwidth
fn clone(&self) -> ChannelBandwidth
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 moreSource§impl Constrained for ChannelBandwidth
impl Constrained for ChannelBandwidth
Source§type Constraint = ()
type Constraint = ()
Type of constraint information for this type.
Source§fn validate(
_: Slot<'_, ChannelBandwidth>,
_: <ChannelBandwidth as Constrained>::Constraint,
) -> Result<(), ValidationError>
fn validate( _: Slot<'_, ChannelBandwidth>, _: <ChannelBandwidth as Constrained>::Constraint, ) -> Result<(), ValidationError>
Validate a slot of this type against a constraint. Can be called when
pointers/envelopes are just presence markers.
Source§impl Debug for ChannelBandwidth
impl Debug for ChannelBandwidth
Source§impl<___D> Decode<___D> for ChannelBandwidthwhere
___D: ?Sized,
impl<___D> Decode<___D> for ChannelBandwidthwhere
___D: ?Sized,
Source§impl<'a, ___E> Encode<ChannelBandwidth, ___E> for &'a ChannelBandwidthwhere
___E: ?Sized,
impl<'a, ___E> Encode<ChannelBandwidth, ___E> for &'a ChannelBandwidthwhere
___E: ?Sized,
Source§fn encode(
self,
encoder: &mut ___E,
out: &mut MaybeUninit<ChannelBandwidth>,
_: (),
) -> Result<(), EncodeError>
fn encode( self, encoder: &mut ___E, out: &mut MaybeUninit<ChannelBandwidth>, _: (), ) -> Result<(), EncodeError>
Encodes this value into an encoder and output.
§const COPY_OPTIMIZATION: CopyOptimization<Self, W> = _
const COPY_OPTIMIZATION: CopyOptimization<Self, W> = _
Source§impl<___E> Encode<ChannelBandwidth, ___E> for ChannelBandwidthwhere
___E: ?Sized,
impl<___E> Encode<ChannelBandwidth, ___E> for ChannelBandwidthwhere
___E: ?Sized,
Source§fn encode(
self,
encoder: &mut ___E,
out: &mut MaybeUninit<ChannelBandwidth>,
_: (),
) -> Result<(), EncodeError>
fn encode( self, encoder: &mut ___E, out: &mut MaybeUninit<ChannelBandwidth>, _: (), ) -> Result<(), EncodeError>
Encodes this value into an encoder and output.
§const COPY_OPTIMIZATION: CopyOptimization<Self, W> = _
const COPY_OPTIMIZATION: CopyOptimization<Self, W> = _
Source§impl From<ChannelBandwidth> for ChannelBandwidth
impl From<ChannelBandwidth> for ChannelBandwidth
Source§fn from(wire: ChannelBandwidth) -> ChannelBandwidth
fn from(wire: ChannelBandwidth) -> ChannelBandwidth
Converts to this type from the input type.
Source§impl From<ChannelBandwidth> for ChannelBandwidth
impl From<ChannelBandwidth> for ChannelBandwidth
Source§fn from(natural: ChannelBandwidth) -> ChannelBandwidth
fn from(natural: ChannelBandwidth) -> ChannelBandwidth
Converts to this type from the input type.
Source§impl FromWire<ChannelBandwidth> for ChannelBandwidth
impl FromWire<ChannelBandwidth> for ChannelBandwidth
Source§fn from_wire(wire: ChannelBandwidth) -> ChannelBandwidth
fn from_wire(wire: ChannelBandwidth) -> ChannelBandwidth
Converts the given owned value to this type.
§const COPY_OPTIMIZATION: CopyOptimization<W, Self> = _
const COPY_OPTIMIZATION: CopyOptimization<W, Self> = _
Source§impl FromWireRef<ChannelBandwidth> for ChannelBandwidth
impl FromWireRef<ChannelBandwidth> for ChannelBandwidth
Source§fn from_wire_ref(wire: &ChannelBandwidth) -> ChannelBandwidth
fn from_wire_ref(wire: &ChannelBandwidth) -> ChannelBandwidth
Converts the given reference to this type.
Source§impl IntoNatural for ChannelBandwidth
impl IntoNatural for ChannelBandwidth
Source§type Natural = ChannelBandwidth
type Natural = ChannelBandwidth
A good default type for this wire type to convert into.
§fn into_natural(self) -> Self::Natural
fn into_natural(self) -> Self::Natural
Converts this type into its natural equivalent.
Source§impl PartialEq for ChannelBandwidth
impl PartialEq for ChannelBandwidth
Source§fn eq(&self, other: &ChannelBandwidth) -> bool
fn eq(&self, other: &ChannelBandwidth) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Wire for ChannelBandwidth
impl Wire for ChannelBandwidth
Source§type Narrowed<'de> = ChannelBandwidth
type Narrowed<'de> = ChannelBandwidth
The narrowed wire type, restricted to the
'de lifetime.Source§fn zero_padding(_: &mut MaybeUninit<ChannelBandwidth>)
fn zero_padding(_: &mut MaybeUninit<ChannelBandwidth>)
Writes zeroes to the padding for this type, if any.
impl Copy for ChannelBandwidth
impl Eq for ChannelBandwidth
impl StructuralPartialEq for ChannelBandwidth
Auto Trait Implementations§
impl Freeze for ChannelBandwidth
impl RefUnwindSafe for ChannelBandwidth
impl Send for ChannelBandwidth
impl Sync for ChannelBandwidth
impl Unpin for ChannelBandwidth
impl UnsafeUnpin for ChannelBandwidth
impl UnwindSafe for ChannelBandwidth
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> InstanceFromServiceTransport<T> for T
impl<T> InstanceFromServiceTransport<T> for T
§fn from_service_transport(handle: T) -> T
fn from_service_transport(handle: T) -> T
Converts the given service transport handle of type
T to [Self]