Struct tiny_std::net::UnixStream

source ·
pub struct UnixStream(_);

Implementations§

source§

impl UnixStream

source

pub fn connect<P: AsUnixStr>(path: P, blocking: bool) -> Result<Self>

Creates and connects a non-blocking UnixStream at the specified path

Errors

Various OS errors relating to permissions, and missing paths

Trait Implementations§

source§

impl AsRawFd for UnixStream

source§

impl Debug for UnixStream

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Read for UnixStream

source§

fn read(&mut self, buf: &mut [u8]) -> Result<usize>

Read into to provided buffer Read more
source§

fn read_to_end(&mut self, buf: &mut Vec<u8>) -> Result<usize>

Reads to the end of this Reader, Read more
source§

fn read_to_string(&mut self, buf: &mut String) -> Result<usize>

Reads to the end of the provided buffer Read more
source§

fn read_exact(&mut self, buf: &mut [u8]) -> Result<()>

Reads exactly enough bytes to fill the buffer Read more
source§

fn read_buf(&mut self, buf: &mut ReadBuf<'_>) -> Result<()>

Reads into the provided ReadBuf Read more
source§

fn read_buf_exact(&mut self, buf: &mut ReadBuf<'_>) -> Result<()>

Reads exactly enough bytes to fill the ReadBuf Read more
source§

fn by_ref(&mut self) -> &mut Selfwhere Self: Sized,

Get this reader by mut ref Read more
source§

impl Write for UnixStream

source§

fn write(&mut self, buf: &[u8]) -> Result<usize>

Tries to write the contents of the provided buffer into this writer returning how many bytes were written. Read more
source§

fn flush(&mut self) -> Result<()>

Flushes this Writer Read more
source§

fn write_all(&mut self, buf: &[u8]) -> Result<()>

Writes the full buffer into this Writer Read more
source§

fn write_fmt(&mut self, fmt: Arguments<'_>) -> Result<()>

Writes format arguments into this Writer Read more
source§

fn by_ref(&mut self) -> &mut Selfwhere Self: Sized,

Get this Writer as a mutable reference

Auto Trait Implementations§

Blanket Implementations§

source§

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

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

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

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

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

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

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

§

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

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.