pub struct State {
pub scope_path: &'static str,
pub auth_base: String,
pub broker_base: String,
pub client: Client,
pub amqp: AmqpState,
pub mqtt: MqttState,
pub mq_conns: Arc<Mutex<HashMap<String, Connection>>>,
pub data_sender: Option<Queue>,
}
Expand description
The resources used by this service.
Fields§
§scope_path: &'static str
The scope root path for the service.
For example /coremgr
, the APIs are
http://host:port/coremgr/api/v1/user/xxx
http://host:port/coremgr/api/v1/unit/xxx
auth_base: String
The sylvia-iot-auth base API path with host.
For example, http://localhost:1080/auth
.
broker_base: String
The sylvia-iot-broker base API path with host.
For example, http://localhost:2080/broker
.
client: Client
The client for internal HTTP requests.
amqp: AmqpState
AMQP broker management information.
mqtt: MqttState
MQTT broker management information.
mq_conns: Arc<Mutex<HashMap<String, Connection>>>
Queue connections. Key is uri.
data_sender: Option<Queue>
Data channel sender.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for State
impl !RefUnwindSafe for State
impl Send for State
impl Sync for State
impl Unpin for State
impl !UnwindSafe for State
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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