[][src]Struct libra_secure_net::NetworkClient

pub struct NetworkClient { /* fields omitted */ }


impl NetworkClient[src]

pub fn new(service: &'static str, server: SocketAddr, timeout_ms: u64) -> Self[src]

pub fn read(&mut self) -> Result<Vec<u8>, Error>[src]

Blocking read until able to successfully read an entire message

pub fn shutdown(&mut self) -> Result<(), Error>[src]

Shutdown the internal network stream

pub fn write(&mut self, data: &[u8]) -> Result<(), Error>[src]

Blocking write until able to successfully send an entire message

Auto Trait Implementations

impl RefUnwindSafe for NetworkClient

impl Send for NetworkClient

impl Sync for NetworkClient

impl Unpin for NetworkClient

impl UnwindSafe for NetworkClient

Blanket Implementations

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

impl<T> Borrow<T> for T where
    T: ?Sized

impl<T> BorrowMut<T> for T where
    T: ?Sized

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

impl<T, U> Into<U> for T where
    U: From<T>, 

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

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

The type returned in the event of a conversion error.