pub type Oneshot = Oneshot<OwnedReadHalf, OwnedWriteHalf>;Expand description
Invoke and Accept implementation in terms of a single UnixStream.
Either Invoke::invoke or Accept::accept can only be called at most once
on Oneshot, repeated calls with return an error
Aliased Type§
pub struct Oneshot(/* private fields */);Implementations§
Trait Implementations§
Source§impl From<UnixStream> for Oneshot
impl From<UnixStream> for Oneshot
Source§fn from(stream: UnixStream) -> Self
fn from(stream: UnixStream) -> Self
Converts to this type from the input type.