#[repr(C)]pub struct SetMark {
pub clearing_mask: u32,
pub mark: u32,
}
Fields§
§clearing_mask: u32
The bits specified by this mask are cleared out from the existing mark.
mark: u32
This value is combined with the result of the masking using a bitwise OR to get the final mark.
Trait Implementations§
Source§impl<D: ResourceDialect> Decode<SetMark, D> for SetMark
impl<D: ResourceDialect> Decode<SetMark, D> for SetMark
Source§impl<D: ResourceDialect, T0: Encode<u32, D>, T1: Encode<u32, D>> Encode<SetMark, D> for (T0, T1)
impl<D: ResourceDialect, T0: Encode<u32, D>, T1: Encode<u32, D>> Encode<SetMark, D> for (T0, T1)
Source§impl Ord for SetMark
impl Ord for SetMark
Source§impl PartialOrd for SetMark
impl PartialOrd for SetMark
Source§impl TypeMarker for SetMark
impl TypeMarker for SetMark
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 SetMark
impl ValueTypeMarker for SetMark
impl Copy for SetMark
impl Eq for SetMark
impl Persistable for SetMark
impl StructuralPartialEq for SetMark
Auto Trait Implementations§
impl Freeze for SetMark
impl RefUnwindSafe for SetMark
impl Send for SetMark
impl Sync for SetMark
impl Unpin for SetMark
impl UnwindSafe for SetMark
Blanket Implementations§
§impl<T> Body for Twhere
T: Persistable,
impl<T> Body for Twhere
T: Persistable,
§type MarkerAtTopLevel = T
type MarkerAtTopLevel = T
The marker type to use when the body is at the top-level.
§type MarkerInResultUnion = T
type MarkerInResultUnion = T
The marker type to use when the body is nested in a result union.
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