pub struct XdpProgramMapownerselector {
pub match_expressions: Option<Vec<XdpProgramMapownerselectorMatchExpressions>>,
pub match_labels: Option<BTreeMap<String, String>>,
}Expand description
MapOwnerSelector is used to select the loaded eBPF program this eBPF program will share a map with. The value is a label applied to the BpfProgram to select. The selector must resolve to exactly one instance of a BpfProgram on a given node or the eBPF program will not load.
Fields§
§match_expressions: Option<Vec<XdpProgramMapownerselectorMatchExpressions>>matchExpressions is a list of label selector requirements. The requirements are ANDed.
match_labels: Option<BTreeMap<String, String>>matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is “key”, the operator is “In”, and the values array contains only “value”. The requirements are ANDed.
Trait Implementations§
Source§impl Clone for XdpProgramMapownerselector
impl Clone for XdpProgramMapownerselector
Source§fn clone(&self) -> XdpProgramMapownerselector
fn clone(&self) -> XdpProgramMapownerselector
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for XdpProgramMapownerselector
impl Debug for XdpProgramMapownerselector
Source§impl Default for XdpProgramMapownerselector
impl Default for XdpProgramMapownerselector
Source§fn default() -> XdpProgramMapownerselector
fn default() -> XdpProgramMapownerselector
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for XdpProgramMapownerselector
impl<'de> Deserialize<'de> for XdpProgramMapownerselector
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for XdpProgramMapownerselector
Auto Trait Implementations§
impl Freeze for XdpProgramMapownerselector
impl RefUnwindSafe for XdpProgramMapownerselector
impl Send for XdpProgramMapownerselector
impl Sync for XdpProgramMapownerselector
impl Unpin for XdpProgramMapownerselector
impl UnwindSafe for XdpProgramMapownerselector
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