[−][src]Struct neli::types::NlBuffer
A buffer of netlink messages.
Implementations
impl<T, P> NlBuffer<T, P>
[src]
pub fn new() -> Self
[src]
Create a new buffer of netlink messages.
pub fn push(&mut self, msg: Nlmsghdr<T, P>)
[src]
Add a new netlink message to the end of the buffer.
pub fn pop(&mut self) -> Option<Nlmsghdr<T, P>>
[src]
Get a netlink message from the end of the buffer.
pub fn iter(&self) -> Iter<'_, Nlmsghdr<T, P>>ⓘ
[src]
Return an iterator over immutable references to the elements in the buffer.
pub fn iter_mut(&mut self) -> IterMut<'_, Nlmsghdr<T, P>>ⓘ
[src]
Return an iterator over mutable references to the elements in the buffer.
pub fn len(&self) -> usize
[src]
Returns the number of elements in the buffer.
pub fn is_empty(&self) -> bool
[src]
Returns whether the number of elements in the buffer is 0.
Trait Implementations
impl<T, P> AsRef<[Nlmsghdr<T, P>]> for NlBuffer<T, P>
[src]
impl<T: Debug, P: Debug> Debug for NlBuffer<T, P>
[src]
impl<T, P> Default for NlBuffer<T, P>
[src]
impl<T, P> FromIterator<Nlmsghdr<T, P>> for NlBuffer<T, P>
[src]
pub fn from_iter<I>(i: I) -> Self where
I: IntoIterator<Item = Nlmsghdr<T, P>>,
[src]
I: IntoIterator<Item = Nlmsghdr<T, P>>,
impl<T, P> IntoIterator for NlBuffer<T, P>
[src]
type Item = Nlmsghdr<T, P>
The type of the elements being iterated over.
type IntoIter = <Vec<Nlmsghdr<T, P>> as IntoIterator>::IntoIter
Which kind of iterator are we turning this into?
pub fn into_iter(self) -> Self::IntoIter
[src]
impl<T, P> Nl for NlBuffer<T, P> where
T: NlType,
P: Nl,
[src]
T: NlType,
P: Nl,
pub fn serialize(&self, mem: SerBuffer<'_>) -> Result<(), SerError>
[src]
pub fn deserialize(mem: DeBuffer<'_>) -> Result<Self, DeError>
[src]
pub fn type_size() -> Option<usize>
[src]
pub fn size(&self) -> usize
[src]
pub fn type_asize() -> Option<usize>
[src]
pub fn asize(&self) -> usize
[src]
pub fn pad(&self, mem: SerBuffer<'_>) -> Result<(), SerError>
[src]
impl<T: PartialEq, P: PartialEq> PartialEq<NlBuffer<T, P>> for NlBuffer<T, P>
[src]
pub fn eq(&self, other: &NlBuffer<T, P>) -> bool
[src]
pub fn ne(&self, other: &NlBuffer<T, P>) -> bool
[src]
impl<T, P> StructuralPartialEq for NlBuffer<T, P>
[src]
Auto Trait Implementations
impl<T, P> RefUnwindSafe for NlBuffer<T, P> where
P: RefUnwindSafe,
T: RefUnwindSafe,
[src]
P: RefUnwindSafe,
T: RefUnwindSafe,
impl<T, P> Send for NlBuffer<T, P> where
P: Send,
T: Send,
[src]
P: Send,
T: Send,
impl<T, P> Sync for NlBuffer<T, P> where
P: Sync,
T: Sync,
[src]
P: Sync,
T: Sync,
impl<T, P> Unpin for NlBuffer<T, P> where
P: Unpin,
T: Unpin,
[src]
P: Unpin,
T: Unpin,
impl<T, P> UnwindSafe for NlBuffer<T, P> where
P: UnwindSafe,
T: UnwindSafe,
[src]
P: UnwindSafe,
T: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,