pub struct Netbuf {
pub maxlen: u32,
pub buf: Vec<u8>,
}Expand description
Transport address buffer (RFC 1833 sec. 2.1).
Used by RPCBPROC_UADDR2TADDR (returns a Netbuf for a universal address)
and RPCBPROC_TADDR2UADDR (takes a Netbuf, returns a universal address).
Fields§
§maxlen: u32Maximum buffer size the caller can accept.
buf: Vec<u8>The transport address bytes.
Trait Implementations§
Auto Trait Implementations§
impl Forget for Netbuf
impl Freeze for Netbuf
impl RefUnwindSafe for Netbuf
impl Send for Netbuf
impl Sync for Netbuf
impl Unpin for Netbuf
impl UnsafeUnpin for Netbuf
impl UnwindSafe for Netbuf
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