[−][src]Struct named_pipe::PipeOptions
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:
- open_mode -
Duplex
- in_buffer - 65536
- out_buffer - 65536
- first - true
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]
fn eq(&self, other: &PipeOptions) -> bool
[src]
fn ne(&self, other: &PipeOptions) -> bool
[src]
impl Clone for PipeOptions
[src]
fn clone(&self) -> 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]
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]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
impl<T, U> TryFrom for T where
T: From<U>,
[src]
T: From<U>,
type Error = !
🔬 This is a nightly-only experimental API. (
try_from
)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
fn get_type_id(&self) -> TypeId
[src]
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,