Struct netlink::protocol_family::route::NetlinkRouteClient
source · pub struct NetlinkRouteClient(/* private fields */);
Expand description
A connection to the Route Netlink Protocol family.
Implementations§
source§impl NetlinkRouteClient
impl NetlinkRouteClient
sourcepub fn set_pid(&self, pid: NonZeroU32)
pub fn set_pid(&self, pid: NonZeroU32)
Sets the PID assigned to the client.
sourcepub fn add_membership(
&self,
group: ModernGroup
) -> Result<(), InvalidModernGroupError>
pub fn add_membership( &self, group: ModernGroup ) -> Result<(), InvalidModernGroupError>
Adds the given multicast group membership.
sourcepub fn del_membership(
&self,
group: ModernGroup
) -> Result<(), InvalidModernGroupError>
pub fn del_membership( &self, group: ModernGroup ) -> Result<(), InvalidModernGroupError>
Deletes the given multicast group membership.
sourcepub fn set_legacy_memberships(
&self,
legacy_memberships: LegacyGroups
) -> Result<(), InvalidLegacyGroupsError>
pub fn set_legacy_memberships( &self, legacy_memberships: LegacyGroups ) -> Result<(), InvalidLegacyGroupsError>
Sets the legacy multicast group memberships.
Auto Trait Implementations§
impl Freeze for NetlinkRouteClient
impl RefUnwindSafe for NetlinkRouteClient
impl Send for NetlinkRouteClient
impl Sync for NetlinkRouteClient
impl Unpin for NetlinkRouteClient
impl UnwindSafe for NetlinkRouteClient
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
§impl<T> Encode<Ambiguous1> for T
impl<T> Encode<Ambiguous1> for T
§impl<T> Encode<Ambiguous2> for T
impl<T> Encode<Ambiguous2> for T
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T> IntoAny for T
impl<T> IntoAny for 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.