pub struct MapSchema {
pub type_: MapType,
pub key_size: u32,
pub value_size: u32,
pub max_entries: u32,
pub flags: MapFlags,
}Expand description
Schema of an eBPF map.
Fields§
§type_: MapTypeMap type.
key_size: u32Key size in bytes.
value_size: u32Value size in bytes.
max_entries: u32Maximum number of entries in the map.
flags: MapFlagsMap flags.
Trait Implementations§
Source§impl<D> Decode<MapSchema, D> for MapSchemawhere
D: ResourceDialect,
impl<D> Decode<MapSchema, D> for MapSchemawhere
D: ResourceDialect,
Source§impl Ord for MapSchema
impl Ord for MapSchema
Source§impl PartialOrd for MapSchema
impl PartialOrd for MapSchema
Source§impl TypeMarker for MapSchema
impl TypeMarker for MapSchema
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 MapSchema
impl ValueTypeMarker for MapSchema
Source§type Borrowed<'a> = &'a MapSchema
type Borrowed<'a> = &'a MapSchema
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: &<MapSchema as TypeMarker>::Owned,
) -> <MapSchema as ValueTypeMarker>::Borrowed<'_>
fn borrow( value: &<MapSchema as TypeMarker>::Owned, ) -> <MapSchema as ValueTypeMarker>::Borrowed<'_>
Cheaply converts from
&Self::Owned to Self::Borrowed.impl Copy for MapSchema
impl Eq for MapSchema
impl Persistable for MapSchema
impl StructuralPartialEq for MapSchema
Auto Trait Implementations§
impl Freeze for MapSchema
impl RefUnwindSafe for MapSchema
impl Send for MapSchema
impl Sync for MapSchema
impl Unpin for MapSchema
impl UnwindSafe for MapSchema
Blanket Implementations§
Source§impl<T> Body for Twhere
T: Persistable,
impl<T> Body for Twhere
T: Persistable,
Source§type MarkerAtTopLevel = T
type MarkerAtTopLevel = T
The marker type to use when the body is at the top-level.
Source§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