[][src]Struct miow::pipe::NamedPipeBuilder

pub struct NamedPipeBuilder { /* fields omitted */ }

A builder structure for creating a new named pipe.

Implementations

impl NamedPipeBuilder[src]

pub fn new<A: AsRef<OsStr>>(addr: A) -> NamedPipeBuilder[src]

Creates a new named pipe builder with the default settings.

pub fn inbound(&mut self, allowed: bool) -> &mut Self[src]

Indicates whether data is allowed to flow from the client to the server.

pub fn outbound(&mut self, allowed: bool) -> &mut Self[src]

Indicates whether data is allowed to flow from the server to the client.

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

Indicates that this pipe must be the first instance.

If set to true, then creation will fail if there's already an instance elsewhere.

pub fn accept_remote(&mut self, accept: bool) -> &mut Self[src]

Indicates whether this server can accept remote clients or not.

pub fn max_instances(&mut self, instances: u8) -> &mut Self[src]

Specifies the maximum number of instances of the server pipe that are allowed.

The first instance of a pipe can specify this value. A value of 255 indicates that there is no limit to the number of instances.

pub fn out_buffer_size(&mut self, buffer: u32) -> &mut Self[src]

Specifies the number of bytes to reserver for the output buffer

pub fn in_buffer_size(&mut self, buffer: u32) -> &mut Self[src]

Specifies the number of bytes to reserver for the input buffer

pub fn create(&mut self) -> Result<NamedPipe>[src]

Using the options in this builder, attempt to create a new named pipe.

This function will call the CreateNamedPipe function and return the result.

pub unsafe fn with_security_attributes(
    &mut self,
    attrs: *mut SECURITY_ATTRIBUTES
) -> Result<NamedPipe>
[src]

Using the options in the builder and the provided security attributes, attempt to create a new named pipe. This function has to be called with a valid pointer to a SECURITY_ATTRIBUTES struct that will stay valid for the lifetime of this function or a null pointer.

This function will call the CreateNamedPipe function and return the result.

Trait Implementations

impl Debug for NamedPipeBuilder[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.