[−][src]Struct fizyr_rpc::UnixBody
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
impl UnixBody
[src]
pub fn new<Data, FileDescs>(data: Data, fds: FileDescs) -> Self where
Vec<u8>: From<Data>,
Vec<FileDesc>: From<FileDescs>,
[src]
Vec<u8>: From<Data>,
Vec<FileDesc>: From<FileDescs>,
Create a new unix body with datagram contents and file descriptors to attach.
Trait Implementations
impl Body for UnixBody
[src]
fn from_error(message: &str) -> Self
[src]
impl<'a> From<&'a [u8]> for UnixBody
[src]
impl<Data, FileDescs> From<(Data, FileDescs)> for UnixBody where
Vec<u8>: From<Data>,
Vec<FileDesc>: From<FileDescs>,
[src]
Vec<u8>: From<Data>,
Vec<FileDesc>: From<FileDescs>,
impl From<Box<[u8], Global>> for UnixBody
[src]
impl From<Vec<u8, Global>> for UnixBody
[src]
Auto Trait Implementations
impl RefUnwindSafe for UnixBody
[src]
impl Send for UnixBody
[src]
impl Sync for UnixBody
[src]
impl Unpin for UnixBody
[src]
impl UnwindSafe for UnixBody
[src]
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>,