zbus::connection::socket

Type Alias BoxedSplit

Source
pub type BoxedSplit = Split<Box<dyn ReadHalf>, Box<dyn WriteHalf>>;
Expand description

A boxed Split.

Aliased Type§

struct BoxedSplit { /* private fields */ }

Implementations

Source§

impl<R: ReadHalf, W: WriteHalf> Split<R, W>

Source

pub fn read(&self) -> &R

Reference to the read half.

Source

pub fn read_mut(&mut self) -> &mut R

Mutable reference to the read half.

Source

pub fn write(&self) -> &W

Reference to the write half.

Source

pub fn write_mut(&mut self) -> &mut W

Mutable reference to the write half.

Source

pub fn take(self) -> (R, W)

Take the read and write halves.

Trait Implementations§

Source§

impl<S: Socket> From<S> for BoxedSplit

Source§

fn from(socket: S) -> Self

Converts to this type from the input type.
Source§

impl<R: Debug + ReadHalf, W: Debug + WriteHalf> Debug for Split<R, W>

Source§

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

Formats the value using the given formatter. Read more