pub struct UnixBody {
pub data: Vec<u8>,
pub fds: Vec<FileDesc>,
}
Expand description
Body for the unix tranport.
The body includes data for a datagram, and a list of file descriptors to attach.
Fields§
§data: Vec<u8>
The contents for the datagram.
fds: Vec<FileDesc>
The file descriptors to attach.
Implementations§
Trait Implementations§
source§impl Body for UnixBody
impl Body for UnixBody
source§fn from_error(message: &str) -> Self
fn from_error(message: &str) -> Self
Create a message body from an error message.
source§fn into_error(self) -> Result<String, FromUtf8Error>
fn into_error(self) -> Result<String, FromUtf8Error>
Interpret a body as error message. Read more
source§impl<Data, FileDescs> From<(Data, FileDescs)> for UnixBody
impl<Data, FileDescs> From<(Data, FileDescs)> for UnixBody
source§fn from(other: (Data, FileDescs)) -> Self
fn from(other: (Data, FileDescs)) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl RefUnwindSafe for UnixBody
impl Send for UnixBody
impl Sync for UnixBody
impl Unpin for UnixBody
impl UnwindSafe for UnixBody
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