[][src]Struct libra_secure_net::NetworkServer

pub struct NetworkServer { /* fields omitted */ }

Implementations

impl NetworkServer[src]

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

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

If there isn't already a downstream client, it accepts. Otherwise it blocks 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]

If there isn't already a downstream client, it accepts. Otherwise it blocks until it is able to successfully send an entire message.

Auto Trait Implementations

impl RefUnwindSafe for NetworkServer

impl Send for NetworkServer

impl Sync for NetworkServer

impl Unpin for NetworkServer

impl UnwindSafe for NetworkServer

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.