pub enum StartResult {
Simple {
id: InterfaceId,
info: InterfaceInfo,
writer: Box<dyn Writer>,
interface_type_name: String,
control: Option<ListenerControl>,
},
Listener {
control: Option<ListenerControl>,
},
Multi {
subinterfaces: Vec<SubInterface>,
control: Option<ListenerControl>,
},
}Expand description
Result of starting an interface via a factory.
Variants§
Simple
One writer, registered immediately (TcpClient, Udp, Serial, etc.)
Listener
Spawns a listener; dynamic interfaces arrive via Event::InterfaceUp (TcpServer, Auto, I2P, etc.)
Fields
§
control: Option<ListenerControl>Multi
Multiple subinterfaces from one config (RNode).
Auto Trait Implementations§
impl !RefUnwindSafe for StartResult
impl !Sync for StartResult
impl !UnwindSafe for StartResult
impl Forget for StartResult
impl Freeze for StartResult
impl Send for StartResult
impl Unpin for StartResult
impl UnsafeUnpin for StartResult
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