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>
impl<S: State> AddFdBuilder<S>
Sourcepub fn build(self) -> AddFdwhere
S: IsComplete,
pub fn build(self) -> AddFdwhere
S: IsComplete,
Finish building and return the requested object
Sourcepub fn fd(self, value: usize) -> AddFdBuilder<SetFd<S>>where
S::Fd: IsUnset,
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.
Sourcepub fn set(self, value: usize) -> AddFdBuilder<SetSet<S>>where
S::Set: IsUnset,
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.
Sourcepub fn opaque(self, value: String) -> AddFdBuilder<SetOpaque<S>>where
S::Opaque: IsUnset,
pub fn opaque(self, value: String) -> AddFdBuilder<SetOpaque<S>>where
S::Opaque: IsUnset,
Sourcepub fn maybe_opaque(self, value: Option<String>) -> AddFdBuilder<SetOpaque<S>>where
S::Opaque: IsUnset,
pub fn maybe_opaque(self, value: Option<String>) -> AddFdBuilder<SetOpaque<S>>where
S::Opaque: IsUnset,
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> 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