pub struct CommunicationStream { /* private fields */ }Implementations§
source§impl CommunicationStream
impl CommunicationStream
pub fn receive(&mut self) -> Result<(SocketAddr, Message)>
pub fn send(&mut self, to: SocketAddr, message: Message) -> Result<()>
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for CommunicationStream
impl Send for CommunicationStream
impl !Sync for CommunicationStream
impl Unpin for CommunicationStream
impl UnwindSafe for CommunicationStream
Blanket Implementations§
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