pub enum AnyLink {
Serial(SerialFrameLink<SerialStream>),
Ble(BleFrameLink),
Tcp(SerialFrameLink<TcpStream>),
Mesh(MeshFrameLink),
Unavailable,
}Expand description
Every transport this tool can open, as one type, so a REPL can move between them without the session being generic over the link.
Variants§
Serial(SerialFrameLink<SerialStream>)
Ble(BleFrameLink)
Tcp(SerialFrameLink<TcpStream>)
Ungated: a socket needs no driver crate, so every build can reach a bridged radio.
Mesh(MeshFrameLink)
Ungated too: the mesh is reached through whatever radio is already attached, so it needs no transport of its own.
Keeps the type inhabited in a build with no transport feature. Never constructed.
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for AnyLink
impl !RefUnwindSafe for AnyLink
impl Send for AnyLink
impl Sync for AnyLink
impl Unpin for AnyLink
impl !UnwindSafe for AnyLink
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more