pub struct RunningSgGateway {
pub gateway_name: Arc<str>,
pub reloader: Reloader<HttpRouterService>,
/* private fields */
}
Expand description
Fields§
§gateway_name: Arc<str>
§reloader: Reloader<HttpRouterService>
Implementations§
Source§impl RunningSgGateway
impl RunningSgGateway
pub async fn global_init(config: Config, signal: CancellationToken)
pub async fn global_reset()
pub fn global_store() -> Arc<Mutex<HashMap<String, RunningSgGateway>>>
pub fn global_save(gateway_name: impl Into<String>, gateway: RunningSgGateway)
pub fn global_remove(gateway_name: impl AsRef<str>) -> Option<RunningSgGateway>
pub fn global_update( gateway_name: impl AsRef<str>, http_routes: BTreeMap<String, SgHttpRoute>, ) -> Result<(), BoxError>
Sourcepub fn create(
config_item: ConfigItem,
cancel_token: CancellationToken,
) -> Result<Self, BoxError>
pub fn create( config_item: ConfigItem, cancel_token: CancellationToken, ) -> Result<Self, BoxError>
Start a gateway from plugins and http_routes
Trait Implementations§
Auto Trait Implementations§
impl Freeze for RunningSgGateway
impl RefUnwindSafe for RunningSgGateway
impl Send for RunningSgGateway
impl Sync for RunningSgGateway
impl Unpin for RunningSgGateway
impl UnwindSafe for RunningSgGateway
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> 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