Skip to main content

SyncNineP

Trait SyncNineP 

Source
pub trait SyncNineP: NineP {
    // Provided methods
    fn write_to<W: Write>(&self, w: &mut W) -> Result<()> { ... }
    fn read_from<R: Read>(buf: &SharedBuf, r: &mut R) -> Result<Self> { ... }
}
Expand description

Synchronous IO support for reading and writing 9p messages

Provided Methods§

Source

fn write_to<W: Write>(&self, w: &mut W) -> Result<()>

Encode self as bytes for the 9p protocol and write to the given SyncStream.

Source

fn read_from<R: Read>(buf: &SharedBuf, r: &mut R) -> Result<Self>

Decode self from 9p protocol bytes coming from the given SyncStream.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl<T> SyncNineP for T
where T: NineP,