pub struct NetworkBundle {
pub web_listener: TcpListener,
pub ws_listener: TcpListener,
pub web_addr: SocketAddr,
pub ws_addr: SocketAddr,
pub local_web_url: String,
pub hostname: String,
pub lan_discovery: Arc<LanDiscoveryController>,
pub lan_listeners: Arc<LanListenerSupervisor>,
pub lsp_supervisor: Arc<LspSupervisor>,
pub process_tracker: Arc<AgentProcessRegistry>,
pub process_broker: Arc<ProcessBroker>,
}Expand description
Output of bind_listeners_and_network.
Fields§
§web_listener: TcpListener§ws_listener: TcpListener§web_addr: SocketAddr§ws_addr: SocketAddr§local_web_url: String§hostname: StringOS hostname, resolved once here because LAN discovery needs it for its
mDNS TXT records. Carried on the bundle so build_app_state can put it
on AppState too, rather than resolving it a second time.
lan_discovery: Arc<LanDiscoveryController>§lan_listeners: Arc<LanListenerSupervisor>Owns the LAN-facing listeners so network:lan_discovery takes effect
live, instead of only at the next startup — see
backend::lan_listeners. Needs its router handed to it by main.rs
after build_router.
lsp_supervisor: Arc<LspSupervisor>§process_tracker: Arc<AgentProcessRegistry>§process_broker: Arc<ProcessBroker>Auto Trait Implementations§
impl !Freeze for NetworkBundle
impl !RefUnwindSafe for NetworkBundle
impl !UnwindSafe for NetworkBundle
impl Send for NetworkBundle
impl Sync for NetworkBundle
impl Unpin for NetworkBundle
impl UnsafeUnpin for NetworkBundle
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
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.§impl<T> DowncastSync for T
impl<T> DowncastSync for T
impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
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