[][src]Struct libra_secure_net::NetworkClient

pub struct NetworkClient { /* fields omitted */ }

Implementations

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
[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<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.