pub enum StartResult {
Simple {
id: InterfaceId,
info: InterfaceInfo,
writer: Box<dyn Writer>,
interface_type_name: String,
},
Listener,
Multi(Vec<SubInterface>),
}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.)
Multi(Vec<SubInterface>)
Multiple subinterfaces from one config (RNode).
Auto Trait Implementations§
impl Freeze for StartResult
impl !RefUnwindSafe for StartResult
impl Send for StartResult
impl !Sync for StartResult
impl Unpin for StartResult
impl UnsafeUnpin for StartResult
impl !UnwindSafe 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
Source§impl<T> InterfaceConfigData for Twhere
T: Send + 'static,
impl<T> InterfaceConfigData for Twhere
T: Send + 'static,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more