pub struct Duplex<S: Object, R: Object> { /* private fields */ }Expand description
A side of a bidirectional channel.
S is the type of the objects this side sends via the channel and the other side receives, R
is the type of the objects the other side sends via the channel and this side receives.
Implementations§
Trait Implementations§
source§impl<S: Object, R: Object> From<Duplex<S, R>> for Duplex<S, R>
Available on crate feature tokio only.
impl<S: Object, R: Object> From<Duplex<S, R>> for Duplex<S, R>
Available on crate feature
tokio only.source§impl<S: Object, R: Object> From<Duplex<S, R>> for Duplex<S, R>
Available on crate feature tokio only.
impl<S: Object, R: Object> From<Duplex<S, R>> for Duplex<S, R>
Available on crate feature
tokio only.source§impl<S: Object, R: Object> FromRawFd for Duplex<S, R>
impl<S: Object, R: Object> FromRawFd for Duplex<S, R>
source§unsafe fn from_raw_fd(fd: RawFd) -> Self
unsafe fn from_raw_fd(fd: RawFd) -> Self
Constructs a new instance of
Self from the given raw file
descriptor. Read moresource§impl<S: Object, R: Object> IntoRawFd for Duplex<S, R>
impl<S: Object, R: Object> IntoRawFd for Duplex<S, R>
source§fn into_raw_fd(self) -> RawFd
fn into_raw_fd(self) -> RawFd
Consumes this object, returning the raw underlying file descriptor. Read more
source§impl<S: Object, R: Object> Object for Duplex<S, R>
impl<S: Object, R: Object> Object for Duplex<S, R>
fn serialize_self(&self, s: &mut Serializer)
fn deserialize_self(d: &mut Deserializer) -> Self
fn deserialize_on_heap<'serde>( &self, d: &mut Deserializer ) -> Box<dyn Object + 'serde>where Self: 'serde,
Auto Trait Implementations§
impl<S, R> RefUnwindSafe for Duplex<S, R>
impl<S, R> Send for Duplex<S, R>
impl<S, R> Sync for Duplex<S, R>
impl<S, R> Unpin for Duplex<S, R>
impl<S, R> UnwindSafe for Duplex<S, R>
Blanket Implementations§
source§impl<T> AsRawHandle for Twhere
T: AsRawFd,
impl<T> AsRawHandle for Twhere T: AsRawFd,
fn as_raw_handle(&self) -> RawHandle
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more