#[repr(u32)]pub enum Condition {
Unknown = 0,
Accept = 1,
Reject = 2,
}
Expand description
Represents a bind rule condition.
Variants§
Trait Implementations§
Source§impl Encodable for Condition
impl Encodable for Condition
Source§type Encoded = WireCondition
type Encoded = WireCondition
The wire type for the value.
§const COPY_OPTIMIZATION: CopyOptimization<Self> = _
const COPY_OPTIMIZATION: CopyOptimization<Self> = _
An optimization flag that allows the bytes of this type to be copied directly during
encoding instead of calling
encode
. Read moreSource§impl From<Condition> for WireCondition
impl From<Condition> for WireCondition
Source§impl From<WireCondition> for Condition
impl From<WireCondition> for Condition
Source§fn from(wire: WireCondition) -> Self
fn from(wire: WireCondition) -> Self
Converts to this type from the input type.
Source§impl TakeFrom<WireCondition> for Condition
impl TakeFrom<WireCondition> for Condition
Source§fn take_from(from: &WireCondition) -> Self
fn take_from(from: &WireCondition) -> Self
Converts from the given
T
, taking any resources that can’t be cloned.§const COPY_OPTIMIZATION: CopyOptimization<Self> = _
const COPY_OPTIMIZATION: CopyOptimization<Self> = _
An optimization flag that allows the bytes of this type to be copied directly during
conversion instead of calling
take_from
. Read moreimpl Copy for Condition
impl Eq for Condition
impl StructuralPartialEq for Condition
Auto Trait Implementations§
impl Freeze for Condition
impl RefUnwindSafe for Condition
impl Send for Condition
impl Sync for Condition
impl Unpin for Condition
impl UnwindSafe for Condition
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