#[non_exhaustive]pub enum PipeMode {
Byte,
Message,
}展开描述
命名管道的管道模式。
通过 ServerOptions::pipe_mode 进行设置。
变体 (Non-exhaustive)§
This enum is marked as non-exhaustive
非穷尽枚举未来可能添加新的变体。因此,在对非穷尽枚举的变体进行模式匹配时,必须额外增加一个通配符分支以涵盖未来的新变体。
Byte
数据以字节流的形式写入管道。管道不区分不同写入操作期间写入的字节。
对应 PIPE_TYPE_BYTE。
Message
数据作为一连串消息写入管道。管道将每次写操作期间写入的字节作为一个消息单元。当一个消息未被完全读完时,对命名管道的任何读取将返回 ERROR_MORE_DATA。
Trait 实现§
impl Copy for PipeMode
impl Eq for PipeMode
impl StructuralPartialEq for PipeMode
自动 Trait 实现§
impl Freeze for PipeMode
impl RefUnwindSafe for PipeMode
impl Send for PipeMode
impl Sync for PipeMode
impl Unpin for PipeMode
impl UnsafeUnpin for PipeMode
impl UnwindSafe for PipeMode
Blanket 实现§
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. 更多信息