pub struct Paths {
pub core: TokenStream,
pub transport: TokenStream,
pub this: TokenStream,
pub marker: TokenStream,
}Expand description
The paths generated code names its crates by. A transport’s macro crate builds one: the core
is always ::ulo, which #[handlers] and __enhancer_specs! name too, so an application
depends on ulo directly. What the generated call reads besides the core is reached through
the transport crate, so an application needs no direct dependency on ulo-transport for what
a handler attribute generates.
Fields§
§core: TokenStream::ulo.
transport: TokenStreamThe path whose __private module supplies what the generated call names: Param and
controller, which extract each parameter and resolve the controller, and the reply probe
IntoReplyProbe with its arms ViaCallError, ViaBoxError and ViaValue.
Paths::new points it at ulo-transport as the transport crate re-exports it,
::ulo_http::__private::transport, whose probe converts a value through IntoReply<T>. A
transport whose answers that probe cannot convert points it at a crate of its own carrying
the same names: the RPC attributes at ::ulo_rpc, whose __private re-exports Param and
controller from ulo-transport beside its own probe, which also answers a bare
Serialize value and a stream; the WebSocket attribute at ::ulo_ws::__private::reply,
whose probe answers (), a Serialize value, a Frame and a stream.
this: TokenStreamThe transport crate itself: ::ulo_http.
marker: TokenStreamThe transport marker type: ::ulo_http::Http.