#[repr(u32)]pub enum Condition {
Unknown = 0,
Accept = 1,
Reject = 2,
}
Expand description
Represents a bind rule condition.
Variants§
Implementations§
Trait Implementations§
Source§impl<D> Decode<Condition, D> for Conditionwhere
D: ResourceDialect,
impl<D> Decode<Condition, D> for Conditionwhere
D: ResourceDialect,
Source§impl Ord for Condition
impl Ord for Condition
Source§impl PartialOrd for Condition
impl PartialOrd for Condition
Source§impl TypeMarker for Condition
impl TypeMarker for Condition
Source§fn inline_align(_context: Context) -> usize
fn inline_align(_context: Context) -> usize
Returns the minimum required alignment of the inline portion of the
encoded object. It must be a (nonzero) power of two.
Source§fn inline_size(_context: Context) -> usize
fn inline_size(_context: Context) -> usize
Returns the size of the inline portion of the encoded object, including
padding for alignment. Must be a multiple of
inline_align
.Source§fn encode_is_copy() -> bool
fn encode_is_copy() -> bool
Returns true if the memory layout of
Self::Owned
matches the FIDL wire
format and encoding requires no validation. When true, we can optimize
encoding arrays and vectors of Self::Owned
to a single memcpy. Read moreSource§fn decode_is_copy() -> bool
fn decode_is_copy() -> bool
Returns true if the memory layout of
Self::Owned
matches the FIDL wire
format and decoding requires no validation. When true, we can optimize
decoding arrays and vectors of Self::Owned
to a single memcpy.Source§impl ValueTypeMarker for Condition
impl ValueTypeMarker for Condition
Source§type Borrowed<'a> = Condition
type Borrowed<'a> = Condition
The Rust type to use for encoding. This is a particular
Encode<Self>
type cheaply obtainable from &Self::Owned
. There are three cases: Read moreSource§fn borrow(
value: &<Condition as TypeMarker>::Owned,
) -> <Condition as ValueTypeMarker>::Borrowed<'_>
fn borrow( value: &<Condition as TypeMarker>::Owned, ) -> <Condition as ValueTypeMarker>::Borrowed<'_>
Cheaply converts from
&Self::Owned
to Self::Borrowed
.impl 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