AddFdBuilder

Struct AddFdBuilder 

Source
pub struct AddFdBuilder<S: State = Empty> { /* private fields */ }
Expand description

Use builder syntax to set the inputs and finish with build().

Implementations§

Source§

impl<S: State> AddFdBuilder<S>

Source

pub fn build(self) -> AddFd
where S: IsComplete,

Finish building and return the requested object

Source

pub fn fd(self, value: usize) -> AddFdBuilder<SetFd<S>>
where S::Fd: IsUnset,

Required.

This option defines the file descriptor of which a duplicate is added to fd set. The file descriptor cannot be stdin, stdout, or stderr.

Source

pub fn set(self, value: usize) -> AddFdBuilder<SetSet<S>>
where S::Set: IsUnset,

Required.

This option defines the ID of the fd set to add the file descriptor to.

Source

pub fn opaque(self, value: String) -> AddFdBuilder<SetOpaque<S>>
where S::Opaque: IsUnset,

Optional (Some / Option setters).

This option defines a free-form string that can be used to describe fd.

Source

pub fn maybe_opaque(self, value: Option<String>) -> AddFdBuilder<SetOpaque<S>>
where S::Opaque: IsUnset,

Optional (Some / Option setters).

This option defines a free-form string that can be used to describe fd.

Auto Trait Implementations§

§

impl<S> Freeze for AddFdBuilder<S>

§

impl<S> RefUnwindSafe for AddFdBuilder<S>

§

impl<S> Send for AddFdBuilder<S>

§

impl<S> Sync for AddFdBuilder<S>

§

impl<S> Unpin for AddFdBuilder<S>

§

impl<S> UnwindSafe for AddFdBuilder<S>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.