pub struct BpfSockAddr<'a> { /* private fields */ }Trait Implementations§
Source§impl<'a> Deref for BpfSockAddr<'a>
impl<'a> Deref for BpfSockAddr<'a>
Source§impl<'a> DerefMut for BpfSockAddr<'a>
impl<'a> DerefMut for BpfSockAddr<'a>
Source§impl<'a> ProgramArgument for &mut BpfSockAddr<'a>
impl<'a> ProgramArgument for &mut BpfSockAddr<'a>
Source§fn get_type() -> &'static Type
fn get_type() -> &'static Type
Returns eBPF type that corresponds to
Self. Used when program argument types
are checked statically.Source§fn get_value_type(&self) -> Type
fn get_value_type(&self) -> Type
Returns eBPF type for a specific value of
Self. For most types this is the
same type that’s returned by get_type(), but that’s not always the case.
In particular for scalar values this will return Type::ScalarValue with
the actual value of the scalar and with unknown_mask = 0.Source§fn field_mappings() -> &'static [FieldMapping]
fn field_mappings() -> &'static [FieldMapping]
Returns the list of field mappings that should be applied with this argument.
If not empty then
get_type() must be a PtrToStruct.Source§fn struct_mapping() -> Option<StructMapping>
fn struct_mapping() -> Option<StructMapping>
Returns the
StructMapping that should be applied with this argument. Implementations
should override field_mappings() and keep default implementation of struct_mapping().Source§impl<'a, 'b> SocketCookieContext<&'a mut BpfSockAddr<'a>> for EbpfRunContextImpl<'b>
impl<'a, 'b> SocketCookieContext<&'a mut BpfSockAddr<'a>> for EbpfRunContextImpl<'b>
Auto Trait Implementations§
impl<'a> Freeze for BpfSockAddr<'a>
impl<'a> !RefUnwindSafe for BpfSockAddr<'a>
impl<'a> Send for BpfSockAddr<'a>
impl<'a> Sync for BpfSockAddr<'a>
impl<'a> Unpin for BpfSockAddr<'a>
impl<'a> !UnwindSafe for BpfSockAddr<'a>
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
Source§impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
Source§impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
§impl<T> InstanceFromServiceTransport<T> for T
impl<T> InstanceFromServiceTransport<T> for T
§fn from_service_transport(handle: T) -> T
fn from_service_transport(handle: T) -> T
Converts the given service transport handle of type
T to [Self]Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T, U> MultiArchFrom<T> for Uwhere
U: From<T>,
impl<T, U> MultiArchFrom<T> for Uwhere
U: From<T>,
§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T, U> TryIntoExt<U> for Twhere
U: TryFromExt<T>,
impl<T, U> TryIntoExt<U> for Twhere
U: TryFromExt<T>,
type Error = <U as TryFromExt<T>>::Error
§fn try_into_ext(self) -> Result<U, <T as TryIntoExt<U>>::Error>
fn try_into_ext(self) -> Result<U, <T as TryIntoExt<U>>::Error>
Tries to perform the conversion.