[][src]Struct fizyr_rpc::UnixBody

pub struct UnixBody {
    pub data: Vec<u8>,
    pub fds: Vec<FileDesc>,
}

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]

Create a new unix body with datagram contents and file descriptors to attach.

Trait Implementations

impl Body for UnixBody[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]

impl From<Box<[u8], Global>> for UnixBody[src]

impl From<Vec<u8, Global>> for UnixBody[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.