pub struct MemoryLink { /* private fields */ }Expand description
An in-process byte link: one end of a bidirectional pipe between two connections.
pair makes two ends whose writes appear as the other’s reads, so two
Connections (or a Vehicle and a SitlAutopilot) exchange
frames with no socket and no hardware. A read awaits until bytes are available and reports
end of input once the other end is dropped, so the two ends can run as concurrent tasks the
way a real link’s peers do.
Implementations§
Source§impl MemoryLink
impl MemoryLink
Sourcepub fn pair() -> (MemoryLink, MemoryLink)
pub fn pair() -> (MemoryLink, MemoryLink)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for MemoryLink
impl RefUnwindSafe for MemoryLink
impl Send for MemoryLink
impl Sync for MemoryLink
impl Unpin for MemoryLink
impl UnsafeUnpin for MemoryLink
impl UnwindSafe for MemoryLink
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