[−][src]Struct miow::pipe::NamedPipeBuilder
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]
&mut self,
attrs: *mut SECURITY_ATTRIBUTES
) -> Result<NamedPipe>
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
Auto Trait Implementations
impl RefUnwindSafe for NamedPipeBuilder
impl Send for NamedPipeBuilder
impl Sync for NamedPipeBuilder
impl Unpin for NamedPipeBuilder
impl UnwindSafe for NamedPipeBuilder
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,