pub struct MeshConnection { /* private fields */ }Implementations§
Source§impl MeshConnection
impl MeshConnection
pub fn new(stream: UnixStream, agent_id: String) -> Self
pub async fn send_message(&mut self, message: &MeshMessage) -> Result<()>
pub async fn receive_message(&mut self) -> Result<Option<MeshMessage>>
Auto Trait Implementations§
impl !Freeze for MeshConnection
impl RefUnwindSafe for MeshConnection
impl Send for MeshConnection
impl Sync for MeshConnection
impl Unpin for MeshConnection
impl UnsafeUnpin for MeshConnection
impl UnwindSafe for MeshConnection
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