-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathactix-web.drawio
43 lines (43 loc) · 9.58 KB
/
actix-web.drawio
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
<mxfile host="app.diagrams.net" modified="2023-05-04T09:55:43.355Z" agent="Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/112.0.0.0 Safari/537.36" etag="w731kBIrT_UI0cnRp4bi" version="21.2.7" type="github">
<diagram id="C5RBs43oDa-KdzZeNtuy" name="Page-1">
<mxGraphModel dx="1222" dy="805" grid="1" gridSize="10" guides="1" tooltips="1" connect="1" arrows="1" fold="1" page="1" pageScale="1" pageWidth="827" pageHeight="1169" math="0" shadow="0">
<root>
<mxCell id="WIyWlLk6GJQsqaUBKTNV-0" />
<mxCell id="WIyWlLk6GJQsqaUBKTNV-1" parent="WIyWlLk6GJQsqaUBKTNV-0" />
<mxCell id="-cd-iUKpvVh5_6NBv5oS-0" value="HttpService" style="swimlane;fontStyle=1;align=center;verticalAlign=top;childLayout=stackLayout;horizontal=1;startSize=26;horizontalStack=0;resizeParent=1;resizeParentMax=0;resizeLast=0;collapsible=1;marginBottom=0;whiteSpace=wrap;html=1;" vertex="1" parent="WIyWlLk6GJQsqaUBKTNV-1">
<mxGeometry x="480" y="140" width="430" height="90" as="geometry" />
</mxCell>
<mxCell id="-cd-iUKpvVh5_6NBv5oS-1" value="+ field: type" style="text;strokeColor=none;fillColor=none;align=left;verticalAlign=top;spacingLeft=4;spacingRight=4;overflow=hidden;rotatable=0;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;whiteSpace=wrap;html=1;" vertex="1" parent="-cd-iUKpvVh5_6NBv5oS-0">
<mxGeometry y="26" width="430" height="26" as="geometry" />
</mxCell>
<mxCell id="-cd-iUKpvVh5_6NBv5oS-2" value="" style="line;strokeWidth=1;fillColor=none;align=left;verticalAlign=middle;spacingTop=-1;spacingLeft=3;spacingRight=3;rotatable=0;labelPosition=right;points=[];portConstraint=eastwest;strokeColor=inherit;" vertex="1" parent="-cd-iUKpvVh5_6NBv5oS-0">
<mxGeometry y="52" width="430" height="8" as="geometry" />
</mxCell>
<mxCell id="-cd-iUKpvVh5_6NBv5oS-3" value="+ new(f: F): Self" style="text;strokeColor=none;fillColor=none;align=left;verticalAlign=top;spacingLeft=4;spacingRight=4;overflow=hidden;rotatable=0;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;whiteSpace=wrap;html=1;" vertex="1" parent="-cd-iUKpvVh5_6NBv5oS-0">
<mxGeometry y="60" width="430" height="30" as="geometry" />
</mxCell>
<mxCell id="-cd-iUKpvVh5_6NBv5oS-4" value="<div>&nbsp; &nbsp; F: Fn() -&gt; I + Send + Clone + 'static,</div><div>&nbsp; &nbsp; I: IntoServiceFactory&lt;S, Request&gt;,</div><div><br></div><div>&nbsp; &nbsp; S: ServiceFactory&lt;Request, Config = AppConfig&gt; + 'static,</div><div>&nbsp; &nbsp; S::Error: Into&lt;Error&gt; + 'static,</div><div>&nbsp; &nbsp; S::InitError: fmt::Debug,</div><div>&nbsp; &nbsp; S::Response: Into&lt;Response&lt;B&gt;&gt; + 'static,</div><div>&nbsp; &nbsp; &lt;S::Service as Service&lt;Request&gt;&gt;::Future: 'static,</div><div>&nbsp; &nbsp; S::Service: 'static,</div><div><br></div><div>&nbsp; &nbsp; B: MessageBody + 'static,</div><div><br></div>" style="shape=note;whiteSpace=wrap;html=1;backgroundOutline=1;darkOpacity=0.05;align=left;" vertex="1" parent="WIyWlLk6GJQsqaUBKTNV-1">
<mxGeometry x="10" y="90" width="437" height="180" as="geometry" />
</mxCell>
<mxCell id="-cd-iUKpvVh5_6NBv5oS-7" value="<p style="margin:0px;margin-top:4px;text-align:center;"><i>&lt;&lt;Interface&gt;&gt;</i><br>ServiceFactory&lt;Req&gt;<br></p><p style="margin:0px;margin-left:4px;"><br></p><hr size="1"><p style="margin:0px;margin-left:4px;">+ fn <a style="font-family: &quot;Source Code Pro&quot;, monospace; font-size: 1em; background: transparent; box-sizing: border-box; text-decoration-line: none; color: rgb(154, 110, 49);" class="fnname" href="https://docs.rs/actix-service/latest/actix_service/trait.ServiceFactory.html#tymethod.new_service">new_service</a><span style="font-family: &quot;Source Code Pro&quot;, monospace; font-size: 1em; background-color: rgb(245, 245, 245);">(&amp;self, cfg: Self::</span><a style="font-family: &quot;Source Code Pro&quot;, monospace; font-size: 1em; background: transparent; box-sizing: border-box; text-decoration-line: none; color: rgb(186, 93, 0);" title="type actix_service::ServiceFactory::Config" href="https://docs.rs/actix-service/latest/actix_service/trait.ServiceFactory.html#associatedtype.Config" class="type">Config</a><span style="font-family: &quot;Source Code Pro&quot;, monospace; font-size: 1em; background-color: rgb(245, 245, 245);">) -&gt; Self::</span><a style="font-family: &quot;Source Code Pro&quot;, monospace; font-size: 1em; background: transparent; box-sizing: border-box; text-decoration-line: none; color: rgb(186, 93, 0);" title="type actix_service::ServiceFactory::Future" href="https://docs.rs/actix-service/latest/actix_service/trait.ServiceFactory.html#associatedtype.Future" class="type">Future</a><span style="font-family: &quot;Source Code Pro&quot;, monospace; font-size: 1em; background-color: rgb(245, 245, 245);">;</span></p>" style="verticalAlign=top;align=left;overflow=fill;fontSize=12;fontFamily=Helvetica;html=1;whiteSpace=wrap;" vertex="1" parent="WIyWlLk6GJQsqaUBKTNV-1">
<mxGeometry x="480" y="500" width="430" height="90" as="geometry" />
</mxCell>
<mxCell id="-cd-iUKpvVh5_6NBv5oS-8" value="<div><div>&nbsp; &nbsp; type Response;</div><div>&nbsp; &nbsp; type Error;</div><div>&nbsp; &nbsp; type Config;</div><div>&nbsp; &nbsp; type Service: Service&lt;Req, Response = Self::Response, Error = Self::Error&gt;;</div><div>&nbsp; &nbsp; type InitError;</div><div>&nbsp; &nbsp; type Future: Future&lt;Output = Result&lt;Self::Service, Self::InitError&gt;&gt;;</div></div>" style="shape=note;whiteSpace=wrap;html=1;backgroundOutline=1;darkOpacity=0.05;align=left;" vertex="1" parent="WIyWlLk6GJQsqaUBKTNV-1">
<mxGeometry x="13" y="490" width="437" height="100" as="geometry" />
</mxCell>
<mxCell id="-cd-iUKpvVh5_6NBv5oS-9" value="<p style="margin:0px;margin-top:4px;text-align:center;"><i>&lt;&lt;Interface&gt;&gt;</i><br>IntoServiceFactory&lt;Req&gt;<br></p><p style="margin:0px;margin-left:4px;"><br></p><hr size="1"><p style="margin:0px;margin-left:4px;">+&nbsp;fn <a style="font-family: &quot;Source Code Pro&quot;, monospace; font-size: 1em; background: transparent; box-sizing: border-box; text-decoration-line: none; color: rgb(154, 110, 49);" class="fnname" href="https://docs.rs/actix-service/2.0.2/actix_service/trait.IntoServiceFactory.html#tymethod.into_factory">into_factory</a><span style="font-family: &quot;Source Code Pro&quot;, monospace; font-size: 1em; background-color: rgb(245, 245, 245);">(self) -&gt; SF;</span></p>" style="verticalAlign=top;align=left;overflow=fill;fontSize=12;fontFamily=Helvetica;html=1;whiteSpace=wrap;" vertex="1" parent="WIyWlLk6GJQsqaUBKTNV-1">
<mxGeometry x="480" y="320" width="430" height="90" as="geometry" />
</mxCell>
<mxCell id="-cd-iUKpvVh5_6NBv5oS-10" value="SF: ServiceFactory&lt;Req&gt;" style="shape=note;whiteSpace=wrap;html=1;backgroundOutline=1;darkOpacity=0.05;align=left;" vertex="1" parent="WIyWlLk6GJQsqaUBKTNV-1">
<mxGeometry x="13" y="350" width="437" height="50" as="geometry" />
</mxCell>
<mxCell id="-cd-iUKpvVh5_6NBv5oS-11" value="<p style="margin:0px;margin-top:4px;text-align:center;"><i>&lt;&lt;Interface&gt;&gt;</i><br>Service&lt;Req&gt;<br></p><p style="margin:0px;margin-left:4px;"><br></p><hr size="1"><p style="margin:0px;margin-left:4px;">+&nbsp;fn poll_ready(&amp;self, ctx: &amp;mut Context&lt;'_&gt;) -&gt; Poll&lt;Result&lt;(), Self::Error&gt;&gt;;</p><p style="margin:0px;margin-left:4px;">+ fn call(&amp;self, req: Req) -&gt; Self::Future;</p>" style="verticalAlign=top;align=left;overflow=fill;fontSize=12;fontFamily=Helvetica;html=1;whiteSpace=wrap;" vertex="1" parent="WIyWlLk6GJQsqaUBKTNV-1">
<mxGeometry x="480" y="670" width="430" height="90" as="geometry" />
</mxCell>
<mxCell id="-cd-iUKpvVh5_6NBv5oS-12" value="<div>&nbsp; &nbsp; type Response;</div><div>&nbsp; &nbsp; type Error;</div><div>&nbsp; &nbsp; type Future: Future&lt;Output = Result&lt;Self::Response, Self::Error&gt;&gt;;</div>" style="shape=note;whiteSpace=wrap;html=1;backgroundOutline=1;darkOpacity=0.05;align=left;" vertex="1" parent="WIyWlLk6GJQsqaUBKTNV-1">
<mxGeometry x="10" y="660" width="440" height="100" as="geometry" />
</mxCell>
</root>
</mxGraphModel>
</diagram>
</mxfile>