#[repr(u32)]pub enum PipeMode {
Bytes = 1,
Messages = 2,
}Available on Windows only.
Expand description
Specifies the mode for a pipe stream.
Variants§
Bytes = 1
Designates that the pipe stream works in byte stream mode, erasing the boundaries of separate messages.
Messages = 2
Designates that the pipe stream works in message stream mode, preserving the boundaries of separate messages yet still allowing to read them in byte stream mode.
Implementations§
Source§impl PipeMode
impl PipeMode
Sourcepub const fn to_pipe_type(self) -> u32
pub const fn to_pipe_type(self) -> u32
Converts the value into a raw DWORD-typed constant, either PIPE_TYPE_BYTE or PIPE_TYPE_MESSAGE depending on the value.
Sourcepub const fn to_readmode(self) -> u32
pub const fn to_readmode(self) -> u32
Converts the value into a raw DWORD-typed constant, either PIPE_READMODE_BYTE or PIPE_READMODE_MESSAGE depending on the value.
Trait Implementations§
Source§impl TryFrom<u32> for PipeMode
impl TryFrom<u32> for PipeMode
impl Copy for PipeMode
impl Eq for PipeMode
impl StructuralPartialEq for PipeMode
Auto Trait Implementations§
impl Freeze for PipeMode
impl RefUnwindSafe for PipeMode
impl Send for PipeMode
impl Sync for PipeMode
impl Unpin for PipeMode
impl UnwindSafe for PipeMode
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more