[][src]Struct nbd::client::NbdClient

pub struct NbdClient<IO: Write + Read> { /* fields omitted */ }

Represents NBD client. Use Read,Write and Seek trait methods, but make sure those are block-aligned

Implementations

impl<IO: Write + Read> NbdClient<IO>[src]

pub fn new(c: IO, export: &Export) -> Self[src]

Create new NbdClient from Export returned from handshake. Obviously, the c connection should be the same as in handshake.

Trait Implementations

impl<IO: Write + Read> NbdExt for NbdClient<IO>[src]

impl<IO: Write + Read> Read for NbdClient<IO>[src]

impl<IO: Write + Read> Seek for NbdClient<IO>[src]

impl<IO: Write + Read> Write for NbdClient<IO>[src]

Auto Trait Implementations

impl<IO> RefUnwindSafe for NbdClient<IO> where
    IO: RefUnwindSafe

impl<IO> Send for NbdClient<IO> where
    IO: Send

impl<IO> Sync for NbdClient<IO> where
    IO: Sync

impl<IO> Unpin for NbdClient<IO> where
    IO: Unpin

impl<IO> UnwindSafe for NbdClient<IO> where
    IO: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<R> ReadBytesExt for R where
    R: Read + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<W> WriteBytesExt for W where
    W: Write + ?Sized
[src]