[][src]Struct named_pipe::PipeOptions

pub struct PipeOptions { /* fields omitted */ }

Options and flags which can be used to configure how a pipe is created.

This builder exposes the ability to configure how a ConnectingServer is created.

Builder defaults:

Methods

impl PipeOptions[src]

pub fn new<T: AsRef<OsStr>>(name: T) -> PipeOptions[src]

pub fn first(&mut self, val: bool) -> &mut PipeOptions[src]

Is this instance (or instances) will be first for this pipe name? Defaults to true.

pub fn open_mode(&mut self, val: OpenMode) -> &mut PipeOptions[src]

Open mode for pipe instance. Defaults to Duplex.

pub fn in_buffer(&mut self, val: u32) -> &mut PipeOptions[src]

Input buffer size for pipe instance. Defaults to 65536

pub fn out_buffer(&mut self, val: u32) -> &mut PipeOptions[src]

Output buffer size for pipe instance. Defaults to 65536.

pub fn single(&self) -> Result<ConnectingServer>[src]

Creates single instance of pipe with this options.

pub fn multiple(&self, num: u32) -> Result<Vec<ConnectingServer>>[src]

Creates multiple instances of pipe with this options.

Trait Implementations

impl PartialEq<PipeOptions> for PipeOptions[src]

impl Clone for PipeOptions[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl Eq for PipeOptions[src]

impl Debug for PipeOptions[src]

impl Hash for PipeOptions[src]

fn hash_slice<H>(data: &[Self], state: &mut H) where
    H: Hasher
1.3.0
[src]

Feeds a slice of this type into the given [Hasher]. Read more

Auto Trait Implementations

impl Send for PipeOptions

impl Sync for PipeOptions

Blanket Implementations

impl<T> From for T[src]

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

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

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

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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

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

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

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

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

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.