Struct miow::pipe::NamedPipeBuilder [−][src]
pub struct NamedPipeBuilder { /* fields omitted */ }
Expand description
A builder structure for creating a new named pipe.
Implementations
Creates a new named pipe builder with the default settings.
Indicates whether data is allowed to flow from the client to the server.
Indicates whether data is allowed to flow from the server to the client.
Indicates that this pipe must be the first instance.
If set to true, then creation will fail if there’s already an instance elsewhere.
Indicates whether this server can accept remote clients or not.
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.
Specifies the number of bytes to reserver for the output buffer
Specifies the number of bytes to reserver for the input buffer
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>
pub unsafe fn with_security_attributes(
&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.