Struct netlink_packet_xfrm::XfrmBuffer
source · pub struct XfrmBuffer<T> { /* private fields */ }
Implementations§
source§impl<T: AsRef<[u8]>> XfrmBuffer<T>
impl<T: AsRef<[u8]>> XfrmBuffer<T>
pub fn new(buffer: T) -> XfrmBuffer<T>
pub fn length(&self) -> usize
pub fn new_checked(buffer: T) -> Result<XfrmBuffer<T>, DecodeError>
Trait Implementations§
source§impl<'a, T: AsRef<[u8]> + ?Sized> ParseableParametrized<XfrmBuffer<&'a T>, u16> for XfrmMessage
impl<'a, T: AsRef<[u8]> + ?Sized> ParseableParametrized<XfrmBuffer<&'a T>, u16> for XfrmMessage
source§fn parse_with_param(
buf: &XfrmBuffer<&'a T>,
message_type: u16
) -> Result<Self, DecodeError>
fn parse_with_param( buf: &XfrmBuffer<&'a T>, message_type: u16 ) -> Result<Self, DecodeError>
Deserialize the current type.
Auto Trait Implementations§
impl<T> RefUnwindSafe for XfrmBuffer<T>where T: RefUnwindSafe,
impl<T> Send for XfrmBuffer<T>where T: Send,
impl<T> Sync for XfrmBuffer<T>where T: Sync,
impl<T> Unpin for XfrmBuffer<T>where T: Unpin,
impl<T> UnwindSafe for XfrmBuffer<T>where T: UnwindSafe,
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