pub struct ProtoTube(Tube);
Expand description
Wrapper for Tube used for sending and receiving protos - avoids extra overhead of serialization via serde_json. Since protos should be standalone objects we do not support sending of file descriptors as a normal Tube would.
Tuple Fields
0: Tube
Implementations
sourceimpl ProtoTube
impl ProtoTube
pub fn pair() -> Result<(ProtoTube, ProtoTube)>
pub fn send_proto<M: Message>(&self, msg: &M) -> Result<()>
pub fn recv_proto<M: Message>(&self) -> Result<M>
pub fn new_from_unix_seqpacket(sock: UnixSeqpacket) -> ProtoTube
Auto Trait Implementations
impl RefUnwindSafe for ProtoTube
impl Send for ProtoTube
impl Sync for ProtoTube
impl Unpin for ProtoTube
impl UnwindSafe for ProtoTube
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more