#[non_exhaustive]pub enum PipeMode {
Byte,
Message,
}展开描述
命名管道的管道模式。
通过 ServerOptions::pipe_mode 设置。
Variants (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 实现§
源代码§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
源代码§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. 更多信息