From 06d365ae0e3097595ae665dc27b23cada4ab3b31 Mon Sep 17 00:00:00 2001 From: Takaya Saeki Date: Thu, 22 Apr 2021 14:23:38 +0900 Subject: [PATCH] Merge pull request #21 from nullpo-head/revert-squash Revert squash Signed-off-by: Takaya Saeki --- dark.css | 2 +- implementors/core/clone/trait.Clone.js | 2 +- implementors/core/cmp/trait.Eq.js | 2 +- implementors/core/cmp/trait.PartialEq.js | 2 +- implementors/core/convert/trait.AsMut.js | 2 +- implementors/core/convert/trait.AsRef.js | 2 +- implementors/core/convert/trait.From.js | 2 +- implementors/core/default/trait.Default.js | 2 +- implementors/core/fmt/trait.Debug.js | 2 +- implementors/core/fmt/trait.Display.js | 2 +- implementors/core/hash/trait.Hash.js | 2 +- implementors/core/marker/trait.Copy.js | 2 +- implementors/core/marker/trait.Freeze.js | 2 +- implementors/core/marker/trait.Send.js | 2 +- .../core/marker/trait.StructuralEq.js | 2 +- .../core/marker/trait.StructuralPartialEq.js | 2 +- implementors/core/marker/trait.Sync.js | 2 +- implementors/core/marker/trait.Unpin.js | 2 +- implementors/core/ops/deref/trait.Deref.js | 2 +- implementors/core/ops/deref/trait.DerefMut.js | 2 +- implementors/std/error/trait.Error.js | 2 +- implementors/std/panic/trait.RefUnwindSafe.js | 2 +- implementors/std/panic/trait.UnwindSafe.js | 2 +- main.js | 4 +- proxy_wasm_experimental/all.html | 5 +- proxy_wasm_experimental/error/index.html | 7 +- .../error/struct.HostCallError.html | 35 ++++----- .../error/struct.HostResponseError.html | 33 +++++---- proxy_wasm_experimental/error/type.Error.html | 7 +- .../error/type.Result.html | 7 +- .../fn.proxy_abi_version_0_2_0.html | 5 +- .../fn.set_http_context.html | 5 +- proxy_wasm_experimental/fn.set_log_level.html | 5 +- .../fn.set_root_context.html | 5 +- .../fn.set_stream_context.html | 5 +- .../hostcalls/constant.NO_BODY.html | 7 +- .../hostcalls/constant.NO_HEADERS.html | 7 +- .../hostcalls/constant.NO_TRAILERS.html | 7 +- .../hostcalls/fn.add_map_value.html | 7 +- .../hostcalls/fn.close_stream.html | 7 +- .../hostcalls/fn.continue_stream.html | 7 +- .../hostcalls/fn.define_metric.html | 5 +- .../hostcalls/fn.dequeue_shared_queue.html | 7 +- .../hostcalls/fn.dispatch_http_call.html | 7 +- .../hostcalls/fn.done.html | 7 +- .../hostcalls/fn.enqueue_shared_queue.html | 7 +- .../hostcalls/fn.get_buffer.html | 7 +- .../hostcalls/fn.get_current_time.html | 7 +- .../hostcalls/fn.get_map.html | 7 +- .../hostcalls/fn.get_map_value.html | 7 +- .../hostcalls/fn.get_metric.html | 5 +- .../hostcalls/fn.get_property.html | 7 +- .../hostcalls/fn.get_shared_data.html | 7 +- .../hostcalls/fn.increment_metric.html | 5 +- proxy_wasm_experimental/hostcalls/fn.log.html | 7 +- .../hostcalls/fn.record_metric.html | 5 +- .../hostcalls/fn.register_shared_queue.html | 7 +- .../hostcalls/fn.resolve_shared_queue.html | 7 +- .../hostcalls/fn.send_http_response.html | 7 +- .../hostcalls/fn.set_buffer.html | 7 +- .../hostcalls/fn.set_effective_context.html | 7 +- .../hostcalls/fn.set_map.html | 7 +- .../hostcalls/fn.set_map_value.html | 7 +- .../hostcalls/fn.set_property.html | 7 +- .../hostcalls/fn.set_shared_data.html | 7 +- .../hostcalls/fn.set_tick_period.html | 7 +- proxy_wasm_experimental/hostcalls/index.html | 7 +- proxy_wasm_experimental/index.html | 7 +- proxy_wasm_experimental/traits/index.html | 7 +- .../traits/trait.Context.html | 7 +- .../traits/trait.HttpContext.html | 7 +- .../traits/trait.RootContext.html | 7 +- .../traits/trait.StreamContext.html | 7 +- .../types/enum.Action.html | 35 ++++----- .../types/enum.BufferType.html | 35 ++++----- .../types/enum.ContextType.html | 35 ++++----- .../types/enum.LogLevel.html | 35 ++++----- .../types/enum.MapType.html | 35 ++++----- .../types/enum.MetricType.html | 35 ++++----- .../types/enum.PeerType.html | 35 ++++----- .../types/enum.Status.html | 35 ++++----- .../types/enum.StreamType.html | 35 ++++----- proxy_wasm_experimental/types/index.html | 7 +- .../types/struct.ByteString.html | 73 ++++++++----------- .../types/type.NewHttpContext.html | 5 +- .../types/type.NewRootContext.html | 5 +- .../types/type.NewStreamContext.html | 5 +- rustdoc.css | 2 +- search-index.js | 2 +- settings.html | 3 +- source-script.js | 2 +- src/proxy_wasm_experimental/allocator.rs.html | 3 +- .../bytestring.rs.html | 3 +- .../dispatcher.rs.html | 3 +- src/proxy_wasm_experimental/error.rs.html | 3 +- src/proxy_wasm_experimental/hostcalls.rs.html | 3 +- src/proxy_wasm_experimental/lib.rs.html | 3 +- src/proxy_wasm_experimental/logger.rs.html | 3 +- src/proxy_wasm_experimental/traits.rs.html | 3 +- src/proxy_wasm_experimental/types.rs.html | 3 +- storage.js | 2 +- 101 files changed, 468 insertions(+), 407 deletions(-) diff --git a/dark.css b/dark.css index 85dec489..57e76d07 100644 --- a/dark.css +++ b/dark.css @@ -1 +1 @@ -body{background-color:#353535;color:#ddd;}h1,h2,h3:not(.impl):not(.method):not(.type):not(.tymethod),h4:not(.method):not(.type):not(.tymethod){color:#ddd;}h1.fqn{border-bottom-color:#d2d2d2;}h2,h3:not(.impl):not(.method):not(.type):not(.tymethod),h4:not(.method):not(.type):not(.tymethod){border-bottom-color:#d2d2d2;}.in-band{background-color:#353535;}.invisible{background:rgba(0,0,0,0);}.docblock code,.docblock-short code{background-color:#2A2A2A;}pre{background-color:#2A2A2A;}.sidebar{background-color:#505050;}.logo-container.rust-logo>img{filter:drop-shadow(1px 0 0px #fff) drop-shadow(0 1px 0 #fff) drop-shadow(-1px 0 0 #fff) drop-shadow(0 -1px 0 #fff)}*{scrollbar-color:rgb(64,65,67) #717171;}.sidebar{scrollbar-color:rgba(32,34,37,.6) transparent;}::-webkit-scrollbar-track{background-color:#717171;}::-webkit-scrollbar-thumb{background-color:rgba(32,34,37,.6);}.sidebar::-webkit-scrollbar-track{background-color:#717171;}.sidebar::-webkit-scrollbar-thumb{background-color:rgba(32,34,37,.6);}.sidebar .current{background-color:#333;}.source .sidebar{background-color:#353535;}.sidebar .location{border-color:#fff;background:#575757;color:#DDD;}.sidebar .version{border-bottom-color:#DDD;}.sidebar-title{border-top-color:#777;border-bottom-color:#777;}.block a:hover{background:#444;}.line-numbers span{color:#3B91E2;}.line-numbers .line-highlighted{background-color:#0a042f !important;}.docblock h1,.docblock h2,.docblock h3,.docblock h4,.docblock h5{border-bottom-color:#DDD;}.docblock table,.docblock table td,.docblock table th{border-color:#ddd;}.content .method .where,.content .fn .where,.content .where.fmt-newline{color:#ddd;}.content .highlighted{color:#eee !important;background-color:#616161;}.content .highlighted a,.content .highlighted span{color:#eee !important;}.content .highlighted.trait{background-color:#013191;}.content .highlighted.traitalias{background-color:#013191;}.content .highlighted.mod,.content .highlighted.externcrate{background-color:#afc6e4;}.content .highlighted.mod{background-color:#803a1b;}.content .highlighted.externcrate{background-color:#396bac;}.content .highlighted.enum{background-color:#5b4e68;}.content .highlighted.struct{background-color:#194e9f;}.content .highlighted.union{background-color:#b7bd49;}.content .highlighted.fn,.content .highlighted.method,.content .highlighted.tymethod{background-color:#4950ed;}.content .highlighted.type{background-color:#38902c;}.content .highlighted.foreigntype{background-color:#b200d6;}.content .highlighted.attr,.content .highlighted.derive,.content .highlighted.macro{background-color:#217d1c;}.content .highlighted.constant,.content .highlighted.static{background-color:#0063cc;}.content .highlighted.primitive{background-color:#00708a;}.content .highlighted.keyword{background-color:#884719;}.content .item-info::before{color:#ccc;}.content span.enum,.content a.enum,.block a.current.enum{color:#82b089;}.content span.struct,.content a.struct,.block a.current.struct{color:#2dbfb8;}.content span.type,.content a.type,.block a.current.type{color:#ff7f00;}.content span.foreigntype,.content a.foreigntype,.block a.current.foreigntype{color:#dd7de8;}.content span.attr,.content a.attr,.block a.current.attr,.content span.derive,.content a.derive,.block a.current.derive,.content span.macro,.content a.macro,.block a.current.macro{color:#09bd00;}.content span.union,.content a.union,.block a.current.union{color:#a6ae37;}.content span.constant,.content a.constant,.block a.current.constant,.content span.static,.content a.static,.block a.current.static{color:#82a5c9;}.content span.primitive,.content a.primitive,.block a.current.primitive{color:#43aec7;}.content span.externcrate,.content span.mod,.content a.mod,.block a.current.mod{color:#bda000;}.content span.trait,.content a.trait,.block a.current.trait{color:#b78cf2;}.content span.traitalias,.content a.traitalias,.block a.current.traitalias{color:#b397da;}.content span.fn,.content a.fn,.block a.current.fn,.content span.method,.content a.method,.block a.current.method,.content span.tymethod,.content a.tymethod,.block a.current.tymethod,.content .fnname{color:#2BAB63;}.content span.keyword,.content a.keyword,.block a.current.keyword{color:#de5249;}pre.rust .comment{color:#8d8d8b;}pre.rust .doccomment{color:#8ca375;}nav:not(.sidebar){border-bottom-color:#4e4e4e;}nav.main .current{border-top-color:#eee;border-bottom-color:#eee;}nav.main .separator{border-color:#eee;}a{color:#ddd;}.docblock:not(.type-decl) a:not(.srclink):not(.test-arrow),.docblock-short a:not(.srclink):not(.test-arrow),.item-info a,#help a{color:#D2991D;}a.test-arrow{color:#dedede;}.collapse-toggle{color:#999;}#crate-search{color:#111;background-color:#f0f0f0;border-color:#000;box-shadow:0 0 0 1px #000,0 0 0 2px transparent;}.search-input{color:#111;background-color:#f0f0f0;box-shadow:0 0 0 1px #000,0 0 0 2px transparent;}.search-input:focus{border-color:#008dfd;}.search-focus:disabled{background-color:#c5c4c4;}#crate-search+.search-input:focus{box-shadow:0 0 8px 4px #078dd8;}.module-item .stab{color:#ddd;}.stab.unstable{background:#FFF5D6;border-color:#FFC600;color:#2f2f2f;}.stab.deprecated{background:#F3DFFF;border-color:#7F0087;color:#2f2f2f;}.stab.portability{background:#C4ECFF;border-color:#7BA5DB;color:#2f2f2f;}.stab.portability>code{color:#ddd;}#help>div{background:#4d4d4d;border-color:#bfbfbf;}#help>div>span{border-bottom-color:#bfbfbf;}#help dt{border-color:#bfbfbf;background:rgba(0,0,0,0);color:black;}.since{color:grey;}tr.result span.primitive::after,tr.result span.keyword::after{color:#ddd;}.line-numbers :target{background-color:transparent;}pre.rust .kw{color:#ab8ac1;}pre.rust .kw-2,pre.rust .prelude-ty{color:#769acb;}pre.rust .number,pre.rust .string{color:#83a300;}pre.rust .self,pre.rust .bool-val,pre.rust .prelude-val,pre.rust .attribute,pre.rust .attribute .ident{color:#ee6868;}pre.rust .macro,pre.rust .macro-nonterminal{color:#3E999F;}pre.rust .lifetime{color:#d97f26;}pre.rust .question-mark{color:#ff9011;}.example-wrap>pre.line-number{border-color:#4a4949;}a.test-arrow{background-color:rgba(78,139,202,0.2);}a.test-arrow:hover{background-color:#4e8bca;}.toggle-label{color:#999;}:target>code,:target>.in-band{background-color:#494a3d;border-right:3px solid #bb7410;}pre.compile_fail{border-left:2px solid rgba(255,0,0,.8);}pre.compile_fail:hover,.information:hover+pre.compile_fail{border-left:2px solid #f00;}pre.should_panic{border-left:2px solid rgba(255,0,0,.8);}pre.should_panic:hover,.information:hover+pre.should_panic{border-left:2px solid #f00;}pre.ignore{border-left:2px solid rgba(255,142,0,.6);}pre.ignore:hover,.information:hover+pre.ignore{border-left:2px solid #ff9200;}.tooltip.compile_fail{color:rgba(255,0,0,.8);}.information>.compile_fail:hover{color:#f00;}.tooltip.should_panic{color:rgba(255,0,0,.8);}.information>.should_panic:hover{color:#f00;}.tooltip.ignore{color:rgba(255,142,0,.6);}.information>.ignore:hover{color:#ff9200;}.search-failed a{color:#0089ff;}.tooltip::after{background-color:#000;color:#fff;border-color:#000;}.tooltip::before{border-color:transparent black transparent transparent;}.notable-traits-tooltiptext{background-color:#111;border-color:#777;}#titles>button:not(.selected){background-color:#252525;border-top-color:#252525;}#titles>button:hover,#titles>button.selected{border-top-color:#0089ff;background-color:#353535;}#titles>button>div.count{color:#888;}@media (max-width:700px){.sidebar-menu{background-color:#505050;border-bottom-color:#e0e0e0;border-right-color:#e0e0e0;}.sidebar-elems{background-color:#505050;border-right-color:#000;}#sidebar-filler{background-color:#505050;border-bottom-color:#e0e0e0;}}kbd{color:#000;background-color:#fafbfc;border-color:#d1d5da;border-bottom-color:#c6cbd1;box-shadow-color:#c6cbd1;}#theme-picker,#settings-menu,.help-button{border-color:#e0e0e0;background:#f0f0f0;color:#000;}#theme-picker:hover,#theme-picker:focus,#settings-menu:hover,#settings-menu:focus,.help-button:hover,.help-button:focus{border-color:#ffb900;}#theme-choices{border-color:#e0e0e0;background-color:#353535;}#theme-choices>button:not(:first-child){border-top-color:#e0e0e0;}#theme-choices>button:hover,#theme-choices>button:focus{background-color:#4e4e4e;}@media (max-width:700px){#theme-picker{background:#f0f0f0;}}#all-types{background-color:#505050;}#all-types:hover{background-color:#606060;}.search-results td span.alias{color:#fff;}.search-results td span.grey{color:#ccc;}#sidebar-toggle{background-color:#565656;}#sidebar-toggle:hover{background-color:#676767;}#source-sidebar{background-color:#565656;}#source-sidebar>.title{border-bottom-color:#ccc;}div.files>a:hover,div.name:hover{background-color:#444;}div.files>.selected{background-color:#333;}.setting-line>.title{border-bottom-color:#ddd;} \ No newline at end of file +body{background-color:#353535;color:#ddd;}h1,h2,h3:not(.impl):not(.method):not(.type):not(.tymethod),h4:not(.method):not(.type):not(.tymethod){color:#ddd;}h1.fqn{border-bottom-color:#d2d2d2;}h2,h3:not(.impl):not(.method):not(.type):not(.tymethod),h4:not(.method):not(.type):not(.tymethod){border-bottom-color:#d2d2d2;}.in-band{background-color:#353535;}.invisible{background:rgba(0,0,0,0);}.docblock code,.docblock-short code{background-color:#2A2A2A;}pre{background-color:#2A2A2A;}.sidebar{background-color:#505050;}.logo-container.rust-logo>img{filter:drop-shadow(1px 0 0px #fff) drop-shadow(0 1px 0 #fff) drop-shadow(-1px 0 0 #fff) drop-shadow(0 -1px 0 #fff)}*{scrollbar-color:rgb(64,65,67) #717171;}.sidebar{scrollbar-color:rgba(32,34,37,.6) transparent;}::-webkit-scrollbar-track{background-color:#717171;}::-webkit-scrollbar-thumb{background-color:rgba(32,34,37,.6);}.sidebar::-webkit-scrollbar-track{background-color:#717171;}.sidebar::-webkit-scrollbar-thumb{background-color:rgba(32,34,37,.6);}.sidebar .current{background-color:#333;}.source .sidebar{background-color:#353535;}.sidebar .location{border-color:#fff;background:#575757;color:#DDD;}.sidebar .version{border-bottom-color:#DDD;}.sidebar-title{border-top-color:#777;border-bottom-color:#777;}.block a:hover{background:#444;}.line-numbers span{color:#3B91E2;}.line-numbers .line-highlighted{background-color:#0a042f !important;}.docblock h1,.docblock h2,.docblock h3,.docblock h4,.docblock h5{border-bottom-color:#DDD;}.docblock table,.docblock table td,.docblock table th{border-color:#ddd;}.content .method .where,.content .fn .where,.content .where.fmt-newline{color:#ddd;}.content .highlighted{color:#eee !important;background-color:#616161;}.content .highlighted a,.content .highlighted span{color:#eee !important;}.content .highlighted.trait{background-color:#013191;}.content .highlighted.traitalias{background-color:#013191;}.content .highlighted.mod,.content .highlighted.externcrate{background-color:#afc6e4;}.content .highlighted.mod{background-color:#803a1b;}.content .highlighted.externcrate{background-color:#396bac;}.content .highlighted.enum{background-color:#5b4e68;}.content .highlighted.struct{background-color:#194e9f;}.content .highlighted.union{background-color:#b7bd49;}.content .highlighted.fn,.content .highlighted.method,.content .highlighted.tymethod{background-color:#4950ed;}.content .highlighted.type{background-color:#38902c;}.content .highlighted.foreigntype{background-color:#b200d6;}.content .highlighted.attr,.content .highlighted.derive,.content .highlighted.macro{background-color:#217d1c;}.content .highlighted.constant,.content .highlighted.static{background-color:#0063cc;}.content .highlighted.primitive{background-color:#00708a;}.content .highlighted.keyword{background-color:#884719;}.content .item-info::before{color:#ccc;}.content span.enum,.content a.enum,.block a.current.enum{color:#82b089;}.content span.struct,.content a.struct,.block a.current.struct{color:#2dbfb8;}.content span.type,.content a.type,.block a.current.type{color:#ff7f00;}.content span.foreigntype,.content a.foreigntype,.block a.current.foreigntype{color:#dd7de8;}.content span.attr,.content a.attr,.block a.current.attr,.content span.derive,.content a.derive,.block a.current.derive,.content span.macro,.content a.macro,.block a.current.macro{color:#09bd00;}.content span.union,.content a.union,.block a.current.union{color:#a6ae37;}.content span.constant,.content a.constant,.block a.current.constant,.content span.static,.content a.static,.block a.current.static{color:#82a5c9;}.content span.primitive,.content a.primitive,.block a.current.primitive{color:#43aec7;}.content span.externcrate,.content span.mod,.content a.mod,.block a.current.mod{color:#bda000;}.content span.trait,.content a.trait,.block a.current.trait{color:#b78cf2;}.content span.traitalias,.content a.traitalias,.block a.current.traitalias{color:#b397da;}.content span.fn,.content a.fn,.block a.current.fn,.content span.method,.content a.method,.block a.current.method,.content span.tymethod,.content a.tymethod,.block a.current.tymethod,.content .fnname{color:#2BAB63;}.content span.keyword,.content a.keyword,.block a.current.keyword{color:#de5249;}pre.rust .comment{color:#8d8d8b;}pre.rust .doccomment{color:#8ca375;}nav:not(.sidebar){border-bottom-color:#4e4e4e;}nav.main .current{border-top-color:#eee;border-bottom-color:#eee;}nav.main .separator{border-color:#eee;}a{color:#ddd;}.docblock:not(.type-decl) a:not(.srclink):not(.test-arrow),.docblock-short a:not(.srclink):not(.test-arrow),.item-info a,#help a{color:#D2991D;}a.test-arrow{color:#dedede;}.collapse-toggle{color:#999;}#crate-search{color:#111;background-color:#f0f0f0;border-color:#000;box-shadow:0 0 0 1px #000,0 0 0 2px transparent;}.search-input{color:#111;background-color:#f0f0f0;box-shadow:0 0 0 1px #000,0 0 0 2px transparent;}.search-input:focus{border-color:#008dfd;}.search-focus:disabled{background-color:#c5c4c4;}#crate-search+.search-input:focus{box-shadow:0 0 8px 4px #078dd8;}.module-item .stab{color:#ddd;}.stab.unstable{background:#FFF5D6;border-color:#FFC600;color:#2f2f2f;}.stab.deprecated{background:#F3DFFF;border-color:#7F0087;color:#2f2f2f;}.stab.portability{background:#C4ECFF;border-color:#7BA5DB;color:#2f2f2f;}.stab.portability>code{color:#ddd;}#help>div{background:#4d4d4d;border-color:#bfbfbf;}#help>div>span{border-bottom-color:#bfbfbf;}#help dt{border-color:#bfbfbf;background:rgba(0,0,0,0);}.since{color:grey;}tr.result span.primitive::after,tr.result span.keyword::after{color:#ddd;}.line-numbers :target{background-color:transparent;}pre.rust .kw{color:#ab8ac1;}pre.rust .kw-2,pre.rust .prelude-ty{color:#769acb;}pre.rust .number,pre.rust .string{color:#83a300;}pre.rust .self,pre.rust .bool-val,pre.rust .prelude-val,pre.rust .attribute,pre.rust .attribute .ident{color:#ee6868;}pre.rust .macro,pre.rust .macro-nonterminal{color:#3E999F;}pre.rust .lifetime{color:#d97f26;}pre.rust .question-mark{color:#ff9011;}.example-wrap>pre.line-number{border-color:#4a4949;}a.test-arrow{background-color:rgba(78,139,202,0.2);}a.test-arrow:hover{background-color:#4e8bca;}.toggle-label{color:#999;}:target>code,:target>.in-band{background-color:#494a3d;border-right:3px solid #bb7410;}pre.compile_fail{border-left:2px solid rgba(255,0,0,.8);}pre.compile_fail:hover,.information:hover+pre.compile_fail{border-left:2px solid #f00;}pre.should_panic{border-left:2px solid rgba(255,0,0,.8);}pre.should_panic:hover,.information:hover+pre.should_panic{border-left:2px solid #f00;}pre.ignore{border-left:2px solid rgba(255,142,0,.6);}pre.ignore:hover,.information:hover+pre.ignore{border-left:2px solid #ff9200;}.tooltip.compile_fail{color:rgba(255,0,0,.8);}.information>.compile_fail:hover{color:#f00;}.tooltip.should_panic{color:rgba(255,0,0,.8);}.information>.should_panic:hover{color:#f00;}.tooltip.ignore{color:rgba(255,142,0,.6);}.information>.ignore:hover{color:#ff9200;}.search-failed a{color:#0089ff;}.tooltip::after{background-color:#000;color:#fff;border-color:#000;}.tooltip::before{border-color:transparent black transparent transparent;}.notable-traits-tooltiptext{background-color:#111;border-color:#777;}#titles>button:not(.selected){background-color:#252525;border-top-color:#252525;}#titles>button:hover,#titles>button.selected{border-top-color:#0089ff;background-color:#353535;}#titles>button>div.count{color:#888;}@media (max-width:700px){.sidebar-menu{background-color:#505050;border-bottom-color:#e0e0e0;border-right-color:#e0e0e0;}.sidebar-elems{background-color:#505050;border-right-color:#000;}#sidebar-filler{background-color:#505050;border-bottom-color:#e0e0e0;}}kbd{color:#000;background-color:#fafbfc;border-color:#d1d5da;border-bottom-color:#c6cbd1;box-shadow-color:#c6cbd1;}#theme-picker,#settings-menu,.help-button{border-color:#e0e0e0;background:#f0f0f0;color:#000;}#theme-picker:hover,#theme-picker:focus,#settings-menu:hover,#settings-menu:focus,.help-button:hover,.help-button:focus{border-color:#ffb900;}#theme-choices{border-color:#e0e0e0;background-color:#353535;}#theme-choices>button:not(:first-child){border-top-color:#e0e0e0;}#theme-choices>button:hover,#theme-choices>button:focus{background-color:#4e4e4e;}@media (max-width:700px){#theme-picker{background:#f0f0f0;}}#all-types{background-color:#505050;}#all-types:hover{background-color:#606060;}.search-results td span.alias{color:#fff;}.search-results td span.grey{color:#ccc;}#sidebar-toggle{background-color:#565656;}#sidebar-toggle:hover{background-color:#676767;}#source-sidebar{background-color:#565656;}#source-sidebar>.title{border-bottom-color:#ccc;}div.files>a:hover,div.name:hover{background-color:#444;}div.files>.selected{background-color:#333;}.setting-line>.title{border-bottom-color:#ddd;} \ No newline at end of file diff --git a/implementors/core/clone/trait.Clone.js b/implementors/core/clone/trait.Clone.js index 3e7b36d8..6d496c95 100644 --- a/implementors/core/clone/trait.Clone.js +++ b/implementors/core/clone/trait.Clone.js @@ -1,3 +1,3 @@ (function() {var implementors = {}; -implementors["proxy_wasm_experimental"] = [{"text":"impl Clone for LogLevel","synthetic":false,"types":[]},{"text":"impl Clone for Action","synthetic":false,"types":[]},{"text":"impl Clone for Status","synthetic":false,"types":[]},{"text":"impl Clone for ContextType","synthetic":false,"types":[]},{"text":"impl Clone for BufferType","synthetic":false,"types":[]},{"text":"impl Clone for MapType","synthetic":false,"types":[]},{"text":"impl Clone for PeerType","synthetic":false,"types":[]},{"text":"impl Clone for StreamType","synthetic":false,"types":[]},{"text":"impl Clone for MetricType","synthetic":false,"types":[]},{"text":"impl Clone for ByteString","synthetic":false,"types":[]}]; +implementors["proxy_wasm_experimental"] = [{"text":"impl Clone for LogLevel","synthetic":false,"types":["proxy_wasm_experimental::types::LogLevel"]},{"text":"impl Clone for Action","synthetic":false,"types":["proxy_wasm_experimental::types::Action"]},{"text":"impl Clone for Status","synthetic":false,"types":["proxy_wasm_experimental::types::Status"]},{"text":"impl Clone for ContextType","synthetic":false,"types":["proxy_wasm_experimental::types::ContextType"]},{"text":"impl Clone for BufferType","synthetic":false,"types":["proxy_wasm_experimental::types::BufferType"]},{"text":"impl Clone for MapType","synthetic":false,"types":["proxy_wasm_experimental::types::MapType"]},{"text":"impl Clone for PeerType","synthetic":false,"types":["proxy_wasm_experimental::types::PeerType"]},{"text":"impl Clone for StreamType","synthetic":false,"types":["proxy_wasm_experimental::types::StreamType"]},{"text":"impl Clone for MetricType","synthetic":false,"types":["proxy_wasm_experimental::types::MetricType"]},{"text":"impl Clone for ByteString","synthetic":false,"types":["proxy_wasm_experimental::bytestring::ByteString"]}]; if (window.register_implementors) {window.register_implementors(implementors);} else {window.pending_implementors = implementors;}})() \ No newline at end of file diff --git a/implementors/core/cmp/trait.Eq.js b/implementors/core/cmp/trait.Eq.js index 7eb6b7eb..f9825bac 100644 --- a/implementors/core/cmp/trait.Eq.js +++ b/implementors/core/cmp/trait.Eq.js @@ -1,3 +1,3 @@ (function() {var implementors = {}; -implementors["proxy_wasm_experimental"] = [{"text":"impl Eq for LogLevel","synthetic":false,"types":[]},{"text":"impl Eq for Action","synthetic":false,"types":[]},{"text":"impl Eq for Status","synthetic":false,"types":[]},{"text":"impl Eq for ContextType","synthetic":false,"types":[]},{"text":"impl Eq for BufferType","synthetic":false,"types":[]},{"text":"impl Eq for MapType","synthetic":false,"types":[]},{"text":"impl Eq for PeerType","synthetic":false,"types":[]},{"text":"impl Eq for StreamType","synthetic":false,"types":[]},{"text":"impl Eq for MetricType","synthetic":false,"types":[]},{"text":"impl Eq for ByteString","synthetic":false,"types":[]}]; +implementors["proxy_wasm_experimental"] = [{"text":"impl Eq for LogLevel","synthetic":false,"types":["proxy_wasm_experimental::types::LogLevel"]},{"text":"impl Eq for Action","synthetic":false,"types":["proxy_wasm_experimental::types::Action"]},{"text":"impl Eq for Status","synthetic":false,"types":["proxy_wasm_experimental::types::Status"]},{"text":"impl Eq for ContextType","synthetic":false,"types":["proxy_wasm_experimental::types::ContextType"]},{"text":"impl Eq for BufferType","synthetic":false,"types":["proxy_wasm_experimental::types::BufferType"]},{"text":"impl Eq for MapType","synthetic":false,"types":["proxy_wasm_experimental::types::MapType"]},{"text":"impl Eq for PeerType","synthetic":false,"types":["proxy_wasm_experimental::types::PeerType"]},{"text":"impl Eq for StreamType","synthetic":false,"types":["proxy_wasm_experimental::types::StreamType"]},{"text":"impl Eq for MetricType","synthetic":false,"types":["proxy_wasm_experimental::types::MetricType"]},{"text":"impl Eq for ByteString","synthetic":false,"types":["proxy_wasm_experimental::bytestring::ByteString"]}]; if (window.register_implementors) {window.register_implementors(implementors);} else {window.pending_implementors = implementors;}})() \ No newline at end of file diff --git a/implementors/core/cmp/trait.PartialEq.js b/implementors/core/cmp/trait.PartialEq.js index fbaa2f1c..684dfee9 100644 --- a/implementors/core/cmp/trait.PartialEq.js +++ b/implementors/core/cmp/trait.PartialEq.js @@ -1,3 +1,3 @@ (function() {var implementors = {}; -implementors["proxy_wasm_experimental"] = [{"text":"impl PartialEq<LogLevel> for LogLevel","synthetic":false,"types":[]},{"text":"impl PartialEq<Action> for Action","synthetic":false,"types":[]},{"text":"impl PartialEq<Status> for Status","synthetic":false,"types":[]},{"text":"impl PartialEq<ContextType> for ContextType","synthetic":false,"types":[]},{"text":"impl PartialEq<BufferType> for BufferType","synthetic":false,"types":[]},{"text":"impl PartialEq<MapType> for MapType","synthetic":false,"types":[]},{"text":"impl PartialEq<PeerType> for PeerType","synthetic":false,"types":[]},{"text":"impl PartialEq<StreamType> for StreamType","synthetic":false,"types":[]},{"text":"impl PartialEq<MetricType> for MetricType","synthetic":false,"types":[]},{"text":"impl PartialEq<ByteString> for ByteString","synthetic":false,"types":[]},{"text":"impl PartialEq<String> for ByteString","synthetic":false,"types":[]},{"text":"impl PartialEq<Vec<u8, Global>> for ByteString","synthetic":false,"types":[]},{"text":"impl PartialEq<str> for ByteString","synthetic":false,"types":[]},{"text":"impl PartialEq<&'_ str> for ByteString","synthetic":false,"types":[]},{"text":"impl PartialEq<[u8]> for ByteString","synthetic":false,"types":[]},{"text":"impl PartialEq<&'_ [u8]> for ByteString","synthetic":false,"types":[]},{"text":"impl PartialEq<ByteString> for String","synthetic":false,"types":[]},{"text":"impl PartialEq<ByteString> for Vec<u8>","synthetic":false,"types":[]},{"text":"impl PartialEq<ByteString> for str","synthetic":false,"types":[]},{"text":"impl PartialEq<ByteString> for &str","synthetic":false,"types":[]},{"text":"impl PartialEq<ByteString> for [u8]","synthetic":false,"types":[]},{"text":"impl PartialEq<ByteString> for &[u8]","synthetic":false,"types":[]}]; +implementors["proxy_wasm_experimental"] = [{"text":"impl PartialEq<LogLevel> for LogLevel","synthetic":false,"types":["proxy_wasm_experimental::types::LogLevel"]},{"text":"impl PartialEq<Action> for Action","synthetic":false,"types":["proxy_wasm_experimental::types::Action"]},{"text":"impl PartialEq<Status> for Status","synthetic":false,"types":["proxy_wasm_experimental::types::Status"]},{"text":"impl PartialEq<ContextType> for ContextType","synthetic":false,"types":["proxy_wasm_experimental::types::ContextType"]},{"text":"impl PartialEq<BufferType> for BufferType","synthetic":false,"types":["proxy_wasm_experimental::types::BufferType"]},{"text":"impl PartialEq<MapType> for MapType","synthetic":false,"types":["proxy_wasm_experimental::types::MapType"]},{"text":"impl PartialEq<PeerType> for PeerType","synthetic":false,"types":["proxy_wasm_experimental::types::PeerType"]},{"text":"impl PartialEq<StreamType> for StreamType","synthetic":false,"types":["proxy_wasm_experimental::types::StreamType"]},{"text":"impl PartialEq<MetricType> for MetricType","synthetic":false,"types":["proxy_wasm_experimental::types::MetricType"]},{"text":"impl PartialEq<ByteString> for ByteString","synthetic":false,"types":["proxy_wasm_experimental::bytestring::ByteString"]},{"text":"impl PartialEq<String> for ByteString","synthetic":false,"types":["proxy_wasm_experimental::bytestring::ByteString"]},{"text":"impl PartialEq<Vec<u8, Global>> for ByteString","synthetic":false,"types":["proxy_wasm_experimental::bytestring::ByteString"]},{"text":"impl PartialEq<str> for ByteString","synthetic":false,"types":["proxy_wasm_experimental::bytestring::ByteString"]},{"text":"impl PartialEq<&'_ str> for ByteString","synthetic":false,"types":["proxy_wasm_experimental::bytestring::ByteString"]},{"text":"impl PartialEq<[u8]> for ByteString","synthetic":false,"types":["proxy_wasm_experimental::bytestring::ByteString"]},{"text":"impl PartialEq<&'_ [u8]> for ByteString","synthetic":false,"types":["proxy_wasm_experimental::bytestring::ByteString"]},{"text":"impl PartialEq<ByteString> for [u8]","synthetic":false,"types":[]},{"text":"impl PartialEq<ByteString> for &[u8]","synthetic":false,"types":[]}]; if (window.register_implementors) {window.register_implementors(implementors);} else {window.pending_implementors = implementors;}})() \ No newline at end of file diff --git a/implementors/core/convert/trait.AsMut.js b/implementors/core/convert/trait.AsMut.js index cdadb35c..4b052175 100644 --- a/implementors/core/convert/trait.AsMut.js +++ b/implementors/core/convert/trait.AsMut.js @@ -1,3 +1,3 @@ (function() {var implementors = {}; -implementors["proxy_wasm_experimental"] = [{"text":"impl AsMut<[u8]> for ByteString","synthetic":false,"types":[]}]; +implementors["proxy_wasm_experimental"] = [{"text":"impl AsMut<[u8]> for ByteString","synthetic":false,"types":["proxy_wasm_experimental::bytestring::ByteString"]}]; if (window.register_implementors) {window.register_implementors(implementors);} else {window.pending_implementors = implementors;}})() \ No newline at end of file diff --git a/implementors/core/convert/trait.AsRef.js b/implementors/core/convert/trait.AsRef.js index 1b3b6dc5..c3090732 100644 --- a/implementors/core/convert/trait.AsRef.js +++ b/implementors/core/convert/trait.AsRef.js @@ -1,3 +1,3 @@ (function() {var implementors = {}; -implementors["proxy_wasm_experimental"] = [{"text":"impl AsRef<[u8]> for ByteString","synthetic":false,"types":[]}]; +implementors["proxy_wasm_experimental"] = [{"text":"impl AsRef<[u8]> for ByteString","synthetic":false,"types":["proxy_wasm_experimental::bytestring::ByteString"]}]; if (window.register_implementors) {window.register_implementors(implementors);} else {window.pending_implementors = implementors;}})() \ No newline at end of file diff --git a/implementors/core/convert/trait.From.js b/implementors/core/convert/trait.From.js index b8dfa114..a2470faa 100644 --- a/implementors/core/convert/trait.From.js +++ b/implementors/core/convert/trait.From.js @@ -1,3 +1,3 @@ (function() {var implementors = {}; -implementors["proxy_wasm_experimental"] = [{"text":"impl From<Vec<u8, Global>> for ByteString","synthetic":false,"types":[]},{"text":"impl From<&'_ [u8]> for ByteString","synthetic":false,"types":[]},{"text":"impl From<String> for ByteString","synthetic":false,"types":[]},{"text":"impl From<&'_ str> for ByteString","synthetic":false,"types":[]},{"text":"impl From<&'_ ByteString> for ByteString","synthetic":false,"types":[]}]; +implementors["proxy_wasm_experimental"] = [{"text":"impl From<Vec<u8, Global>> for ByteString","synthetic":false,"types":["proxy_wasm_experimental::bytestring::ByteString"]},{"text":"impl From<&'_ [u8]> for ByteString","synthetic":false,"types":["proxy_wasm_experimental::bytestring::ByteString"]},{"text":"impl From<String> for ByteString","synthetic":false,"types":["proxy_wasm_experimental::bytestring::ByteString"]},{"text":"impl From<&'_ str> for ByteString","synthetic":false,"types":["proxy_wasm_experimental::bytestring::ByteString"]},{"text":"impl From<&'_ ByteString> for ByteString","synthetic":false,"types":["proxy_wasm_experimental::bytestring::ByteString"]}]; if (window.register_implementors) {window.register_implementors(implementors);} else {window.pending_implementors = implementors;}})() \ No newline at end of file diff --git a/implementors/core/default/trait.Default.js b/implementors/core/default/trait.Default.js index 7a4087ab..71f0cdd5 100644 --- a/implementors/core/default/trait.Default.js +++ b/implementors/core/default/trait.Default.js @@ -1,3 +1,3 @@ (function() {var implementors = {}; -implementors["proxy_wasm_experimental"] = [{"text":"impl Default for ByteString","synthetic":false,"types":[]}]; +implementors["proxy_wasm_experimental"] = [{"text":"impl Default for ByteString","synthetic":false,"types":["proxy_wasm_experimental::bytestring::ByteString"]}]; if (window.register_implementors) {window.register_implementors(implementors);} else {window.pending_implementors = implementors;}})() \ No newline at end of file diff --git a/implementors/core/fmt/trait.Debug.js b/implementors/core/fmt/trait.Debug.js index 7f01d59d..65eae8d1 100644 --- a/implementors/core/fmt/trait.Debug.js +++ b/implementors/core/fmt/trait.Debug.js @@ -1,3 +1,3 @@ (function() {var implementors = {}; -implementors["proxy_wasm_experimental"] = [{"text":"impl<'a> Debug for HostCallError<'a>","synthetic":false,"types":[]},{"text":"impl<'a> Debug for HostResponseError<'a>","synthetic":false,"types":[]},{"text":"impl Debug for LogLevel","synthetic":false,"types":[]},{"text":"impl Debug for Action","synthetic":false,"types":[]},{"text":"impl Debug for Status","synthetic":false,"types":[]},{"text":"impl Debug for ContextType","synthetic":false,"types":[]},{"text":"impl Debug for BufferType","synthetic":false,"types":[]},{"text":"impl Debug for MapType","synthetic":false,"types":[]},{"text":"impl Debug for PeerType","synthetic":false,"types":[]},{"text":"impl Debug for StreamType","synthetic":false,"types":[]},{"text":"impl Debug for MetricType","synthetic":false,"types":[]},{"text":"impl Debug for ByteString","synthetic":false,"types":[]}]; +implementors["proxy_wasm_experimental"] = [{"text":"impl<'a> Debug for HostCallError<'a>","synthetic":false,"types":["proxy_wasm_experimental::error::HostCallError"]},{"text":"impl<'a> Debug for HostResponseError<'a>","synthetic":false,"types":["proxy_wasm_experimental::error::HostResponseError"]},{"text":"impl Debug for LogLevel","synthetic":false,"types":["proxy_wasm_experimental::types::LogLevel"]},{"text":"impl Debug for Action","synthetic":false,"types":["proxy_wasm_experimental::types::Action"]},{"text":"impl Debug for Status","synthetic":false,"types":["proxy_wasm_experimental::types::Status"]},{"text":"impl Debug for ContextType","synthetic":false,"types":["proxy_wasm_experimental::types::ContextType"]},{"text":"impl Debug for BufferType","synthetic":false,"types":["proxy_wasm_experimental::types::BufferType"]},{"text":"impl Debug for MapType","synthetic":false,"types":["proxy_wasm_experimental::types::MapType"]},{"text":"impl Debug for PeerType","synthetic":false,"types":["proxy_wasm_experimental::types::PeerType"]},{"text":"impl Debug for StreamType","synthetic":false,"types":["proxy_wasm_experimental::types::StreamType"]},{"text":"impl Debug for MetricType","synthetic":false,"types":["proxy_wasm_experimental::types::MetricType"]},{"text":"impl Debug for ByteString","synthetic":false,"types":["proxy_wasm_experimental::bytestring::ByteString"]}]; if (window.register_implementors) {window.register_implementors(implementors);} else {window.pending_implementors = implementors;}})() \ No newline at end of file diff --git a/implementors/core/fmt/trait.Display.js b/implementors/core/fmt/trait.Display.js index 9fc5a503..12d0adb6 100644 --- a/implementors/core/fmt/trait.Display.js +++ b/implementors/core/fmt/trait.Display.js @@ -1,3 +1,3 @@ (function() {var implementors = {}; -implementors["proxy_wasm_experimental"] = [{"text":"impl<'a> Display for HostCallError<'a>","synthetic":false,"types":[]},{"text":"impl<'a> Display for HostResponseError<'a>","synthetic":false,"types":[]},{"text":"impl Display for ByteString","synthetic":false,"types":[]}]; +implementors["proxy_wasm_experimental"] = [{"text":"impl<'a> Display for HostCallError<'a>","synthetic":false,"types":["proxy_wasm_experimental::error::HostCallError"]},{"text":"impl<'a> Display for HostResponseError<'a>","synthetic":false,"types":["proxy_wasm_experimental::error::HostResponseError"]},{"text":"impl Display for ByteString","synthetic":false,"types":["proxy_wasm_experimental::bytestring::ByteString"]}]; if (window.register_implementors) {window.register_implementors(implementors);} else {window.pending_implementors = implementors;}})() \ No newline at end of file diff --git a/implementors/core/hash/trait.Hash.js b/implementors/core/hash/trait.Hash.js index 917a4e76..a4d82ff5 100644 --- a/implementors/core/hash/trait.Hash.js +++ b/implementors/core/hash/trait.Hash.js @@ -1,3 +1,3 @@ (function() {var implementors = {}; -implementors["proxy_wasm_experimental"] = [{"text":"impl Hash for LogLevel","synthetic":false,"types":[]},{"text":"impl Hash for Action","synthetic":false,"types":[]},{"text":"impl Hash for Status","synthetic":false,"types":[]},{"text":"impl Hash for ContextType","synthetic":false,"types":[]},{"text":"impl Hash for BufferType","synthetic":false,"types":[]},{"text":"impl Hash for MapType","synthetic":false,"types":[]},{"text":"impl Hash for PeerType","synthetic":false,"types":[]},{"text":"impl Hash for StreamType","synthetic":false,"types":[]},{"text":"impl Hash for MetricType","synthetic":false,"types":[]},{"text":"impl Hash for ByteString","synthetic":false,"types":[]}]; +implementors["proxy_wasm_experimental"] = [{"text":"impl Hash for LogLevel","synthetic":false,"types":["proxy_wasm_experimental::types::LogLevel"]},{"text":"impl Hash for Action","synthetic":false,"types":["proxy_wasm_experimental::types::Action"]},{"text":"impl Hash for Status","synthetic":false,"types":["proxy_wasm_experimental::types::Status"]},{"text":"impl Hash for ContextType","synthetic":false,"types":["proxy_wasm_experimental::types::ContextType"]},{"text":"impl Hash for BufferType","synthetic":false,"types":["proxy_wasm_experimental::types::BufferType"]},{"text":"impl Hash for MapType","synthetic":false,"types":["proxy_wasm_experimental::types::MapType"]},{"text":"impl Hash for PeerType","synthetic":false,"types":["proxy_wasm_experimental::types::PeerType"]},{"text":"impl Hash for StreamType","synthetic":false,"types":["proxy_wasm_experimental::types::StreamType"]},{"text":"impl Hash for MetricType","synthetic":false,"types":["proxy_wasm_experimental::types::MetricType"]},{"text":"impl Hash for ByteString","synthetic":false,"types":["proxy_wasm_experimental::bytestring::ByteString"]}]; if (window.register_implementors) {window.register_implementors(implementors);} else {window.pending_implementors = implementors;}})() \ No newline at end of file diff --git a/implementors/core/marker/trait.Copy.js b/implementors/core/marker/trait.Copy.js index bd76212a..b4968a0f 100644 --- a/implementors/core/marker/trait.Copy.js +++ b/implementors/core/marker/trait.Copy.js @@ -1,3 +1,3 @@ (function() {var implementors = {}; -implementors["proxy_wasm_experimental"] = [{"text":"impl Copy for LogLevel","synthetic":false,"types":[]},{"text":"impl Copy for Action","synthetic":false,"types":[]},{"text":"impl Copy for Status","synthetic":false,"types":[]},{"text":"impl Copy for ContextType","synthetic":false,"types":[]},{"text":"impl Copy for BufferType","synthetic":false,"types":[]},{"text":"impl Copy for MapType","synthetic":false,"types":[]},{"text":"impl Copy for PeerType","synthetic":false,"types":[]},{"text":"impl Copy for StreamType","synthetic":false,"types":[]},{"text":"impl Copy for MetricType","synthetic":false,"types":[]}]; +implementors["proxy_wasm_experimental"] = [{"text":"impl Copy for LogLevel","synthetic":false,"types":["proxy_wasm_experimental::types::LogLevel"]},{"text":"impl Copy for Action","synthetic":false,"types":["proxy_wasm_experimental::types::Action"]},{"text":"impl Copy for Status","synthetic":false,"types":["proxy_wasm_experimental::types::Status"]},{"text":"impl Copy for ContextType","synthetic":false,"types":["proxy_wasm_experimental::types::ContextType"]},{"text":"impl Copy for BufferType","synthetic":false,"types":["proxy_wasm_experimental::types::BufferType"]},{"text":"impl Copy for MapType","synthetic":false,"types":["proxy_wasm_experimental::types::MapType"]},{"text":"impl Copy for PeerType","synthetic":false,"types":["proxy_wasm_experimental::types::PeerType"]},{"text":"impl Copy for StreamType","synthetic":false,"types":["proxy_wasm_experimental::types::StreamType"]},{"text":"impl Copy for MetricType","synthetic":false,"types":["proxy_wasm_experimental::types::MetricType"]}]; if (window.register_implementors) {window.register_implementors(implementors);} else {window.pending_implementors = implementors;}})() \ No newline at end of file diff --git a/implementors/core/marker/trait.Freeze.js b/implementors/core/marker/trait.Freeze.js index e6e40b07..89955363 100644 --- a/implementors/core/marker/trait.Freeze.js +++ b/implementors/core/marker/trait.Freeze.js @@ -1,3 +1,3 @@ (function() {var implementors = {}; -implementors["proxy_wasm_experimental"] = [{"text":"impl<'a> Freeze for HostCallError<'a>","synthetic":true,"types":[]},{"text":"impl<'a> Freeze for HostResponseError<'a>","synthetic":true,"types":[]},{"text":"impl Freeze for ByteString","synthetic":true,"types":[]},{"text":"impl Freeze for LogLevel","synthetic":true,"types":[]},{"text":"impl Freeze for Action","synthetic":true,"types":[]},{"text":"impl Freeze for Status","synthetic":true,"types":[]},{"text":"impl Freeze for ContextType","synthetic":true,"types":[]},{"text":"impl Freeze for BufferType","synthetic":true,"types":[]},{"text":"impl Freeze for MapType","synthetic":true,"types":[]},{"text":"impl Freeze for PeerType","synthetic":true,"types":[]},{"text":"impl Freeze for StreamType","synthetic":true,"types":[]},{"text":"impl Freeze for MetricType","synthetic":true,"types":[]}]; +implementors["proxy_wasm_experimental"] = [{"text":"impl<'a> Freeze for HostCallError<'a>","synthetic":true,"types":["proxy_wasm_experimental::error::HostCallError"]},{"text":"impl<'a> Freeze for HostResponseError<'a>","synthetic":true,"types":["proxy_wasm_experimental::error::HostResponseError"]},{"text":"impl Freeze for ByteString","synthetic":true,"types":["proxy_wasm_experimental::bytestring::ByteString"]},{"text":"impl Freeze for LogLevel","synthetic":true,"types":["proxy_wasm_experimental::types::LogLevel"]},{"text":"impl Freeze for Action","synthetic":true,"types":["proxy_wasm_experimental::types::Action"]},{"text":"impl Freeze for Status","synthetic":true,"types":["proxy_wasm_experimental::types::Status"]},{"text":"impl Freeze for ContextType","synthetic":true,"types":["proxy_wasm_experimental::types::ContextType"]},{"text":"impl Freeze for BufferType","synthetic":true,"types":["proxy_wasm_experimental::types::BufferType"]},{"text":"impl Freeze for MapType","synthetic":true,"types":["proxy_wasm_experimental::types::MapType"]},{"text":"impl Freeze for PeerType","synthetic":true,"types":["proxy_wasm_experimental::types::PeerType"]},{"text":"impl Freeze for StreamType","synthetic":true,"types":["proxy_wasm_experimental::types::StreamType"]},{"text":"impl Freeze for MetricType","synthetic":true,"types":["proxy_wasm_experimental::types::MetricType"]}]; if (window.register_implementors) {window.register_implementors(implementors);} else {window.pending_implementors = implementors;}})() \ No newline at end of file diff --git a/implementors/core/marker/trait.Send.js b/implementors/core/marker/trait.Send.js index bdae3f6a..cdf62dd0 100644 --- a/implementors/core/marker/trait.Send.js +++ b/implementors/core/marker/trait.Send.js @@ -1,3 +1,3 @@ (function() {var implementors = {}; -implementors["proxy_wasm_experimental"] = [{"text":"impl<'a> Send for HostCallError<'a>","synthetic":true,"types":[]},{"text":"impl<'a> Send for HostResponseError<'a>","synthetic":true,"types":[]},{"text":"impl Send for ByteString","synthetic":true,"types":[]},{"text":"impl Send for LogLevel","synthetic":true,"types":[]},{"text":"impl Send for Action","synthetic":true,"types":[]},{"text":"impl Send for Status","synthetic":true,"types":[]},{"text":"impl Send for ContextType","synthetic":true,"types":[]},{"text":"impl Send for BufferType","synthetic":true,"types":[]},{"text":"impl Send for MapType","synthetic":true,"types":[]},{"text":"impl Send for PeerType","synthetic":true,"types":[]},{"text":"impl Send for StreamType","synthetic":true,"types":[]},{"text":"impl Send for MetricType","synthetic":true,"types":[]}]; +implementors["proxy_wasm_experimental"] = [{"text":"impl<'a> Send for HostCallError<'a>","synthetic":true,"types":["proxy_wasm_experimental::error::HostCallError"]},{"text":"impl<'a> Send for HostResponseError<'a>","synthetic":true,"types":["proxy_wasm_experimental::error::HostResponseError"]},{"text":"impl Send for ByteString","synthetic":true,"types":["proxy_wasm_experimental::bytestring::ByteString"]},{"text":"impl Send for LogLevel","synthetic":true,"types":["proxy_wasm_experimental::types::LogLevel"]},{"text":"impl Send for Action","synthetic":true,"types":["proxy_wasm_experimental::types::Action"]},{"text":"impl Send for Status","synthetic":true,"types":["proxy_wasm_experimental::types::Status"]},{"text":"impl Send for ContextType","synthetic":true,"types":["proxy_wasm_experimental::types::ContextType"]},{"text":"impl Send for BufferType","synthetic":true,"types":["proxy_wasm_experimental::types::BufferType"]},{"text":"impl Send for MapType","synthetic":true,"types":["proxy_wasm_experimental::types::MapType"]},{"text":"impl Send for PeerType","synthetic":true,"types":["proxy_wasm_experimental::types::PeerType"]},{"text":"impl Send for StreamType","synthetic":true,"types":["proxy_wasm_experimental::types::StreamType"]},{"text":"impl Send for MetricType","synthetic":true,"types":["proxy_wasm_experimental::types::MetricType"]}]; if (window.register_implementors) {window.register_implementors(implementors);} else {window.pending_implementors = implementors;}})() \ No newline at end of file diff --git a/implementors/core/marker/trait.StructuralEq.js b/implementors/core/marker/trait.StructuralEq.js index 2098ceb9..f3ce5e6b 100644 --- a/implementors/core/marker/trait.StructuralEq.js +++ b/implementors/core/marker/trait.StructuralEq.js @@ -1,3 +1,3 @@ (function() {var implementors = {}; -implementors["proxy_wasm_experimental"] = [{"text":"impl StructuralEq for LogLevel","synthetic":false,"types":[]},{"text":"impl StructuralEq for Action","synthetic":false,"types":[]},{"text":"impl StructuralEq for Status","synthetic":false,"types":[]},{"text":"impl StructuralEq for ContextType","synthetic":false,"types":[]},{"text":"impl StructuralEq for BufferType","synthetic":false,"types":[]},{"text":"impl StructuralEq for MapType","synthetic":false,"types":[]},{"text":"impl StructuralEq for PeerType","synthetic":false,"types":[]},{"text":"impl StructuralEq for StreamType","synthetic":false,"types":[]},{"text":"impl StructuralEq for MetricType","synthetic":false,"types":[]},{"text":"impl StructuralEq for ByteString","synthetic":false,"types":[]}]; +implementors["proxy_wasm_experimental"] = [{"text":"impl StructuralEq for LogLevel","synthetic":false,"types":["proxy_wasm_experimental::types::LogLevel"]},{"text":"impl StructuralEq for Action","synthetic":false,"types":["proxy_wasm_experimental::types::Action"]},{"text":"impl StructuralEq for Status","synthetic":false,"types":["proxy_wasm_experimental::types::Status"]},{"text":"impl StructuralEq for ContextType","synthetic":false,"types":["proxy_wasm_experimental::types::ContextType"]},{"text":"impl StructuralEq for BufferType","synthetic":false,"types":["proxy_wasm_experimental::types::BufferType"]},{"text":"impl StructuralEq for MapType","synthetic":false,"types":["proxy_wasm_experimental::types::MapType"]},{"text":"impl StructuralEq for PeerType","synthetic":false,"types":["proxy_wasm_experimental::types::PeerType"]},{"text":"impl StructuralEq for StreamType","synthetic":false,"types":["proxy_wasm_experimental::types::StreamType"]},{"text":"impl StructuralEq for MetricType","synthetic":false,"types":["proxy_wasm_experimental::types::MetricType"]},{"text":"impl StructuralEq for ByteString","synthetic":false,"types":["proxy_wasm_experimental::bytestring::ByteString"]}]; if (window.register_implementors) {window.register_implementors(implementors);} else {window.pending_implementors = implementors;}})() \ No newline at end of file diff --git a/implementors/core/marker/trait.StructuralPartialEq.js b/implementors/core/marker/trait.StructuralPartialEq.js index c3823702..8acaf5bf 100644 --- a/implementors/core/marker/trait.StructuralPartialEq.js +++ b/implementors/core/marker/trait.StructuralPartialEq.js @@ -1,3 +1,3 @@ (function() {var implementors = {}; -implementors["proxy_wasm_experimental"] = [{"text":"impl StructuralPartialEq for LogLevel","synthetic":false,"types":[]},{"text":"impl StructuralPartialEq for Action","synthetic":false,"types":[]},{"text":"impl StructuralPartialEq for Status","synthetic":false,"types":[]},{"text":"impl StructuralPartialEq for ContextType","synthetic":false,"types":[]},{"text":"impl StructuralPartialEq for BufferType","synthetic":false,"types":[]},{"text":"impl StructuralPartialEq for MapType","synthetic":false,"types":[]},{"text":"impl StructuralPartialEq for PeerType","synthetic":false,"types":[]},{"text":"impl StructuralPartialEq for StreamType","synthetic":false,"types":[]},{"text":"impl StructuralPartialEq for MetricType","synthetic":false,"types":[]}]; +implementors["proxy_wasm_experimental"] = [{"text":"impl StructuralPartialEq for LogLevel","synthetic":false,"types":["proxy_wasm_experimental::types::LogLevel"]},{"text":"impl StructuralPartialEq for Action","synthetic":false,"types":["proxy_wasm_experimental::types::Action"]},{"text":"impl StructuralPartialEq for Status","synthetic":false,"types":["proxy_wasm_experimental::types::Status"]},{"text":"impl StructuralPartialEq for ContextType","synthetic":false,"types":["proxy_wasm_experimental::types::ContextType"]},{"text":"impl StructuralPartialEq for BufferType","synthetic":false,"types":["proxy_wasm_experimental::types::BufferType"]},{"text":"impl StructuralPartialEq for MapType","synthetic":false,"types":["proxy_wasm_experimental::types::MapType"]},{"text":"impl StructuralPartialEq for PeerType","synthetic":false,"types":["proxy_wasm_experimental::types::PeerType"]},{"text":"impl StructuralPartialEq for StreamType","synthetic":false,"types":["proxy_wasm_experimental::types::StreamType"]},{"text":"impl StructuralPartialEq for MetricType","synthetic":false,"types":["proxy_wasm_experimental::types::MetricType"]}]; if (window.register_implementors) {window.register_implementors(implementors);} else {window.pending_implementors = implementors;}})() \ No newline at end of file diff --git a/implementors/core/marker/trait.Sync.js b/implementors/core/marker/trait.Sync.js index 4a3f50cc..5d9a3489 100644 --- a/implementors/core/marker/trait.Sync.js +++ b/implementors/core/marker/trait.Sync.js @@ -1,3 +1,3 @@ (function() {var implementors = {}; -implementors["proxy_wasm_experimental"] = [{"text":"impl<'a> Sync for HostCallError<'a>","synthetic":true,"types":[]},{"text":"impl<'a> Sync for HostResponseError<'a>","synthetic":true,"types":[]},{"text":"impl Sync for ByteString","synthetic":true,"types":[]},{"text":"impl Sync for LogLevel","synthetic":true,"types":[]},{"text":"impl Sync for Action","synthetic":true,"types":[]},{"text":"impl Sync for Status","synthetic":true,"types":[]},{"text":"impl Sync for ContextType","synthetic":true,"types":[]},{"text":"impl Sync for BufferType","synthetic":true,"types":[]},{"text":"impl Sync for MapType","synthetic":true,"types":[]},{"text":"impl Sync for PeerType","synthetic":true,"types":[]},{"text":"impl Sync for StreamType","synthetic":true,"types":[]},{"text":"impl Sync for MetricType","synthetic":true,"types":[]}]; +implementors["proxy_wasm_experimental"] = [{"text":"impl<'a> Sync for HostCallError<'a>","synthetic":true,"types":["proxy_wasm_experimental::error::HostCallError"]},{"text":"impl<'a> Sync for HostResponseError<'a>","synthetic":true,"types":["proxy_wasm_experimental::error::HostResponseError"]},{"text":"impl Sync for ByteString","synthetic":true,"types":["proxy_wasm_experimental::bytestring::ByteString"]},{"text":"impl Sync for LogLevel","synthetic":true,"types":["proxy_wasm_experimental::types::LogLevel"]},{"text":"impl Sync for Action","synthetic":true,"types":["proxy_wasm_experimental::types::Action"]},{"text":"impl Sync for Status","synthetic":true,"types":["proxy_wasm_experimental::types::Status"]},{"text":"impl Sync for ContextType","synthetic":true,"types":["proxy_wasm_experimental::types::ContextType"]},{"text":"impl Sync for BufferType","synthetic":true,"types":["proxy_wasm_experimental::types::BufferType"]},{"text":"impl Sync for MapType","synthetic":true,"types":["proxy_wasm_experimental::types::MapType"]},{"text":"impl Sync for PeerType","synthetic":true,"types":["proxy_wasm_experimental::types::PeerType"]},{"text":"impl Sync for StreamType","synthetic":true,"types":["proxy_wasm_experimental::types::StreamType"]},{"text":"impl Sync for MetricType","synthetic":true,"types":["proxy_wasm_experimental::types::MetricType"]}]; if (window.register_implementors) {window.register_implementors(implementors);} else {window.pending_implementors = implementors;}})() \ No newline at end of file diff --git a/implementors/core/marker/trait.Unpin.js b/implementors/core/marker/trait.Unpin.js index 5d593898..568912a0 100644 --- a/implementors/core/marker/trait.Unpin.js +++ b/implementors/core/marker/trait.Unpin.js @@ -1,3 +1,3 @@ (function() {var implementors = {}; -implementors["proxy_wasm_experimental"] = [{"text":"impl<'a> Unpin for HostCallError<'a>","synthetic":true,"types":[]},{"text":"impl<'a> Unpin for HostResponseError<'a>","synthetic":true,"types":[]},{"text":"impl Unpin for ByteString","synthetic":true,"types":[]},{"text":"impl Unpin for LogLevel","synthetic":true,"types":[]},{"text":"impl Unpin for Action","synthetic":true,"types":[]},{"text":"impl Unpin for Status","synthetic":true,"types":[]},{"text":"impl Unpin for ContextType","synthetic":true,"types":[]},{"text":"impl Unpin for BufferType","synthetic":true,"types":[]},{"text":"impl Unpin for MapType","synthetic":true,"types":[]},{"text":"impl Unpin for PeerType","synthetic":true,"types":[]},{"text":"impl Unpin for StreamType","synthetic":true,"types":[]},{"text":"impl Unpin for MetricType","synthetic":true,"types":[]}]; +implementors["proxy_wasm_experimental"] = [{"text":"impl<'a> Unpin for HostCallError<'a>","synthetic":true,"types":["proxy_wasm_experimental::error::HostCallError"]},{"text":"impl<'a> Unpin for HostResponseError<'a>","synthetic":true,"types":["proxy_wasm_experimental::error::HostResponseError"]},{"text":"impl Unpin for ByteString","synthetic":true,"types":["proxy_wasm_experimental::bytestring::ByteString"]},{"text":"impl Unpin for LogLevel","synthetic":true,"types":["proxy_wasm_experimental::types::LogLevel"]},{"text":"impl Unpin for Action","synthetic":true,"types":["proxy_wasm_experimental::types::Action"]},{"text":"impl Unpin for Status","synthetic":true,"types":["proxy_wasm_experimental::types::Status"]},{"text":"impl Unpin for ContextType","synthetic":true,"types":["proxy_wasm_experimental::types::ContextType"]},{"text":"impl Unpin for BufferType","synthetic":true,"types":["proxy_wasm_experimental::types::BufferType"]},{"text":"impl Unpin for MapType","synthetic":true,"types":["proxy_wasm_experimental::types::MapType"]},{"text":"impl Unpin for PeerType","synthetic":true,"types":["proxy_wasm_experimental::types::PeerType"]},{"text":"impl Unpin for StreamType","synthetic":true,"types":["proxy_wasm_experimental::types::StreamType"]},{"text":"impl Unpin for MetricType","synthetic":true,"types":["proxy_wasm_experimental::types::MetricType"]}]; if (window.register_implementors) {window.register_implementors(implementors);} else {window.pending_implementors = implementors;}})() \ No newline at end of file diff --git a/implementors/core/ops/deref/trait.Deref.js b/implementors/core/ops/deref/trait.Deref.js index 405fe861..e4455711 100644 --- a/implementors/core/ops/deref/trait.Deref.js +++ b/implementors/core/ops/deref/trait.Deref.js @@ -1,3 +1,3 @@ (function() {var implementors = {}; -implementors["proxy_wasm_experimental"] = [{"text":"impl Deref for ByteString","synthetic":false,"types":[]}]; +implementors["proxy_wasm_experimental"] = [{"text":"impl Deref for ByteString","synthetic":false,"types":["proxy_wasm_experimental::bytestring::ByteString"]}]; if (window.register_implementors) {window.register_implementors(implementors);} else {window.pending_implementors = implementors;}})() \ No newline at end of file diff --git a/implementors/core/ops/deref/trait.DerefMut.js b/implementors/core/ops/deref/trait.DerefMut.js index 5e030557..a3351a7c 100644 --- a/implementors/core/ops/deref/trait.DerefMut.js +++ b/implementors/core/ops/deref/trait.DerefMut.js @@ -1,3 +1,3 @@ (function() {var implementors = {}; -implementors["proxy_wasm_experimental"] = [{"text":"impl DerefMut for ByteString","synthetic":false,"types":[]}]; +implementors["proxy_wasm_experimental"] = [{"text":"impl DerefMut for ByteString","synthetic":false,"types":["proxy_wasm_experimental::bytestring::ByteString"]}]; if (window.register_implementors) {window.register_implementors(implementors);} else {window.pending_implementors = implementors;}})() \ No newline at end of file diff --git a/implementors/std/error/trait.Error.js b/implementors/std/error/trait.Error.js index 453cc4ce..2c9d2137 100644 --- a/implementors/std/error/trait.Error.js +++ b/implementors/std/error/trait.Error.js @@ -1,3 +1,3 @@ (function() {var implementors = {}; -implementors["proxy_wasm_experimental"] = [{"text":"impl<'a> Error for HostCallError<'a>","synthetic":false,"types":[]},{"text":"impl<'a> Error for HostResponseError<'a>","synthetic":false,"types":[]}]; +implementors["proxy_wasm_experimental"] = [{"text":"impl<'a> Error for HostCallError<'a>","synthetic":false,"types":["proxy_wasm_experimental::error::HostCallError"]},{"text":"impl<'a> Error for HostResponseError<'a>","synthetic":false,"types":["proxy_wasm_experimental::error::HostResponseError"]}]; if (window.register_implementors) {window.register_implementors(implementors);} else {window.pending_implementors = implementors;}})() \ No newline at end of file diff --git a/implementors/std/panic/trait.RefUnwindSafe.js b/implementors/std/panic/trait.RefUnwindSafe.js index 7ab6fa24..184a0d52 100644 --- a/implementors/std/panic/trait.RefUnwindSafe.js +++ b/implementors/std/panic/trait.RefUnwindSafe.js @@ -1,3 +1,3 @@ (function() {var implementors = {}; -implementors["proxy_wasm_experimental"] = [{"text":"impl<'a> RefUnwindSafe for HostCallError<'a>","synthetic":true,"types":[]},{"text":"impl<'a> !RefUnwindSafe for HostResponseError<'a>","synthetic":true,"types":[]},{"text":"impl RefUnwindSafe for ByteString","synthetic":true,"types":[]},{"text":"impl RefUnwindSafe for LogLevel","synthetic":true,"types":[]},{"text":"impl RefUnwindSafe for Action","synthetic":true,"types":[]},{"text":"impl RefUnwindSafe for Status","synthetic":true,"types":[]},{"text":"impl RefUnwindSafe for ContextType","synthetic":true,"types":[]},{"text":"impl RefUnwindSafe for BufferType","synthetic":true,"types":[]},{"text":"impl RefUnwindSafe for MapType","synthetic":true,"types":[]},{"text":"impl RefUnwindSafe for PeerType","synthetic":true,"types":[]},{"text":"impl RefUnwindSafe for StreamType","synthetic":true,"types":[]},{"text":"impl RefUnwindSafe for MetricType","synthetic":true,"types":[]}]; +implementors["proxy_wasm_experimental"] = [{"text":"impl<'a> RefUnwindSafe for HostCallError<'a>","synthetic":true,"types":["proxy_wasm_experimental::error::HostCallError"]},{"text":"impl<'a> !RefUnwindSafe for HostResponseError<'a>","synthetic":true,"types":["proxy_wasm_experimental::error::HostResponseError"]},{"text":"impl RefUnwindSafe for ByteString","synthetic":true,"types":["proxy_wasm_experimental::bytestring::ByteString"]},{"text":"impl RefUnwindSafe for LogLevel","synthetic":true,"types":["proxy_wasm_experimental::types::LogLevel"]},{"text":"impl RefUnwindSafe for Action","synthetic":true,"types":["proxy_wasm_experimental::types::Action"]},{"text":"impl RefUnwindSafe for Status","synthetic":true,"types":["proxy_wasm_experimental::types::Status"]},{"text":"impl RefUnwindSafe for ContextType","synthetic":true,"types":["proxy_wasm_experimental::types::ContextType"]},{"text":"impl RefUnwindSafe for BufferType","synthetic":true,"types":["proxy_wasm_experimental::types::BufferType"]},{"text":"impl RefUnwindSafe for MapType","synthetic":true,"types":["proxy_wasm_experimental::types::MapType"]},{"text":"impl RefUnwindSafe for PeerType","synthetic":true,"types":["proxy_wasm_experimental::types::PeerType"]},{"text":"impl RefUnwindSafe for StreamType","synthetic":true,"types":["proxy_wasm_experimental::types::StreamType"]},{"text":"impl RefUnwindSafe for MetricType","synthetic":true,"types":["proxy_wasm_experimental::types::MetricType"]}]; if (window.register_implementors) {window.register_implementors(implementors);} else {window.pending_implementors = implementors;}})() \ No newline at end of file diff --git a/implementors/std/panic/trait.UnwindSafe.js b/implementors/std/panic/trait.UnwindSafe.js index 116c67d8..c0382f34 100644 --- a/implementors/std/panic/trait.UnwindSafe.js +++ b/implementors/std/panic/trait.UnwindSafe.js @@ -1,3 +1,3 @@ (function() {var implementors = {}; -implementors["proxy_wasm_experimental"] = [{"text":"impl<'a> UnwindSafe for HostCallError<'a>","synthetic":true,"types":[]},{"text":"impl<'a> !UnwindSafe for HostResponseError<'a>","synthetic":true,"types":[]},{"text":"impl UnwindSafe for ByteString","synthetic":true,"types":[]},{"text":"impl UnwindSafe for LogLevel","synthetic":true,"types":[]},{"text":"impl UnwindSafe for Action","synthetic":true,"types":[]},{"text":"impl UnwindSafe for Status","synthetic":true,"types":[]},{"text":"impl UnwindSafe for ContextType","synthetic":true,"types":[]},{"text":"impl UnwindSafe for BufferType","synthetic":true,"types":[]},{"text":"impl UnwindSafe for MapType","synthetic":true,"types":[]},{"text":"impl UnwindSafe for PeerType","synthetic":true,"types":[]},{"text":"impl UnwindSafe for StreamType","synthetic":true,"types":[]},{"text":"impl UnwindSafe for MetricType","synthetic":true,"types":[]}]; +implementors["proxy_wasm_experimental"] = [{"text":"impl<'a> UnwindSafe for HostCallError<'a>","synthetic":true,"types":["proxy_wasm_experimental::error::HostCallError"]},{"text":"impl<'a> !UnwindSafe for HostResponseError<'a>","synthetic":true,"types":["proxy_wasm_experimental::error::HostResponseError"]},{"text":"impl UnwindSafe for ByteString","synthetic":true,"types":["proxy_wasm_experimental::bytestring::ByteString"]},{"text":"impl UnwindSafe for LogLevel","synthetic":true,"types":["proxy_wasm_experimental::types::LogLevel"]},{"text":"impl UnwindSafe for Action","synthetic":true,"types":["proxy_wasm_experimental::types::Action"]},{"text":"impl UnwindSafe for Status","synthetic":true,"types":["proxy_wasm_experimental::types::Status"]},{"text":"impl UnwindSafe for ContextType","synthetic":true,"types":["proxy_wasm_experimental::types::ContextType"]},{"text":"impl UnwindSafe for BufferType","synthetic":true,"types":["proxy_wasm_experimental::types::BufferType"]},{"text":"impl UnwindSafe for MapType","synthetic":true,"types":["proxy_wasm_experimental::types::MapType"]},{"text":"impl UnwindSafe for PeerType","synthetic":true,"types":["proxy_wasm_experimental::types::PeerType"]},{"text":"impl UnwindSafe for StreamType","synthetic":true,"types":["proxy_wasm_experimental::types::StreamType"]},{"text":"impl UnwindSafe for MetricType","synthetic":true,"types":["proxy_wasm_experimental::types::MetricType"]}]; if (window.register_implementors) {window.register_implementors(implementors);} else {window.pending_implementors = implementors;}})() \ No newline at end of file diff --git a/main.js b/main.js index 03cfb2cc..7217fe8e 100644 --- a/main.js +++ b/main.js @@ -1,5 +1,5 @@ -if(!String.prototype.startsWith){String.prototype.startsWith=function(searchString,position){position=position||0;return this.indexOf(searchString,position)===position}}if(!String.prototype.endsWith){String.prototype.endsWith=function(suffix,length){var l=length||this.length;return this.indexOf(suffix,l-suffix.length)!==-1}}if(!DOMTokenList.prototype.add){DOMTokenList.prototype.add=function(className){if(className&&!hasClass(this,className)){if(this.className&&this.className.length>0){this.className+=" "+className}else{this.className=className}}}}if(!DOMTokenList.prototype.remove){DOMTokenList.prototype.remove=function(className){if(className&&this.className){this.className=(" "+this.className+" ").replace(" "+className+" "," ").trim()}}}function getVirtualKey(ev){if("key"in ev&&typeof ev.key!="undefined"){return ev.key}var c=ev.charCode||ev.keyCode;if(c==27){return"Escape"}return String.fromCharCode(c)}function getSearchInput(){return document.getElementsByClassName("search-input")[0]}function getSearchElement(){return document.getElementById("search")}function getThemesElement(){return document.getElementById("theme-choices")}function getThemePickerElement(){return document.getElementById("theme-picker")}function focusSearchBar(){getSearchInput().focus()}function defocusSearchBar(){getSearchInput().blur()}(function(){"use strict";var itemTypes=["mod","externcrate","import","struct","enum","fn","type","static","trait","impl","tymethod","method","structfield","variant","macro","primitive","associatedtype","constant","associatedconstant","union","foreigntype","keyword","existential","attr","derive","traitalias"];var disableShortcuts=getSettingValue("disable-shortcuts")==="true";var search_input=getSearchInput();var searchTimeout=null;var toggleAllDocsId="toggle-all-docs";var currentTab=0;var mouseMovedAfterSearch=true;var titleBeforeSearch=document.title;var searchTitle=null;function clearInputTimeout(){if(searchTimeout!==null){clearTimeout(searchTimeout);searchTimeout=null}}function getPageId(){if(window.location.hash){var tmp=window.location.hash.replace(/^#/,"");if(tmp.length>0){return tmp}}return null}function showSidebar(){var elems=document.getElementsByClassName("sidebar-elems")[0];if(elems){addClass(elems,"show-it")}var sidebar=document.getElementsByClassName("sidebar")[0];if(sidebar){addClass(sidebar,"mobile");var filler=document.getElementById("sidebar-filler");if(!filler){var div=document.createElement("div");div.id="sidebar-filler";sidebar.appendChild(div)}}}function hideSidebar(){var elems=document.getElementsByClassName("sidebar-elems")[0];if(elems){removeClass(elems,"show-it")}var sidebar=document.getElementsByClassName("sidebar")[0];removeClass(sidebar,"mobile");var filler=document.getElementById("sidebar-filler");if(filler){filler.remove()}document.getElementsByTagName("body")[0].style.marginTop=""}function showSearchResults(search){if(search===null||typeof search==='undefined'){search=getSearchElement()}addClass(main,"hidden");removeClass(search,"hidden");mouseMovedAfterSearch=false;document.title=searchTitle}function hideSearchResults(search){if(search===null||typeof search==='undefined'){search=getSearchElement()}addClass(search,"hidden");removeClass(main,"hidden");document.title=titleBeforeSearch}var TY_PRIMITIVE=itemTypes.indexOf("primitive");var TY_KEYWORD=itemTypes.indexOf("keyword");function getQueryStringParams(){var params={};window.location.search.substring(1).split("&").map(function(s){var pair=s.split("=");params[decodeURIComponent(pair[0])]=typeof pair[1]==="undefined"?null:decodeURIComponent(pair[1])});return params}function browserSupportsHistoryApi(){return window.history&&typeof window.history.pushState==="function"}function isHidden(elem){return elem.offsetHeight===0}var main=document.getElementById("main");var savedHash="";function handleHashes(ev){var elem;var search=getSearchElement();if(ev!==null&&search&&!hasClass(search,"hidden")&&ev.newURL){hideSearchResults(search);var hash=ev.newURL.slice(ev.newURL.indexOf("#")+1);if(browserSupportsHistoryApi()){history.replaceState(hash,"","?search=#"+hash)}elem=document.getElementById(hash);if(elem){elem.scrollIntoView()}}if(savedHash!==window.location.hash){savedHash=window.location.hash;if(savedHash.length===0){return}elem=document.getElementById(savedHash.slice(1));if(!elem||!isHidden(elem)){return}var parent=elem.parentNode;if(parent&&hasClass(parent,"impl-items")){onEachLazy(parent.getElementsByClassName("collapsed"),function(e){if(e.parentNode===parent){e.click();return true}});if(isHidden(elem)){if(hasClass(parent.lastElementChild,"collapse-toggle")){parent.lastElementChild.click()}}}}}function highlightSourceLines(match,ev){if(typeof match==="undefined"){hideSidebar();match=window.location.hash.match(/^#?(\d+)(?:-(\d+))?$/)}if(!match){return}var from=parseInt(match[1],10);var to=from;if(typeof match[2]!=="undefined"){to=parseInt(match[2],10)}if(to0){collapseDocs(collapses[0],"show")}}}}function getHelpElement(){buildHelperPopup();return document.getElementById("help")}function displayHelp(display,ev,help){help=help?help:getHelpElement();if(display===true){if(hasClass(help,"hidden")){ev.preventDefault();removeClass(help,"hidden");addClass(document.body,"blur")}}else if(hasClass(help,"hidden")===false){ev.preventDefault();addClass(help,"hidden");removeClass(document.body,"blur")}}function handleEscape(ev){var help=getHelpElement();var search=getSearchElement();if(hasClass(help,"hidden")===false){displayHelp(false,ev,help)}else if(hasClass(search,"hidden")===false){clearInputTimeout();ev.preventDefault();hideSearchResults(search)}defocusSearchBar();hideThemeButtonState()}function handleShortcut(ev){if(ev.ctrlKey||ev.altKey||ev.metaKey||disableShortcuts===true){return}if(document.activeElement.tagName==="INPUT"){switch(getVirtualKey(ev)){case"Escape":handleEscape(ev);break}}else{switch(getVirtualKey(ev)){case"Escape":handleEscape(ev);break;case"s":case"S":displayHelp(false,ev);ev.preventDefault();focusSearchBar();break;case"+":case"-":ev.preventDefault();toggleAllDocs();break;case"?":displayHelp(true,ev);break;case"t":case"T":displayHelp(false,ev);ev.preventDefault();var themePicker=getThemePickerElement();themePicker.click();themePicker.focus();break;default:var themePicker=getThemePickerElement();if(themePicker.parentNode.contains(ev.target)){handleThemeKeyDown(ev)}}}}function handleThemeKeyDown(ev){var active=document.activeElement;var themes=getThemesElement();switch(getVirtualKey(ev)){case"ArrowUp":ev.preventDefault();if(active.previousElementSibling&&ev.target.id!=="theme-picker"){active.previousElementSibling.focus()}else{showThemeButtonState();themes.lastElementChild.focus()}break;case"ArrowDown":ev.preventDefault();if(active.nextElementSibling&&ev.target.id!=="theme-picker"){active.nextElementSibling.focus()}else{showThemeButtonState();themes.firstElementChild.focus()}break;case"Enter":case"Return":case"Space":if(ev.target.id==="theme-picker"&&themes.style.display==="none"){ev.preventDefault();showThemeButtonState();themes.firstElementChild.focus()}break;case"Home":ev.preventDefault();themes.firstElementChild.focus();break;case"End":ev.preventDefault();themes.lastElementChild.focus();break}}function findParentElement(elem,tagName){do{if(elem&&elem.tagName===tagName){return elem}elem=elem.parentNode}while(elem);return null}document.addEventListener("keypress",handleShortcut);document.addEventListener("keydown",handleShortcut);function resetMouseMoved(ev){mouseMovedAfterSearch=true}document.addEventListener("mousemove",resetMouseMoved);var handleSourceHighlight=(function(){var prev_line_id=0;var set_fragment=function(name){var x=window.scrollX,y=window.scrollY;if(browserSupportsHistoryApi()){history.replaceState(null,null,"#"+name);highlightSourceLines()}else{location.replace("#"+name)}window.scrollTo(x,y)};return function(ev){var cur_line_id=parseInt(ev.target.id,10);ev.preventDefault();if(ev.shiftKey&&prev_line_id){if(prev_line_id>cur_line_id){var tmp=prev_line_id;prev_line_id=cur_line_id;cur_line_id=tmp}set_fragment(prev_line_id+"-"+cur_line_id)}else{prev_line_id=cur_line_id;set_fragment(cur_line_id)}}}());document.addEventListener("click",function(ev){if(hasClass(ev.target,"help-button")){displayHelp(true,ev)}else if(hasClass(ev.target,"collapse-toggle")){collapseDocs(ev.target,"toggle")}else if(hasClass(ev.target.parentNode,"collapse-toggle")){collapseDocs(ev.target.parentNode,"toggle")}else if(ev.target.tagName==="SPAN"&&hasClass(ev.target.parentNode,"line-numbers")){handleSourceHighlight(ev)}else if(hasClass(getHelpElement(),"hidden")===false){var help=getHelpElement();var is_inside_help_popup=ev.target!==help&&help.contains(ev.target);if(is_inside_help_popup===false){addClass(help,"hidden");removeClass(document.body,"blur")}}else{var a=findParentElement(ev.target,"A");if(a&&a.hash){expandSection(a.hash.replace(/^#/,""))}}});(function(){var x=document.getElementsByClassName("version-selector");if(x.length>0){x[0].onchange=function(){var i,match,url=document.location.href,stripped="",len=rootPath.match(/\.\.\//g).length+1;for(i=0;i-1){var obj=searchIndex[results[i].id];obj.lev=results[i].lev;if(isType!==true||obj.type){var res=buildHrefAndPath(obj);obj.displayPath=pathSplitter(res[0]);obj.fullPath=obj.displayPath+obj.name;obj.fullPath+="|"+obj.ty;obj.href=res[1];out.push(obj);if(out.length>=MAX_RESULTS){break}}}}return out}function sortResults(results,isType){var ar=[];for(var entry in results){if(hasOwnProperty(results,entry)){ar.push(results[entry])}}results=ar;var i;var nresults=results.length;for(i=0;ib?+1:-1)}a=(aaa.index<0);b=(bbb.index<0);if(a!==b){return a-b}a=aaa.index;b=bbb.index;if(a!==b){return a-b}if((aaa.item.ty===TY_PRIMITIVE&&bbb.item.ty!==TY_KEYWORD)||(aaa.item.ty===TY_KEYWORD&&bbb.item.ty!==TY_PRIMITIVE)){return-1}if((bbb.item.ty===TY_PRIMITIVE&&aaa.item.ty!==TY_PRIMITIVE)||(bbb.item.ty===TY_KEYWORD&&aaa.item.ty!==TY_KEYWORD)){return 1}a=(aaa.item.desc==="");b=(bbb.item.desc==="");if(a!==b){return a-b}a=aaa.item.ty;b=bbb.item.ty;if(a!==b){return a-b}a=aaa.item.path;b=bbb.item.path;if(a!==b){return(a>b?+1:-1)}return 0});var length=results.length;for(i=0;i"));return{name:val.substring(0,val.indexOf("<")),generics:values.split(/\s*,\s*/),}}return{name:val,generics:[],}}function getObjectFromId(id){if(typeof id==="number"){return searchIndex[id]}return{'name':id}}function checkGenerics(obj,val){var lev_distance=MAX_LEV_DISTANCE+1;if(val.generics.length>0){if(obj.length>GENERICS_DATA&&obj[GENERICS_DATA].length>=val.generics.length){var elems=obj[GENERICS_DATA].slice(0);var total=0;var done=0;var vlength=val.generics.length;for(var y=0;yGENERICS_DATA&&obj[GENERICS_DATA].length>=val.generics.length){var elems=obj[GENERICS_DATA].slice(0);var allFound=true;for(var y=0;allFound===true&&yGENERICS_DATA&&obj[GENERICS_DATA].length!==0){var tmp_lev=checkGenerics(obj,val);if(tmp_lev<=MAX_LEV_DISTANCE){return tmp_lev}}else{return 0}}if(literalSearch===true){if(obj.length>GENERICS_DATA&&obj[GENERICS_DATA].length>0){var length=obj[GENERICS_DATA].length;for(x=0;xGENERICS_DATA&&obj[GENERICS_DATA].length>0){var olength=obj[GENERICS_DATA].length;for(x=0;x0){var length=obj.type[INPUTS_DATA].length;for(var i=0;iOUTPUT_DATA){var ret=obj.type[OUTPUT_DATA];if(typeof ret[0]==="string"){ret=[ret]}for(var x=0;xlength){return MAX_LEV_DISTANCE+1}for(var i=0;ilength){break}var lev_total=0;var aborted=false;for(var x=0;xMAX_LEV_DISTANCE){aborted=true;break}lev_total+=lev}if(aborted===false){ret_lev=Math.min(ret_lev,Math.round(lev_total/clength))}}return ret_lev}function typePassesFilter(filter,type){if(filter<=NO_TYPE_FILTER)return true;if(filter===type)return true;var name=itemTypes[type];switch(itemTypes[filter]){case"constant":return name==="associatedconstant";case"fn":return name==="method"||name==="tymethod";case"type":return name==="primitive"||name==="associatedtype";case"trait":return name==="traitalias"}return false}function generateId(ty){if(ty.parent&&ty.parent.name){return itemTypes[ty.ty]+ty.path+ty.parent.name+ty.name}return itemTypes[ty.ty]+ty.path+ty.name}function createAliasFromItem(item){return{crate:item.crate,name:item.name,path:item.path,desc:item.desc,ty:item.ty,parent:item.parent,type:item.type,is_alias:true,}}function handleAliases(ret,query,filterCrates){var aliases=[];var crateAliases=[];var i;if(filterCrates!==undefined){if(ALIASES[filterCrates]&&ALIASES[filterCrates][query.search]){for(i=0;iMAX_RESULTS){ret.others.pop()}};onEach(aliases,pushFunc);onEach(crateAliases,pushFunc)}var nSearchWords=searchWords.length;var i;var ty;var fullId;var returned;var in_args;if((val.charAt(0)==="\""||val.charAt(0)==="'")&&val.charAt(val.length-1)===val.charAt(0)){val=extractGenerics(val.substr(1,val.length-2));for(i=0;i")>-1){var trimmer=function(s){return s.trim()};var parts=val.split("->").map(trimmer);var input=parts[0];var inputs=input.split(",").map(trimmer).sort();for(i=0;i1?paths.length-1:1);var lev;for(j=0;j1){lev=checkPath(contains,paths[paths.length-1],ty);if(lev>MAX_LEV_DISTANCE){continue}else if(lev>0){lev_add=lev/10}}returned=MAX_LEV_DISTANCE+1;in_args=MAX_LEV_DISTANCE+1;var index=-1;lev=MAX_LEV_DISTANCE+1;fullId=generateId(ty);if(searchWords[j].indexOf(split[i])>-1||searchWords[j].indexOf(val)>-1||searchWords[j].replace(/_/g,"").indexOf(val)>-1){if(typePassesFilter(typeFilter,ty.ty)&&results[fullId]===undefined){index=searchWords[j].replace(/_/g,"").indexOf(val)}}if((lev=levenshtein(searchWords[j],val))<=MAX_LEV_DISTANCE){if(typePassesFilter(typeFilter,ty.ty)===false){lev=MAX_LEV_DISTANCE+1}else{lev+=1}}in_args=findArg(ty,valGenerics,false,typeFilter);returned=checkReturned(ty,valGenerics,false,typeFilter);lev+=lev_add;if(lev>0&&val.length>3&&searchWords[j].indexOf(val)>-1){if(val.length<6){lev-=1}else{lev=0}}if(in_args<=MAX_LEV_DISTANCE){if(results_in_args[fullId]===undefined){results_in_args[fullId]={id:j,index:index,lev:in_args,}}results_in_args[fullId].lev=Math.min(results_in_args[fullId].lev,in_args)}if(returned<=MAX_LEV_DISTANCE){if(results_returned[fullId]===undefined){results_returned[fullId]={id:j,index:index,lev:returned,}}results_returned[fullId].lev=Math.min(results_returned[fullId].lev,returned)}if(index!==-1||lev<=MAX_LEV_DISTANCE){if(index!==-1&&paths.length<2){lev=0}if(results[fullId]===undefined){results[fullId]={id:j,index:index,lev:lev,}}results[fullId].lev=Math.min(results[fullId].lev,lev)}}}var ret={"in_args":sortResults(results_in_args,true),"returned":sortResults(results_returned,true),"others":sortResults(results),};handleAliases(ret,query,filterCrates);return ret}function validateResult(name,path,keys,parent){for(var i=0;i-1||path.indexOf(keys[i])>-1||(parent!==undefined&&parent.name!==undefined&&parent.name.toLowerCase().indexOf(keys[i])>-1)||levenshtein(name,keys[i])<=MAX_LEV_DISTANCE)){return false}}return true}function getQuery(raw){var matches,type,query;query=raw;matches=query.match(/^(fn|mod|struct|enum|trait|type|const|macro)\s*:\s*/i);if(matches){type=matches[1].replace(/^const$/,"constant");query=query.substring(matches[0].length)}return{raw:raw,query:query,type:type,id:query+type}}function initSearchNav(){var hoverTimeout;var click_func=function(e){var el=e.target;while(el.tagName!=="TR"){el=el.parentNode}var dst=e.target.getElementsByTagName("a");if(dst.length<1){return}dst=dst[0];if(window.location.pathname===dst.pathname){hideSearchResults();document.location.href=dst.href}};var mouseover_func=function(e){if(mouseMovedAfterSearch){var el=e.target;while(el.tagName!=="TR"){el=el.parentNode}clearTimeout(hoverTimeout);hoverTimeout=setTimeout(function(){onEachLazy(document.getElementsByClassName("search-results"),function(e){onEachLazy(e.getElementsByClassName("result"),function(i_e){removeClass(i_e,"highlighted")})});addClass(el,"highlighted")},20)}};onEachLazy(document.getElementsByClassName("search-results"),function(e){onEachLazy(e.getElementsByClassName("result"),function(i_e){i_e.onclick=click_func;i_e.onmouseover=mouseover_func})});search_input.onkeydown=function(e){var actives=[[],[],[]];var current=0;onEachLazy(document.getElementById("results").childNodes,function(e){onEachLazy(e.getElementsByClassName("highlighted"),function(h_e){actives[current].push(h_e)});current+=1});if(e.which===38){if(e.ctrlKey){printTab(currentTab>0?currentTab-1:2)}else{if(!actives[currentTab].length||!actives[currentTab][0].previousElementSibling){return}addClass(actives[currentTab][0].previousElementSibling,"highlighted");removeClass(actives[currentTab][0],"highlighted")}e.preventDefault()}else if(e.which===40){if(e.ctrlKey){printTab(currentTab>1?0:currentTab+1)}else if(!actives[currentTab].length){var results=document.getElementById("results").childNodes;if(results.length>0){var res=results[currentTab].getElementsByClassName("result");if(res.length>0){addClass(res[0],"highlighted")}}}else if(actives[currentTab][0].nextElementSibling){addClass(actives[currentTab][0].nextElementSibling,"highlighted");removeClass(actives[currentTab][0],"highlighted")}e.preventDefault()}else if(e.which===13){if(actives[currentTab].length){document.location.href=actives[currentTab][0].getElementsByTagName("a")[0].href}}else if(e.which===16){}else if(actives[currentTab].length>0){removeClass(actives[currentTab][0],"highlighted")}}}function buildHrefAndPath(item){var displayPath;var href;var type=itemTypes[item.ty];var name=item.name;var path=item.path;if(type==="mod"){displayPath=path+"::";href=rootPath+path.replace(/::/g,"/")+"/"+name+"/index.html"}else if(type==="primitive"||type==="keyword"){displayPath="";href=rootPath+path.replace(/::/g,"/")+"/"+type+"."+name+".html"}else if(type==="externcrate"){displayPath="";href=rootPath+name+"/index.html"}else if(item.parent!==undefined){var myparent=item.parent;var anchor="#"+type+"."+name;var parentType=itemTypes[myparent.ty];var pageType=parentType;var pageName=myparent.name;if(parentType==="primitive"){displayPath=myparent.name+"::"}else if(type==="structfield"&&parentType==="variant"){var splitPath=item.path.split("::");var enumName=splitPath.pop();path=splitPath.join("::");displayPath=path+"::"+enumName+"::"+myparent.name+"::";anchor="#variant."+myparent.name+".field."+name;pageType="enum";pageName=enumName}else{displayPath=path+"::"+myparent.name+"::"}href=rootPath+path.replace(/::/g,"/")+"/"+pageType+"."+pageName+".html"+anchor}else{displayPath=item.path+"::";href=rootPath+item.path.replace(/::/g,"/")+"/"+type+"."+name+".html"}return[displayPath,href]}function escape(content){var h1=document.createElement("h1");h1.textContent=content;return h1.innerHTML}function pathSplitter(path){var tmp=""+path.replace(/::/g,"::");if(tmp.endsWith("")){return tmp.slice(0,tmp.length-6)}return tmp}function addTab(array,query,display){var extraStyle="";if(display===false){extraStyle=" style=\"display: none;\""}var output="";var duplicates={};var length=0;if(array.length>0){output="";array.forEach(function(item){var name,type;name=item.name;type=itemTypes[item.ty];if(item.is_alias!==true){if(duplicates[item.fullPath]){return}duplicates[item.fullPath]=true}length+=1;output+=""});output+="
"+""+(item.is_alias===true?(""+item.alias+"  - see "):"")+item.displayPath+""+name+""+""+""+item.desc+" 
"}else{output="
No results :(
"+"Try on DuckDuckGo?

"+"Or try looking in one of these:
"}return[output,length]}function makeTabHeader(tabNb,text,nbElems){if(currentTab===tabNb){return""}return""}function showResults(results){var search=getSearchElement();if(results.others.length===1&&getSettingValue("go-to-only-result")==="true"&&(!search.firstChild||search.firstChild.innerText!==getSearchLoadingText())){var elem=document.createElement("a");elem.href=results.others[0].href;elem.style.display="none";document.body.appendChild(elem);elem.click();return}var query=getQuery(search_input.value);currentResults=query.id;var ret_others=addTab(results.others,query);var ret_in_args=addTab(results.in_args,query,false);var ret_returned=addTab(results.returned,query,false);var output="

Results for "+escape(query.query)+(query.type?" (type: "+escape(query.type)+")":"")+"

"+"
"+makeTabHeader(0,"In Names",ret_others[1])+makeTabHeader(1,"In Parameters",ret_in_args[1])+makeTabHeader(2,"In Return Types",ret_returned[1])+"
"+ret_others[0]+ret_in_args[0]+ret_returned[0]+"
";search.innerHTML=output;showSearchResults(search);var tds=search.getElementsByTagName("td");var td_width=0;if(tds.length>0){td_width=tds[0].offsetWidth}var width=search.offsetWidth-40-td_width;onEachLazy(search.getElementsByClassName("desc"),function(e){e.style.width=width+"px"});initSearchNav();var elems=document.getElementById("titles").childNodes;elems[0].onclick=function(){printTab(0)};elems[1].onclick=function(){printTab(1)};elems[2].onclick=function(){printTab(2)};printTab(currentTab)}function execSearch(query,searchWords,filterCrates){function getSmallest(arrays,positions,notDuplicates){var start=null;for(var it=0;itpositions[it]&&(start===null||start>arrays[it][positions[it]].lev)&&!notDuplicates[arrays[it][positions[it]].fullPath]){start=arrays[it][positions[it]].lev}}return start}function mergeArrays(arrays){var ret=[];var positions=[];var notDuplicates={};for(var x=0;xpositions[x]&&arrays[x][positions[x]].lev===smallest&&!notDuplicates[arrays[x][positions[x]].fullPath]){ret.push(arrays[x][positions[x]]);notDuplicates[arrays[x][positions[x]].fullPath]=true;positions[x]+=1}}}return ret}var queries=query.raw.split(",");var results={"in_args":[],"returned":[],"others":[],};for(var i=0;i1){return{"in_args":mergeArrays(results.in_args),"returned":mergeArrays(results.returned),"others":mergeArrays(results.others),}}return{"in_args":results.in_args[0],"returned":results.returned[0],"others":results.others[0],}}function getFilterCrates(){var elem=document.getElementById("crate-search");if(elem&&elem.value!=="All crates"&&hasOwnProperty(rawSearchIndex,elem.value)){return elem.value}return undefined}function search(e,forced){var params=getQueryStringParams();var query=getQuery(search_input.value.trim());if(e){e.preventDefault()}if(query.query.length===0){return}if(forced!==true&&query.id===currentResults){if(query.query.length>0){putBackSearch(search_input)}return}searchTitle="Results for "+query.query+" - Rust";if(browserSupportsHistoryApi()){if(!history.state&&!params.search){history.pushState(query,"","?search="+encodeURIComponent(query.raw))}else{history.replaceState(query,"","?search="+encodeURIComponent(query.raw))}}var filterCrates=getFilterCrates();showResults(execSearch(query,index,filterCrates))}function buildIndex(rawSearchIndex){searchIndex=[];var searchWords=[];var i;var currentIndex=0;for(var crate in rawSearchIndex){if(!hasOwnProperty(rawSearchIndex,crate)){continue}var crateSize=0;searchWords.push(crate);searchIndex.push({crate:crate,ty:1,name:crate,path:"",desc:rawSearchIndex[crate].doc,type:null,});currentIndex+=1;var items=rawSearchIndex[crate].i;var paths=rawSearchIndex[crate].p;var aliases=rawSearchIndex[crate].a;var len=paths.length;for(i=0;i0){search_input.value=params.search;search(e)}else{search_input.value="";hideSearchResults()}})}search()}index=buildIndex(rawSearchIndex);startSearch();if(rootPath==="../"||rootPath==="./"){var sidebar=document.getElementsByClassName("sidebar-elems")[0];if(sidebar){var div=document.createElement("div");div.className="block crate";div.innerHTML="

Crates

";var ul=document.createElement("ul");div.appendChild(ul);var crates=[];for(var crate in rawSearchIndex){if(!hasOwnProperty(rawSearchIndex,crate)){continue}crates.push(crate)}crates.sort();for(var i=0;i','`').replace('','`');return x.innerText}window.initSidebarItems=function(items){var sidebar=document.getElementsByClassName("sidebar-elems")[0];var current=window.sidebarCurrent;function block(shortty,longty){var filtered=items[shortty];if(!filtered){return}var div=document.createElement("div");div.className="block "+shortty;var h3=document.createElement("h3");h3.textContent=longty;div.appendChild(h3);var ul=document.createElement("ul");var length=filtered.length;for(var i=0;i"+""+"
"+code.outerHTML+"
";list.appendChild(display)}}};if(window.pending_implementors){window.register_implementors(window.pending_implementors)}function labelForToggleButton(sectionIsCollapsed){if(sectionIsCollapsed){return"+"}return"\u2212"}function onEveryMatchingChild(elem,className,func){if(elem&&className&&func){var length=elem.childNodes.length;var nodes=elem.childNodes;for(var i=0;i"+labelForToggleButton(sectionIsCollapsed)+"
]";return toggle}function createToggle(toggle,otherMessage,fontSize,extraClass,show){var span=document.createElement("span");span.className="toggle-label";if(show){span.style.display="none"}if(!otherMessage){span.innerHTML=" Expand description"}else{span.innerHTML=otherMessage}if(fontSize){span.style.fontSize=fontSize}var mainToggle=toggle.cloneNode(true);mainToggle.appendChild(span);var wrapper=document.createElement("div");wrapper.className="toggle-wrapper";if(!show){addClass(wrapper,"collapsed");var inner=mainToggle.getElementsByClassName("inner");if(inner&&inner.length>0){inner[0].innerHTML="+"}}if(extraClass){addClass(wrapper,extraClass)}wrapper.appendChild(mainToggle);return wrapper}(function(){var toggles=document.getElementById(toggleAllDocsId);if(toggles){toggles.onclick=toggleAllDocs}var toggle=createSimpleToggle(false);var hideMethodDocs=getSettingValue("auto-hide-method-docs")==="true";var hideImplementors=getSettingValue("auto-collapse-implementors")!=="false";var pageId=getPageId();var func=function(e){var next=e.nextElementSibling;if(next&&hasClass(next,"item-info")){next=next.nextElementSibling}if(!next){return}if(hasClass(next,"docblock")){var newToggle=toggle.cloneNode(true);insertAfter(newToggle,e.childNodes[e.childNodes.length-1]);if(hideMethodDocs===true&&hasClass(e,"method")===true){collapseDocs(newToggle,"hide",pageId)}}};var funcImpl=function(e){var next=e.nextElementSibling;if(next&&hasClass(next,"item-info")){next=next.nextElementSibling}if(next&&hasClass(next,"docblock")){next=next.nextElementSibling}if(!next){return}if(hasClass(e,"impl")&&(next.getElementsByClassName("method").length>0||next.getElementsByClassName("associatedconstant").length>0)){var newToggle=toggle.cloneNode(true);insertAfter(newToggle,e.childNodes[e.childNodes.length-1]);if(hideImplementors===true&&e.parentNode.id==="implementors-list"){collapseDocs(newToggle,"hide",pageId)}}};onEachLazy(document.getElementsByClassName("method"),func);onEachLazy(document.getElementsByClassName("associatedconstant"),func);onEachLazy(document.getElementsByClassName("impl"),funcImpl);var impl_call=function(){};if(hideMethodDocs===true){impl_call=function(e,newToggle){if(e.id.match(/^impl(?:-\d+)?$/)===null){if(hasClass(e,"impl")===true){collapseDocs(newToggle,"hide",pageId)}}}}var newToggle=document.createElement("a");newToggle.href="javascript:void(0)";newToggle.className="collapse-toggle hidden-default collapsed";newToggle.innerHTML="["+labelForToggleButton(true)+"] Show hidden undocumented items";function toggleClicked(){if(hasClass(this,"collapsed")){removeClass(this,"collapsed");onEachLazy(this.parentNode.getElementsByClassName("hidden"),function(x){if(hasClass(x,"content")===false){removeClass(x,"hidden");addClass(x,"x")}},true);this.innerHTML="["+labelForToggleButton(false)+"] Hide undocumented items"}else{addClass(this,"collapsed");onEachLazy(this.parentNode.getElementsByClassName("x"),function(x){if(hasClass(x,"content")===false){addClass(x,"hidden");removeClass(x,"x")}},true);this.innerHTML="["+labelForToggleButton(true)+"] Show hidden undocumented items"}}onEachLazy(document.getElementsByClassName("impl-items"),function(e){onEachLazy(e.getElementsByClassName("associatedconstant"),func);var hiddenElems=e.getElementsByClassName("hidden");var needToggle=false;var hlength=hiddenElems.length;for(var i=0;i"+getSearchLoadingText()+"";showSearchResults(search)}var sidebar_menu=document.getElementsByClassName("sidebar-menu")[0];if(sidebar_menu){sidebar_menu.onclick=function(){var sidebar=document.getElementsByClassName("sidebar")[0];if(hasClass(sidebar,"mobile")===true){hideSidebar()}else{showSidebar()}}}if(main){onEachLazy(main.getElementsByClassName("loading-content"),function(e){e.remove()});onEachLazy(main.childNodes,function(e){if(e.tagName==="H2"||e.tagName==="H3"){var nextTagName=e.nextElementSibling.tagName;if(nextTagName=="H2"||nextTagName=="H3"){e.nextElementSibling.style.display="flex"}else{e.nextElementSibling.style.display="block"}}})}function enableSearchInput(){if(search_input){search_input.removeAttribute('disabled')}}window.addSearchOptions=function(crates){var elem=document.getElementById("crate-search");if(!elem){enableSearchInput();return}var crates_text=[];if(Object.keys(crates).length>1){for(var crate in crates){if(hasOwnProperty(crates,crate)){crates_text.push(crate)}}}crates_text.sort(function(a,b){var lower_a=a.toLowerCase();var lower_b=b.toLowerCase();if(lower_alower_b){return 1}return 0});var savedCrate=getSettingValue("saved-filter-crate");for(var i=0;ithe rustdoc book.";var container=document.createElement("div");var shortcuts=[["?","Show this help dialog"],["S","Focus the search field"],["T","Focus the theme picker menu"],["↑","Move up in search results"],["↓","Move down in search results"],["ctrl + ↑ / ↓","Switch result tab"],["⏎","Go to active search result"],["+","Expand all sections"],["-","Collapse all sections"],].map(x=>"
"+x[0].split(" ").map((y,index)=>(index&1)===0?""+y+"":y).join("")+"
"+x[1]+"
").join("");var div_shortcuts=document.createElement("div");addClass(div_shortcuts,"shortcuts");div_shortcuts.innerHTML="

Keyboard Shortcuts

"+shortcuts+"
";var infos=["Prefix searches with a type followed by a colon (e.g., fn:) to \ +if(!String.prototype.startsWith){String.prototype.startsWith=function(searchString,position){position=position||0;return this.indexOf(searchString,position)===position}}if(!String.prototype.endsWith){String.prototype.endsWith=function(suffix,length){var l=length||this.length;return this.indexOf(suffix,l-suffix.length)!==-1}}if(!DOMTokenList.prototype.add){DOMTokenList.prototype.add=function(className){if(className&&!hasClass(this,className)){if(this.className&&this.className.length>0){this.className+=" "+className}else{this.className=className}}}}if(!DOMTokenList.prototype.remove){DOMTokenList.prototype.remove=function(className){if(className&&this.className){this.className=(" "+this.className+" ").replace(" "+className+" "," ").trim()}}}(function(){var rustdocVars=document.getElementById("rustdoc-vars");if(rustdocVars){window.rootPath=rustdocVars.attributes["data-root-path"].value;window.currentCrate=rustdocVars.attributes["data-current-crate"].value}var sidebarVars=document.getElementById("sidebar-vars");if(sidebarVars){window.sidebarCurrent={name:sidebarVars.attributes["data-name"].value,ty:sidebarVars.attributes["data-ty"].value,relpath:sidebarVars.attributes["data-relpath"].value,}}}());function getVirtualKey(ev){if("key"in ev&&typeof ev.key!="undefined"){return ev.key}var c=ev.charCode||ev.keyCode;if(c==27){return"Escape"}return String.fromCharCode(c)}function getSearchInput(){return document.getElementsByClassName("search-input")[0]}function getSearchElement(){return document.getElementById("search")}function getThemesElement(){return document.getElementById("theme-choices")}function getThemePickerElement(){return document.getElementById("theme-picker")}function getNakedUrl(){return window.location.href.split("?")[0].split("#")[0]}function focusSearchBar(){getSearchInput().focus()}function defocusSearchBar(){getSearchInput().blur()}(function(){"use strict";var itemTypes=["mod","externcrate","import","struct","enum","fn","type","static","trait","impl","tymethod","method","structfield","variant","macro","primitive","associatedtype","constant","associatedconstant","union","foreigntype","keyword","existential","attr","derive","traitalias"];var disableShortcuts=getSettingValue("disable-shortcuts")==="true";var search_input=getSearchInput();var searchTimeout=null;var toggleAllDocsId="toggle-all-docs";var currentTab=0;var mouseMovedAfterSearch=true;var titleBeforeSearch=document.title;var searchTitle=null;function clearInputTimeout(){if(searchTimeout!==null){clearTimeout(searchTimeout);searchTimeout=null}}function getPageId(){if(window.location.hash){var tmp=window.location.hash.replace(/^#/,"");if(tmp.length>0){return tmp}}return null}function showSidebar(){var elems=document.getElementsByClassName("sidebar-elems")[0];if(elems){addClass(elems,"show-it")}var sidebar=document.getElementsByClassName("sidebar")[0];if(sidebar){addClass(sidebar,"mobile");var filler=document.getElementById("sidebar-filler");if(!filler){var div=document.createElement("div");div.id="sidebar-filler";sidebar.appendChild(div)}}}function hideSidebar(){var elems=document.getElementsByClassName("sidebar-elems")[0];if(elems){removeClass(elems,"show-it")}var sidebar=document.getElementsByClassName("sidebar")[0];removeClass(sidebar,"mobile");var filler=document.getElementById("sidebar-filler");if(filler){filler.remove()}document.getElementsByTagName("body")[0].style.marginTop=""}function showSearchResults(search){if(search===null||typeof search==='undefined'){search=getSearchElement()}addClass(main,"hidden");removeClass(search,"hidden");mouseMovedAfterSearch=false;document.title=searchTitle}function hideSearchResults(search){if(search===null||typeof search==='undefined'){search=getSearchElement()}addClass(search,"hidden");removeClass(main,"hidden");document.title=titleBeforeSearch}var TY_PRIMITIVE=itemTypes.indexOf("primitive");var TY_KEYWORD=itemTypes.indexOf("keyword");function getQueryStringParams(){var params={};window.location.search.substring(1).split("&").map(function(s){var pair=s.split("=");params[decodeURIComponent(pair[0])]=typeof pair[1]==="undefined"?null:decodeURIComponent(pair[1])});return params}function browserSupportsHistoryApi(){return window.history&&typeof window.history.pushState==="function"}function isHidden(elem){return elem.offsetHeight===0}var main=document.getElementById("main");var savedHash="";function handleHashes(ev){var elem;var search=getSearchElement();if(ev!==null&&search&&!hasClass(search,"hidden")&&ev.newURL){hideSearchResults(search);var hash=ev.newURL.slice(ev.newURL.indexOf("#")+1);if(browserSupportsHistoryApi()){history.replaceState(hash,"",getNakedUrl()+window.location.search+"#"+hash)}elem=document.getElementById(hash);if(elem){elem.scrollIntoView()}}if(savedHash!==window.location.hash){savedHash=window.location.hash;if(savedHash.length===0){return}elem=document.getElementById(savedHash.slice(1));if(!elem||!isHidden(elem)){return}var parent=elem.parentNode;if(parent&&hasClass(parent,"impl-items")){onEachLazy(parent.getElementsByClassName("collapsed"),function(e){if(e.parentNode===parent){e.click();return true}});if(isHidden(elem)){if(hasClass(parent.lastElementChild,"collapse-toggle")){parent.lastElementChild.click()}}}}}function highlightSourceLines(match,ev){if(typeof match==="undefined"){hideSidebar();match=window.location.hash.match(/^#?(\d+)(?:-(\d+))?$/)}if(!match){return}var from=parseInt(match[1],10);var to=from;if(typeof match[2]!=="undefined"){to=parseInt(match[2],10)}if(to0){collapseDocs(collapses[0],"show")}}}}function getHelpElement(){buildHelperPopup();return document.getElementById("help")}function displayHelp(display,ev,help){help=help?help:getHelpElement();if(display===true){if(hasClass(help,"hidden")){ev.preventDefault();removeClass(help,"hidden");addClass(document.body,"blur")}}else if(hasClass(help,"hidden")===false){ev.preventDefault();addClass(help,"hidden");removeClass(document.body,"blur")}}function handleEscape(ev){var help=getHelpElement();var search=getSearchElement();if(hasClass(help,"hidden")===false){displayHelp(false,ev,help)}else if(hasClass(search,"hidden")===false){clearInputTimeout();ev.preventDefault();hideSearchResults(search)}defocusSearchBar();hideThemeButtonState()}function handleShortcut(ev){if(ev.ctrlKey||ev.altKey||ev.metaKey||disableShortcuts===true){return}if(document.activeElement.tagName==="INPUT"){switch(getVirtualKey(ev)){case"Escape":handleEscape(ev);break}}else{switch(getVirtualKey(ev)){case"Escape":handleEscape(ev);break;case"s":case"S":displayHelp(false,ev);ev.preventDefault();focusSearchBar();break;case"+":case"-":ev.preventDefault();toggleAllDocs();break;case"?":displayHelp(true,ev);break;case"t":case"T":displayHelp(false,ev);ev.preventDefault();var themePicker=getThemePickerElement();themePicker.click();themePicker.focus();break;default:var themePicker=getThemePickerElement();if(themePicker.parentNode.contains(ev.target)){handleThemeKeyDown(ev)}}}}function handleThemeKeyDown(ev){var active=document.activeElement;var themes=getThemesElement();switch(getVirtualKey(ev)){case"ArrowUp":ev.preventDefault();if(active.previousElementSibling&&ev.target.id!=="theme-picker"){active.previousElementSibling.focus()}else{showThemeButtonState();themes.lastElementChild.focus()}break;case"ArrowDown":ev.preventDefault();if(active.nextElementSibling&&ev.target.id!=="theme-picker"){active.nextElementSibling.focus()}else{showThemeButtonState();themes.firstElementChild.focus()}break;case"Enter":case"Return":case"Space":if(ev.target.id==="theme-picker"&&themes.style.display==="none"){ev.preventDefault();showThemeButtonState();themes.firstElementChild.focus()}break;case"Home":ev.preventDefault();themes.firstElementChild.focus();break;case"End":ev.preventDefault();themes.lastElementChild.focus();break}}function findParentElement(elem,tagName){do{if(elem&&elem.tagName===tagName){return elem}elem=elem.parentNode}while(elem);return null}document.addEventListener("keypress",handleShortcut);document.addEventListener("keydown",handleShortcut);document.addEventListener("mousemove",function(){mouseMovedAfterSearch=true});var handleSourceHighlight=(function(){var prev_line_id=0;var set_fragment=function(name){var x=window.scrollX,y=window.scrollY;if(browserSupportsHistoryApi()){history.replaceState(null,null,"#"+name);highlightSourceLines()}else{location.replace("#"+name)}window.scrollTo(x,y)};return function(ev){var cur_line_id=parseInt(ev.target.id,10);ev.preventDefault();if(ev.shiftKey&&prev_line_id){if(prev_line_id>cur_line_id){var tmp=prev_line_id;prev_line_id=cur_line_id;cur_line_id=tmp}set_fragment(prev_line_id+"-"+cur_line_id)}else{prev_line_id=cur_line_id;set_fragment(cur_line_id)}}}());document.addEventListener("click",function(ev){if(hasClass(ev.target,"help-button")){displayHelp(true,ev)}else if(hasClass(ev.target,"collapse-toggle")){collapseDocs(ev.target,"toggle")}else if(hasClass(ev.target.parentNode,"collapse-toggle")){collapseDocs(ev.target.parentNode,"toggle")}else if(ev.target.tagName==="SPAN"&&hasClass(ev.target.parentNode,"line-numbers")){handleSourceHighlight(ev)}else if(hasClass(getHelpElement(),"hidden")===false){var help=getHelpElement();var is_inside_help_popup=ev.target!==help&&help.contains(ev.target);if(is_inside_help_popup===false){addClass(help,"hidden");removeClass(document.body,"blur")}}else{var a=findParentElement(ev.target,"A");if(a&&a.hash){expandSection(a.hash.replace(/^#/,""))}}});(function(){var x=document.getElementsByClassName("version-selector");if(x.length>0){x[0].onchange=function(){var i,match,url=document.location.href,stripped="",len=window.rootPath.match(/\.\.\//g).length+1;for(i=0;i-1){var obj=searchIndex[results[i].id];obj.lev=results[i].lev;if(isType!==true||obj.type){var res=buildHrefAndPath(obj);obj.displayPath=pathSplitter(res[0]);obj.fullPath=obj.displayPath+obj.name;obj.fullPath+="|"+obj.ty;obj.href=res[1];out.push(obj);if(out.length>=MAX_RESULTS){break}}}}return out}function sortResults(results,isType){var ar=[];for(var entry in results){if(hasOwnProperty(results,entry)){ar.push(results[entry])}}results=ar;var i,len,result;for(i=0,len=results.length;ib?+1:-1)}a=(aaa.index<0);b=(bbb.index<0);if(a!==b){return a-b}a=aaa.index;b=bbb.index;if(a!==b){return a-b}if((aaa.item.ty===TY_PRIMITIVE&&bbb.item.ty!==TY_KEYWORD)||(aaa.item.ty===TY_KEYWORD&&bbb.item.ty!==TY_PRIMITIVE)){return-1}if((bbb.item.ty===TY_PRIMITIVE&&aaa.item.ty!==TY_PRIMITIVE)||(bbb.item.ty===TY_KEYWORD&&aaa.item.ty!==TY_KEYWORD)){return 1}a=(aaa.item.desc==="");b=(bbb.item.desc==="");if(a!==b){return a-b}a=aaa.item.ty;b=bbb.item.ty;if(a!==b){return a-b}a=aaa.item.path;b=bbb.item.path;if(a!==b){return(a>b?+1:-1)}return 0});for(i=0,len=results.length;i"));return{name:val.substring(0,val.indexOf("<")),generics:values.split(/\s*,\s*/),}}return{name:val,generics:[],}}function getObjectFromId(id){if(typeof id==="number"){return searchIndex[id]}return{'name':id}}function checkGenerics(obj,val){var lev_distance=MAX_LEV_DISTANCE+1;if(val.generics.length>0){if(obj.length>GENERICS_DATA&&obj[GENERICS_DATA].length>=val.generics.length){var elems=obj[GENERICS_DATA].slice(0);var total=0;var done=0;var vlength=val.generics.length;for(var y=0;yGENERICS_DATA&&obj[GENERICS_DATA].length>=val.generics.length){var elems=obj[GENERICS_DATA].slice(0);var allFound=true;len=val.generics.length;for(y=0;allFound===true&&yGENERICS_DATA&&obj[GENERICS_DATA].length!==0){var tmp_lev=checkGenerics(obj,val);if(tmp_lev<=MAX_LEV_DISTANCE){return tmp_lev}}else{return 0}}if(literalSearch===true){if(obj.length>GENERICS_DATA&&obj[GENERICS_DATA].length>0){return obj[GENERICS_DATA].some(function(name){return name===val.name})}return false}lev_distance=Math.min(levenshtein(obj[NAME],val.name),lev_distance);if(lev_distance<=MAX_LEV_DISTANCE){lev_distance=Math.ceil((checkGenerics(obj,val)+lev_distance)/2)}else if(obj.length>GENERICS_DATA&&obj[GENERICS_DATA].length>0){var olength=obj[GENERICS_DATA].length;for(x=0;x0){var length=obj.type[INPUTS_DATA].length;for(var i=0;iOUTPUT_DATA){var ret=obj.type[OUTPUT_DATA];if(typeof ret[0]==="string"){ret=[ret]}for(var x=0,len=ret.length;xlength){return MAX_LEV_DISTANCE+1}for(var i=0;ilength){break}var lev_total=0;var aborted=false;for(var x=0;xMAX_LEV_DISTANCE){aborted=true;break}lev_total+=lev}if(aborted===false){ret_lev=Math.min(ret_lev,Math.round(lev_total/clength))}}return ret_lev}function typePassesFilter(filter,type){if(filter<=NO_TYPE_FILTER)return true;if(filter===type)return true;var name=itemTypes[type];switch(itemTypes[filter]){case"constant":return name==="associatedconstant";case"fn":return name==="method"||name==="tymethod";case"type":return name==="primitive"||name==="associatedtype";case"trait":return name==="traitalias"}return false}function generateId(ty){if(ty.parent&&ty.parent.name){return itemTypes[ty.ty]+ty.path+ty.parent.name+ty.name}return itemTypes[ty.ty]+ty.path+ty.name}function createAliasFromItem(item){return{crate:item.crate,name:item.name,path:item.path,desc:item.desc,ty:item.ty,parent:item.parent,type:item.type,is_alias:true,}}function handleAliases(ret,query,filterCrates){var aliases=[];var crateAliases=[];if(filterCrates!==undefined){if(ALIASES[filterCrates]&&ALIASES[filterCrates][query.search]){var query_aliases=ALIASES[filterCrates][query.search];var len=query_aliases.length;for(var i=0;iMAX_RESULTS){ret.others.pop()}};onEach(aliases,pushFunc);onEach(crateAliases,pushFunc)}var nSearchWords=searchWords.length;var i,it;var ty;var fullId;var returned;var in_args;var len;if((val.charAt(0)==="\""||val.charAt(0)==="'")&&val.charAt(val.length-1)===val.charAt(0)){val=extractGenerics(val.substr(1,val.length-2));for(i=0;i")>-1){var trimmer=function(s){return s.trim()};var parts=val.split("->").map(trimmer);var input=parts[0];var inputs=input.split(",").map(trimmer).sort();for(i=0,len=inputs.length;i1?paths.length-1:1);var lev;for(j=0;j1){lev=checkPath(contains,paths[paths.length-1],ty);if(lev>MAX_LEV_DISTANCE){continue}else if(lev>0){lev_add=lev/10}}returned=MAX_LEV_DISTANCE+1;in_args=MAX_LEV_DISTANCE+1;var index=-1;lev=MAX_LEV_DISTANCE+1;fullId=generateId(ty);if(searchWords[j].indexOf(split[i])>-1||searchWords[j].indexOf(val)>-1||searchWords[j].replace(/_/g,"").indexOf(val)>-1){if(typePassesFilter(typeFilter,ty.ty)&&results[fullId]===undefined){index=searchWords[j].replace(/_/g,"").indexOf(val)}}if((lev=levenshtein(searchWords[j],val))<=MAX_LEV_DISTANCE){if(typePassesFilter(typeFilter,ty.ty)===false){lev=MAX_LEV_DISTANCE+1}else{lev+=1}}in_args=findArg(ty,valGenerics,false,typeFilter);returned=checkReturned(ty,valGenerics,false,typeFilter);lev+=lev_add;if(lev>0&&val.length>3&&searchWords[j].indexOf(val)>-1){if(val.length<6){lev-=1}else{lev=0}}if(in_args<=MAX_LEV_DISTANCE){if(results_in_args[fullId]===undefined){results_in_args[fullId]={id:j,index:index,lev:in_args,}}results_in_args[fullId].lev=Math.min(results_in_args[fullId].lev,in_args)}if(returned<=MAX_LEV_DISTANCE){if(results_returned[fullId]===undefined){results_returned[fullId]={id:j,index:index,lev:returned,}}results_returned[fullId].lev=Math.min(results_returned[fullId].lev,returned)}if(index!==-1||lev<=MAX_LEV_DISTANCE){if(index!==-1&&paths.length<2){lev=0}if(results[fullId]===undefined){results[fullId]={id:j,index:index,lev:lev,}}results[fullId].lev=Math.min(results[fullId].lev,lev)}}}var ret={"in_args":sortResults(results_in_args,true),"returned":sortResults(results_returned,true),"others":sortResults(results),};handleAliases(ret,query,filterCrates);return ret}function validateResult(name,path,keys,parent){for(var i=0,len=keys.length;i-1||path.indexOf(keys[i])>-1||(parent!==undefined&&parent.name!==undefined&&parent.name.toLowerCase().indexOf(keys[i])>-1)||levenshtein(name,keys[i])<=MAX_LEV_DISTANCE)){return false}}return true}function getQuery(raw){var matches,type,query;query=raw;matches=query.match(/^(fn|mod|struct|enum|trait|type|const|macro)\s*:\s*/i);if(matches){type=matches[1].replace(/^const$/,"constant");query=query.substring(matches[0].length)}return{raw:raw,query:query,type:type,id:query+type}}function initSearchNav(){var hoverTimeout;var click_func=function(e){var el=e.target;while(el.tagName!=="TR"){el=el.parentNode}var dst=e.target.getElementsByTagName("a");if(dst.length<1){return}dst=dst[0];if(window.location.pathname===dst.pathname){hideSearchResults();document.location.href=dst.href}};var mouseover_func=function(e){if(mouseMovedAfterSearch){var el=e.target;while(el.tagName!=="TR"){el=el.parentNode}clearTimeout(hoverTimeout);hoverTimeout=setTimeout(function(){onEachLazy(document.getElementsByClassName("search-results"),function(e){onEachLazy(e.getElementsByClassName("result"),function(i_e){removeClass(i_e,"highlighted")})});addClass(el,"highlighted")},20)}};onEachLazy(document.getElementsByClassName("search-results"),function(e){onEachLazy(e.getElementsByClassName("result"),function(i_e){i_e.onclick=click_func;i_e.onmouseover=mouseover_func})});search_input.onkeydown=function(e){var actives=[[],[],[]];var current=0;onEachLazy(document.getElementById("results").childNodes,function(e){onEachLazy(e.getElementsByClassName("highlighted"),function(h_e){actives[current].push(h_e)});current+=1});if(e.which===38){if(e.ctrlKey){printTab(currentTab>0?currentTab-1:2)}else{if(!actives[currentTab].length||!actives[currentTab][0].previousElementSibling){return}addClass(actives[currentTab][0].previousElementSibling,"highlighted");removeClass(actives[currentTab][0],"highlighted")}e.preventDefault()}else if(e.which===40){if(e.ctrlKey){printTab(currentTab>1?0:currentTab+1)}else if(!actives[currentTab].length){var results=document.getElementById("results").childNodes;if(results.length>0){var res=results[currentTab].getElementsByClassName("result");if(res.length>0){addClass(res[0],"highlighted")}}}else if(actives[currentTab][0].nextElementSibling){addClass(actives[currentTab][0].nextElementSibling,"highlighted");removeClass(actives[currentTab][0],"highlighted")}e.preventDefault()}else if(e.which===13){if(actives[currentTab].length){document.location.href=actives[currentTab][0].getElementsByTagName("a")[0].href}}else if(e.which===16){}else if(actives[currentTab].length>0){removeClass(actives[currentTab][0],"highlighted")}}}function buildHrefAndPath(item){var displayPath;var href;var type=itemTypes[item.ty];var name=item.name;var path=item.path;if(type==="mod"){displayPath=path+"::";href=window.rootPath+path.replace(/::/g,"/")+"/"+name+"/index.html"}else if(type==="primitive"||type==="keyword"){displayPath="";href=window.rootPath+path.replace(/::/g,"/")+"/"+type+"."+name+".html"}else if(type==="externcrate"){displayPath="";href=window.rootPath+name+"/index.html"}else if(item.parent!==undefined){var myparent=item.parent;var anchor="#"+type+"."+name;var parentType=itemTypes[myparent.ty];var pageType=parentType;var pageName=myparent.name;if(parentType==="primitive"){displayPath=myparent.name+"::"}else if(type==="structfield"&&parentType==="variant"){var splitPath=item.path.split("::");var enumName=splitPath.pop();path=splitPath.join("::");displayPath=path+"::"+enumName+"::"+myparent.name+"::";anchor="#variant."+myparent.name+".field."+name;pageType="enum";pageName=enumName}else{displayPath=path+"::"+myparent.name+"::"}href=window.rootPath+path.replace(/::/g,"/")+"/"+pageType+"."+pageName+".html"+anchor}else{displayPath=item.path+"::";href=window.rootPath+item.path.replace(/::/g,"/")+"/"+type+"."+name+".html"}return[displayPath,href]}function escape(content){var h1=document.createElement("h1");h1.textContent=content;return h1.innerHTML}function pathSplitter(path){var tmp=""+path.replace(/::/g,"::");if(tmp.endsWith("")){return tmp.slice(0,tmp.length-6)}return tmp}function addTab(array,query,display){var extraStyle="";if(display===false){extraStyle=" style=\"display: none;\""}var output="";var duplicates={};var length=0;if(array.length>0){output="";array.forEach(function(item){var name,type;name=item.name;type=itemTypes[item.ty];if(item.is_alias!==true){if(duplicates[item.fullPath]){return}duplicates[item.fullPath]=true}length+=1;output+=""});output+="
"+""+(item.is_alias===true?(""+item.alias+"  - see "):"")+item.displayPath+""+name+""+""+""+item.desc+" 
"}else{output="
No results :(
"+"Try on DuckDuckGo?

"+"Or try looking in one of these:
"}return[output,length]}function makeTabHeader(tabNb,text,nbElems){if(currentTab===tabNb){return""}return""}function showResults(results){var search=getSearchElement();if(results.others.length===1&&getSettingValue("go-to-only-result")==="true"&&(!search.firstChild||search.firstChild.innerText!==getSearchLoadingText())){var elem=document.createElement("a");elem.href=results.others[0].href;elem.style.display="none";document.body.appendChild(elem);elem.click();return}var query=getQuery(search_input.value);currentResults=query.id;var ret_others=addTab(results.others,query);var ret_in_args=addTab(results.in_args,query,false);var ret_returned=addTab(results.returned,query,false);if((currentTab===0&&ret_others[1]===0)||(currentTab===1&&ret_in_args[1]===0)||(currentTab===2&&ret_returned[1]===0)){if(ret_others[1]!==0){currentTab=0}else if(ret_in_args[1]!==0){currentTab=1}else if(ret_returned[1]!==0){currentTab=2}}var output="

Results for "+escape(query.query)+(query.type?" (type: "+escape(query.type)+")":"")+"

"+"
"+makeTabHeader(0,"In Names",ret_others[1])+makeTabHeader(1,"In Parameters",ret_in_args[1])+makeTabHeader(2,"In Return Types",ret_returned[1])+"
"+ret_others[0]+ret_in_args[0]+ret_returned[0]+"
";search.innerHTML=output;showSearchResults(search);initSearchNav();var elems=document.getElementById("titles").childNodes;elems[0].onclick=function(){printTab(0)};elems[1].onclick=function(){printTab(1)};elems[2].onclick=function(){printTab(2)};printTab(currentTab)}function execSearch(query,searchWords,filterCrates){function getSmallest(arrays,positions,notDuplicates){var start=null;for(var it=0,len=positions.length;itpositions[it]&&(start===null||start>arrays[it][positions[it]].lev)&&!notDuplicates[arrays[it][positions[it]].fullPath]){start=arrays[it][positions[it]].lev}}return start}function mergeArrays(arrays){var ret=[];var positions=[];var notDuplicates={};for(var x=0,arrays_len=arrays.length;xpositions[x]&&arrays[x][positions[x]].lev===smallest&&!notDuplicates[arrays[x][positions[x]].fullPath]){ret.push(arrays[x][positions[x]]);notDuplicates[arrays[x][positions[x]].fullPath]=true;positions[x]+=1}}}return ret}var queries=query.raw.split(",");var results={"in_args":[],"returned":[],"others":[],};for(var i=0,len=queries.length;i1){return{"in_args":mergeArrays(results.in_args),"returned":mergeArrays(results.returned),"others":mergeArrays(results.others),}}return{"in_args":results.in_args[0],"returned":results.returned[0],"others":results.others[0],}}function getFilterCrates(){var elem=document.getElementById("crate-search");if(elem&&elem.value!=="All crates"&&hasOwnProperty(rawSearchIndex,elem.value)){return elem.value}return undefined}function search(e,forced){var params=getQueryStringParams();var query=getQuery(search_input.value.trim());if(e){e.preventDefault()}if(query.query.length===0){return}if(forced!==true&&query.id===currentResults){if(query.query.length>0){putBackSearch(search_input)}return}searchTitle="Results for "+query.query+" - Rust";if(browserSupportsHistoryApi()){var newURL=getNakedUrl()+"?search="+encodeURIComponent(query.raw)+window.location.hash;if(!history.state&&!params.search){history.pushState(query,"",newURL)}else{history.replaceState(query,"",newURL)}}var filterCrates=getFilterCrates();showResults(execSearch(query,index,filterCrates))}function buildIndex(rawSearchIndex){searchIndex=[];var searchWords=[];var i;var currentIndex=0;for(var crate in rawSearchIndex){if(!hasOwnProperty(rawSearchIndex,crate)){continue}var crateSize=0;searchWords.push(crate);searchIndex.push({crate:crate,ty:1,name:crate,path:"",desc:rawSearchIndex[crate].doc,type:null,});currentIndex+=1;var items=rawSearchIndex[crate].i;var paths=rawSearchIndex[crate].p;var aliases=rawSearchIndex[crate].a;var len=paths.length;for(i=0;i0){search_input.value=params.search;search(e)}else{search_input.value="";hideSearchResults()}})}search()}index=buildIndex(rawSearchIndex);startSearch();if(window.rootPath==="../"||window.rootPath==="./"){var sidebar=document.getElementsByClassName("sidebar-elems")[0];if(sidebar){var div=document.createElement("div");div.className="block crate";div.innerHTML="

Crates

";var ul=document.createElement("ul");div.appendChild(ul);var crates=[];for(var crate in rawSearchIndex){if(!hasOwnProperty(rawSearchIndex,crate)){continue}crates.push(crate)}crates.sort();for(var i=0;i','`').replace('','`');return x.innerText}window.initSidebarItems=function(items){var sidebar=document.getElementsByClassName("sidebar-elems")[0];var current=window.sidebarCurrent;function block(shortty,longty){var filtered=items[shortty];if(!filtered){return}var div=document.createElement("div");div.className="block "+shortty;var h3=document.createElement("h3");h3.textContent=longty;div.appendChild(h3);var ul=document.createElement("ul");for(var i=0,len=filtered.length;i"+""+"
"+code.outerHTML+"
";list.appendChild(display)}}};if(window.pending_implementors){window.register_implementors(window.pending_implementors)}function labelForToggleButton(sectionIsCollapsed){if(sectionIsCollapsed){return"+"}return"\u2212"}function onEveryMatchingChild(elem,className,func){if(elem&&className&&func){var length=elem.childNodes.length;var nodes=elem.childNodes;for(var i=0;i"+labelForToggleButton(sectionIsCollapsed)+"
]";return toggle}function createToggle(toggle,otherMessage,fontSize,extraClass,show){var span=document.createElement("span");span.className="toggle-label";if(show){span.style.display="none"}if(!otherMessage){span.innerHTML=" Expand description"}else{span.innerHTML=otherMessage}if(fontSize){span.style.fontSize=fontSize}var mainToggle=toggle.cloneNode(true);mainToggle.appendChild(span);var wrapper=document.createElement("div");wrapper.className="toggle-wrapper";if(!show){addClass(wrapper,"collapsed");var inner=mainToggle.getElementsByClassName("inner");if(inner&&inner.length>0){inner[0].innerHTML="+"}}if(extraClass){addClass(wrapper,extraClass)}wrapper.appendChild(mainToggle);return wrapper}(function(){var toggles=document.getElementById(toggleAllDocsId);if(toggles){toggles.onclick=toggleAllDocs}var toggle=createSimpleToggle(false);var hideMethodDocs=getSettingValue("auto-hide-method-docs")==="true";var hideImplementors=getSettingValue("auto-collapse-implementors")!=="false";var func=function(e){var next=e.nextElementSibling;if(next&&hasClass(next,"item-info")){next=next.nextElementSibling}if(!next){return}if(hasClass(next,"docblock")){var newToggle=toggle.cloneNode(true);insertAfter(newToggle,e.childNodes[e.childNodes.length-1]);if(hideMethodDocs===true&&hasClass(e,"method")===true){collapseDocs(newToggle,"hide")}}};var funcImpl=function(e){var next=e.nextElementSibling;if(next&&hasClass(next,"item-info")){next=next.nextElementSibling}if(next&&hasClass(next,"docblock")){next=next.nextElementSibling}if(!next){return}if(hasClass(e,"impl")&&(next.getElementsByClassName("method").length>0||next.getElementsByClassName("associatedconstant").length>0)){var newToggle=toggle.cloneNode(true);insertAfter(newToggle,e.childNodes[e.childNodes.length-1]);if(hideImplementors===true&&e.parentNode.id==="implementors-list"){collapseDocs(newToggle,"hide")}}};onEachLazy(document.getElementsByClassName("method"),func);onEachLazy(document.getElementsByClassName("associatedconstant"),func);onEachLazy(document.getElementsByClassName("impl"),funcImpl);var impl_call=function(){};if(hideMethodDocs===true){impl_call=function(e,newToggle){if(e.id.match(/^impl(?:-\d+)?$/)===null){if(hasClass(e,"impl")===true){collapseDocs(newToggle,"hide")}}}}var newToggle=document.createElement("a");newToggle.href="javascript:void(0)";newToggle.className="collapse-toggle hidden-default collapsed";newToggle.innerHTML="["+labelForToggleButton(true)+"] Show hidden undocumented items";function toggleClicked(){if(hasClass(this,"collapsed")){removeClass(this,"collapsed");onEachLazy(this.parentNode.getElementsByClassName("hidden"),function(x){if(hasClass(x,"content")===false){removeClass(x,"hidden");addClass(x,"x")}},true);this.innerHTML="["+labelForToggleButton(false)+"] Hide undocumented items"}else{addClass(this,"collapsed");onEachLazy(this.parentNode.getElementsByClassName("x"),function(x){if(hasClass(x,"content")===false){addClass(x,"hidden");removeClass(x,"x")}},true);this.innerHTML="["+labelForToggleButton(true)+"] Show hidden undocumented items"}}onEachLazy(document.getElementsByClassName("impl-items"),function(e){onEachLazy(e.getElementsByClassName("associatedconstant"),func);var hiddenElems=Array.prototype.slice.call(e.getElementsByClassName("hidden"));var needToggle=hiddenElems.some(function(hiddenElem){return hasClass(hiddenElem,"content")===false&&hasClass(hiddenElem,"docblock")===false});if(needToggle===true){var inner_toggle=newToggle.cloneNode(true);inner_toggle.onclick=toggleClicked;e.insertBefore(inner_toggle,e.firstChild);impl_call(e.previousSibling,inner_toggle)}});var currentType=document.getElementsByClassName("type-decl")[0];var className=null;if(currentType){currentType=currentType.getElementsByClassName("rust")[0];if(currentType){currentType.classList.forEach(function(item){if(item!=="main"){className=item;return true}})}}var showItemDeclarations=getSettingValue("auto-hide-"+className);if(showItemDeclarations===null){if(className==="enum"||className==="macro"){showItemDeclarations="false"}else if(className==="struct"||className==="union"||className==="trait"){showItemDeclarations="true"}else{showItemDeclarations=getSettingValue("auto-hide-declarations")}}showItemDeclarations=showItemDeclarations==="false";function buildToggleWrapper(e){if(hasClass(e,"autohide")){var wrap=e.previousElementSibling;if(wrap&&hasClass(wrap,"toggle-wrapper")){var inner_toggle=wrap.childNodes[0];var extra=e.childNodes[0].tagName==="H3";e.style.display="none";addClass(wrap,"collapsed");onEachLazy(inner_toggle.getElementsByClassName("inner"),function(e){e.innerHTML=labelForToggleButton(true)});onEachLazy(inner_toggle.getElementsByClassName("toggle-label"),function(e){e.style.display="inline-block";if(extra===true){e.innerHTML=" Show "+e.childNodes[0].innerHTML}})}}if(e.parentNode.id==="main"){var otherMessage="";var fontSize;var extraClass;if(hasClass(e,"type-decl")){fontSize="20px";otherMessage=" Show declaration";if(showItemDeclarations===false){extraClass="collapsed"}}else if(hasClass(e,"sub-variant")){otherMessage=" Show fields"}else if(hasClass(e,"non-exhaustive")){otherMessage=" This ";if(hasClass(e,"non-exhaustive-struct")){otherMessage+="struct"}else if(hasClass(e,"non-exhaustive-enum")){otherMessage+="enum"}else if(hasClass(e,"non-exhaustive-variant")){otherMessage+="enum variant"}else if(hasClass(e,"non-exhaustive-type")){otherMessage+="type"}otherMessage+=" is marked as non-exhaustive"}else if(hasClass(e.childNodes[0],"impl-items")){extraClass="marg-left"}e.parentNode.insertBefore(createToggle(toggle,otherMessage,fontSize,extraClass,hasClass(e,"type-decl")===false||showItemDeclarations===true),e);if(hasClass(e,"type-decl")===true&&showItemDeclarations===true){collapseDocs(e.previousSibling.childNodes[0],"toggle")}if(hasClass(e,"non-exhaustive")===true){collapseDocs(e.previousSibling.childNodes[0],"toggle")}}}onEachLazy(document.getElementsByClassName("docblock"),buildToggleWrapper);onEachLazy(document.getElementsByClassName("sub-variant"),buildToggleWrapper);autoCollapse(getSettingValue("collapse")==="true");var pageId=getPageId();if(pageId!==null){expandSection(pageId)}}());function createToggleWrapper(tog){var span=document.createElement("span");span.className="toggle-label";span.style.display="none";span.innerHTML=" Expand attributes";tog.appendChild(span);var wrapper=document.createElement("div");wrapper.className="toggle-wrapper toggle-attributes";wrapper.appendChild(tog);return wrapper}(function(){var itemAttributesFunc=function(){};if(getSettingValue("auto-hide-attributes")!=="false"){itemAttributesFunc=function(x){collapseDocs(x.previousSibling.childNodes[0],"toggle")}}var attributesToggle=createToggleWrapper(createSimpleToggle(false));onEachLazy(main.getElementsByClassName("attributes"),function(i_e){var attr_tog=attributesToggle.cloneNode(true);if(hasClass(i_e,"top-attr")===true){addClass(attr_tog,"top-attr")}i_e.parentNode.insertBefore(attr_tog,i_e);itemAttributesFunc(i_e)})}());(function(){var lineNumbersFunc=function(){};if(getSettingValue("line-numbers")==="true"){lineNumbersFunc=function(x){var count=x.textContent.split("\n").length;var elems=[];for(var i=0;i"+getSearchLoadingText()+"";showSearchResults(search)}var sidebar_menu=document.getElementsByClassName("sidebar-menu")[0];if(sidebar_menu){sidebar_menu.onclick=function(){var sidebar=document.getElementsByClassName("sidebar")[0];if(hasClass(sidebar,"mobile")===true){hideSidebar()}else{showSidebar()}}}if(main){onEachLazy(main.getElementsByClassName("loading-content"),function(e){e.remove()});onEachLazy(main.childNodes,function(e){if(e.tagName==="H2"||e.tagName==="H3"){var nextTagName=e.nextElementSibling.tagName;if(nextTagName=="H2"||nextTagName=="H3"){e.nextElementSibling.style.display="flex"}else{e.nextElementSibling.style.display="block"}}})}function enableSearchInput(){if(search_input){search_input.removeAttribute('disabled')}}window.addSearchOptions=function(crates){var elem=document.getElementById("crate-search");if(!elem){enableSearchInput();return}var crates_text=[];if(Object.keys(crates).length>1){for(var crate in crates){if(hasOwnProperty(crates,crate)){crates_text.push(crate)}}}crates_text.sort(function(a,b){var lower_a=a.toLowerCase();var lower_b=b.toLowerCase();if(lower_alower_b){return 1}return 0});var savedCrate=getSettingValue("saved-filter-crate");for(var i=0,len=crates_text.length;ithe rustdoc book.";var container=document.createElement("div");var shortcuts=[["?","Show this help dialog"],["S","Focus the search field"],["T","Focus the theme picker menu"],["↑","Move up in search results"],["↓","Move down in search results"],["ctrl + ↑ / ↓","Switch result tab"],["⏎","Go to active search result"],["+","Expand all sections"],["-","Collapse all sections"],].map(x=>"
"+x[0].split(" ").map((y,index)=>(index&1)===0?""+y+"":" "+y+" ").join("")+"
"+x[1]+"
").join("");var div_shortcuts=document.createElement("div");addClass(div_shortcuts,"shortcuts");div_shortcuts.innerHTML="

Keyboard Shortcuts

"+shortcuts+"
";var infos=["Prefix searches with a type followed by a colon (e.g., fn:) to \ restrict the search to a given item kind.","Accepted kinds are: fn, mod, struct, \ enum, trait, type, macro, \ and const.","Search functions by type signature (e.g., vec -> usize or \ diff --git a/proxy_wasm_experimental/all.html b/proxy_wasm_experimental/all.html index 0220b2a5..34392daa 100644 --- a/proxy_wasm_experimental/all.html +++ b/proxy_wasm_experimental/all.html @@ -1,6 +1,7 @@ List of all items in this crate

[] + Change settings

List of all items[] - List of all items

Structs

Enums

Traits

Functions

Typedefs

Constants

\ No newline at end of file +

Structs

Enums

Traits

Functions

Typedefs

Constants

+ \ No newline at end of file diff --git a/proxy_wasm_experimental/error/index.html b/proxy_wasm_experimental/error/index.html index 5d0a151e..68ae874b 100644 --- a/proxy_wasm_experimental/error/index.html +++ b/proxy_wasm_experimental/error/index.html @@ -1,10 +1,11 @@ proxy_wasm_experimental::error - Rust -

[][src]Module proxy_wasm_experimental::error

Structs

+

Module proxy_wasm_experimental::error[][src]

Structs

HostCallError

An error to call a Host ABI function.

HostResponseError

An error to parse the response from a Host ABI.

Type Definitions

Error

A boxed Error.

Result

A specialized Result type.

-
\ No newline at end of file +
+ \ No newline at end of file diff --git a/proxy_wasm_experimental/error/struct.HostCallError.html b/proxy_wasm_experimental/error/struct.HostCallError.html index f71fd66d..27edd97c 100644 --- a/proxy_wasm_experimental/error/struct.HostCallError.html +++ b/proxy_wasm_experimental/error/struct.HostCallError.html @@ -1,21 +1,22 @@ proxy_wasm_experimental::error::HostCallError - Rust -

[][src]Struct proxy_wasm_experimental::error::HostCallError

pub struct HostCallError<'a> { /* fields omitted */ }

An error to call a Host ABI function.

+

Struct proxy_wasm_experimental::error::HostCallError[][src]

pub struct HostCallError<'a> { /* fields omitted */ }

An error to call a Host ABI function.

Implementations

impl<'a> HostCallError<'a>[src]

pub fn module(&self) -> &'a str[src]

pub fn function(&self) -> &'a str[src]

pub fn status(&self) -> Status[src]

Trait Implementations

impl<'a> Debug for HostCallError<'a>[src]

impl<'a> Display for HostCallError<'a>[src]

impl<'a> Error for HostCallError<'a>[src]

Auto Trait Implementations

impl<'a> RefUnwindSafe for HostCallError<'a>[src]

impl<'a> Send for HostCallError<'a>[src]

impl<'a> Sync for HostCallError<'a>[src]

impl<'a> Unpin for HostCallError<'a>[src]

impl<'a> UnwindSafe for HostCallError<'a>[src]

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

-

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

-
\ No newline at end of file +

impl<'a> Error for HostCallError<'a>[src]

Auto Trait Implementations

impl<'a> RefUnwindSafe for HostCallError<'a>[src]

impl<'a> Send for HostCallError<'a>[src]

impl<'a> Sync for HostCallError<'a>[src]

impl<'a> Unpin for HostCallError<'a>[src]

impl<'a> UnwindSafe for HostCallError<'a>[src]

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

+

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

+
+ \ No newline at end of file diff --git a/proxy_wasm_experimental/error/struct.HostResponseError.html b/proxy_wasm_experimental/error/struct.HostResponseError.html index ff12d216..b106981b 100644 --- a/proxy_wasm_experimental/error/struct.HostResponseError.html +++ b/proxy_wasm_experimental/error/struct.HostResponseError.html @@ -1,21 +1,22 @@ proxy_wasm_experimental::error::HostResponseError - Rust -

[][src]Struct proxy_wasm_experimental::error::HostResponseError

pub struct HostResponseError<'a> { /* fields omitted */ }

An error to parse the response from a Host ABI.

+

Struct proxy_wasm_experimental::error::HostResponseError[][src]

pub struct HostResponseError<'a> { /* fields omitted */ }

An error to parse the response from a Host ABI.

Implementations

impl<'a> HostResponseError<'a>[src]

pub fn module(&self) -> &'a str[src]

pub fn function(&self) -> &'a str[src]

Trait Implementations

impl<'a> Debug for HostResponseError<'a>[src]

impl<'a> Display for HostResponseError<'a>[src]

impl<'a> Error for HostResponseError<'a>[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

-

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

-
\ No newline at end of file +

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

+

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

+
+ \ No newline at end of file diff --git a/proxy_wasm_experimental/error/type.Error.html b/proxy_wasm_experimental/error/type.Error.html index 9b1bad9c..9c17582e 100644 --- a/proxy_wasm_experimental/error/type.Error.html +++ b/proxy_wasm_experimental/error/type.Error.html @@ -1,5 +1,6 @@ proxy_wasm_experimental::error::Error - Rust -

[][src]Type Definition proxy_wasm_experimental::error::Error

type Error = Box<dyn Error + Send + Sync>;

A boxed Error.

-
\ No newline at end of file +

Type Definition proxy_wasm_experimental::error::Error[][src]

type Error = Box<dyn Error + Send + Sync>;

A boxed Error.

+
+ \ No newline at end of file diff --git a/proxy_wasm_experimental/error/type.Result.html b/proxy_wasm_experimental/error/type.Result.html index 44879cd6..00da5e3c 100644 --- a/proxy_wasm_experimental/error/type.Result.html +++ b/proxy_wasm_experimental/error/type.Result.html @@ -1,5 +1,6 @@ proxy_wasm_experimental::error::Result - Rust -

[][src]Type Definition proxy_wasm_experimental::error::Result

type Result<T> = Result<T, Error>;

A specialized Result type.

-
\ No newline at end of file +

Type Definition proxy_wasm_experimental::error::Result[][src]

type Result<T> = Result<T, Error>;

A specialized Result type.

+
+ \ No newline at end of file diff --git a/proxy_wasm_experimental/fn.proxy_abi_version_0_2_0.html b/proxy_wasm_experimental/fn.proxy_abi_version_0_2_0.html index a5acccd0..e3de264f 100644 --- a/proxy_wasm_experimental/fn.proxy_abi_version_0_2_0.html +++ b/proxy_wasm_experimental/fn.proxy_abi_version_0_2_0.html @@ -1,4 +1,5 @@ proxy_wasm_experimental::proxy_abi_version_0_2_0 - Rust -

[][src]Function proxy_wasm_experimental::proxy_abi_version_0_2_0

#[no_mangle]pub extern "C" fn proxy_abi_version_0_2_0()
\ No newline at end of file +

Function proxy_wasm_experimental::proxy_abi_version_0_2_0[][src]

#[no_mangle]pub extern "C" fn proxy_abi_version_0_2_0()
+ \ No newline at end of file diff --git a/proxy_wasm_experimental/fn.set_http_context.html b/proxy_wasm_experimental/fn.set_http_context.html index 560115f3..e1288694 100644 --- a/proxy_wasm_experimental/fn.set_http_context.html +++ b/proxy_wasm_experimental/fn.set_http_context.html @@ -1,4 +1,5 @@ proxy_wasm_experimental::set_http_context - Rust -

[][src]Function proxy_wasm_experimental::set_http_context

pub fn set_http_context<F>(callback: F) where
    F: FnMut(u32, u32) -> Box<dyn HttpContext> + 'static, 
\ No newline at end of file +

Function proxy_wasm_experimental::set_http_context[][src]

pub fn set_http_context<F>(callback: F) where
    F: FnMut(u32, u32) -> Box<dyn HttpContext> + 'static, 
+ \ No newline at end of file diff --git a/proxy_wasm_experimental/fn.set_log_level.html b/proxy_wasm_experimental/fn.set_log_level.html index 2deb7e41..45b2ab23 100644 --- a/proxy_wasm_experimental/fn.set_log_level.html +++ b/proxy_wasm_experimental/fn.set_log_level.html @@ -1,4 +1,5 @@ proxy_wasm_experimental::set_log_level - Rust -

[][src]Function proxy_wasm_experimental::set_log_level

pub fn set_log_level(level: LogLevel)
\ No newline at end of file +

Function proxy_wasm_experimental::set_log_level[][src]

pub fn set_log_level(level: LogLevel)
+ \ No newline at end of file diff --git a/proxy_wasm_experimental/fn.set_root_context.html b/proxy_wasm_experimental/fn.set_root_context.html index d39a09bd..be44eb94 100644 --- a/proxy_wasm_experimental/fn.set_root_context.html +++ b/proxy_wasm_experimental/fn.set_root_context.html @@ -1,4 +1,5 @@ proxy_wasm_experimental::set_root_context - Rust -

[][src]Function proxy_wasm_experimental::set_root_context

pub fn set_root_context<F>(callback: F) where
    F: FnMut(u32) -> Box<dyn RootContext> + 'static, 
\ No newline at end of file +

Function proxy_wasm_experimental::set_root_context[][src]

pub fn set_root_context<F>(callback: F) where
    F: FnMut(u32) -> Box<dyn RootContext> + 'static, 
+ \ No newline at end of file diff --git a/proxy_wasm_experimental/fn.set_stream_context.html b/proxy_wasm_experimental/fn.set_stream_context.html index ea576a9b..5b656bf3 100644 --- a/proxy_wasm_experimental/fn.set_stream_context.html +++ b/proxy_wasm_experimental/fn.set_stream_context.html @@ -1,4 +1,5 @@ proxy_wasm_experimental::set_stream_context - Rust -

[][src]Function proxy_wasm_experimental::set_stream_context

pub fn set_stream_context<F>(callback: F) where
    F: FnMut(u32, u32) -> Box<dyn StreamContext> + 'static, 
\ No newline at end of file +

Function proxy_wasm_experimental::set_stream_context[][src]

pub fn set_stream_context<F>(callback: F) where
    F: FnMut(u32, u32) -> Box<dyn StreamContext> + 'static, 
+ \ No newline at end of file diff --git a/proxy_wasm_experimental/hostcalls/constant.NO_BODY.html b/proxy_wasm_experimental/hostcalls/constant.NO_BODY.html index ca8af9a1..53f140f7 100644 --- a/proxy_wasm_experimental/hostcalls/constant.NO_BODY.html +++ b/proxy_wasm_experimental/hostcalls/constant.NO_BODY.html @@ -1,5 +1,6 @@ proxy_wasm_experimental::hostcalls::NO_BODY - Rust -

[][src]Constant proxy_wasm_experimental::hostcalls::NO_BODY

pub const NO_BODY: Option<&[u8]>;

Represents empty body.

-
\ No newline at end of file +

Constant proxy_wasm_experimental::hostcalls::NO_BODY[][src]

pub const NO_BODY: Option<&[u8]>;

Represents empty body.

+
+ \ No newline at end of file diff --git a/proxy_wasm_experimental/hostcalls/constant.NO_HEADERS.html b/proxy_wasm_experimental/hostcalls/constant.NO_HEADERS.html index f70807ed..da97b9bc 100644 --- a/proxy_wasm_experimental/hostcalls/constant.NO_HEADERS.html +++ b/proxy_wasm_experimental/hostcalls/constant.NO_HEADERS.html @@ -1,5 +1,6 @@ proxy_wasm_experimental::hostcalls::NO_HEADERS - Rust -

[][src]Constant proxy_wasm_experimental::hostcalls::NO_HEADERS

pub const NO_HEADERS: &[(&[u8], &[u8])];

Represents empty headers map.

-
\ No newline at end of file +

Constant proxy_wasm_experimental::hostcalls::NO_HEADERS[][src]

pub const NO_HEADERS: &[(&[u8], &[u8])];

Represents empty headers map.

+
+ \ No newline at end of file diff --git a/proxy_wasm_experimental/hostcalls/constant.NO_TRAILERS.html b/proxy_wasm_experimental/hostcalls/constant.NO_TRAILERS.html index 63ced9e7..c8431875 100644 --- a/proxy_wasm_experimental/hostcalls/constant.NO_TRAILERS.html +++ b/proxy_wasm_experimental/hostcalls/constant.NO_TRAILERS.html @@ -1,5 +1,6 @@ proxy_wasm_experimental::hostcalls::NO_TRAILERS - Rust -

[][src]Constant proxy_wasm_experimental::hostcalls::NO_TRAILERS

pub const NO_TRAILERS: &[(&[u8], &[u8])];

Represents empty trailers map.

-
\ No newline at end of file +

Constant proxy_wasm_experimental::hostcalls::NO_TRAILERS[][src]

pub const NO_TRAILERS: &[(&[u8], &[u8])];

Represents empty trailers map.

+
+ \ No newline at end of file diff --git a/proxy_wasm_experimental/hostcalls/fn.add_map_value.html b/proxy_wasm_experimental/hostcalls/fn.add_map_value.html index 033f382e..04964989 100644 --- a/proxy_wasm_experimental/hostcalls/fn.add_map_value.html +++ b/proxy_wasm_experimental/hostcalls/fn.add_map_value.html @@ -1,11 +1,12 @@ proxy_wasm_experimental::hostcalls::add_map_value - Rust -

[][src]Function proxy_wasm_experimental::hostcalls::add_map_value

pub fn add_map_value<K, V>(map_type: MapType, key: K, value: V) -> Result<()> where
    K: AsRef<[u8]>,
    V: AsRef<[u8]>, 

Adds a key-value pair to a given map.

+

Function proxy_wasm_experimental::hostcalls::add_map_value[][src]

pub fn add_map_value<K, V>(map_type: MapType, key: K, value: V) -> Result<()> where
    K: AsRef<[u8]>,
    V: AsRef<[u8]>, 

Adds a key-value pair to a given map.

Examples

 use proxy_wasm::hostcalls;
 use proxy_wasm::types::MapType;
 
 hostcalls::add_map_value(MapType::HttpRequestHeaders, "authorization", "Bearer ...")?;
-
\ No newline at end of file +
+ \ No newline at end of file diff --git a/proxy_wasm_experimental/hostcalls/fn.close_stream.html b/proxy_wasm_experimental/hostcalls/fn.close_stream.html index 962fc92d..c738f414 100644 --- a/proxy_wasm_experimental/hostcalls/fn.close_stream.html +++ b/proxy_wasm_experimental/hostcalls/fn.close_stream.html @@ -1,5 +1,6 @@ proxy_wasm_experimental::hostcalls::close_stream - Rust -

[][src]Function proxy_wasm_experimental::hostcalls::close_stream

pub fn close_stream(stream_type: StreamType) -> Result<()>

Terminates processing of a given stream, i.e. HTTP request or HTTP response.

-
\ No newline at end of file +

Function proxy_wasm_experimental::hostcalls::close_stream[][src]

pub fn close_stream(stream_type: StreamType) -> Result<()>

Terminates processing of a given stream, i.e. HTTP request or HTTP response.

+
+ \ No newline at end of file diff --git a/proxy_wasm_experimental/hostcalls/fn.continue_stream.html b/proxy_wasm_experimental/hostcalls/fn.continue_stream.html index 39597a10..44acf97d 100644 --- a/proxy_wasm_experimental/hostcalls/fn.continue_stream.html +++ b/proxy_wasm_experimental/hostcalls/fn.continue_stream.html @@ -1,5 +1,6 @@ proxy_wasm_experimental::hostcalls::continue_stream - Rust -

[][src]Function proxy_wasm_experimental::hostcalls::continue_stream

pub fn continue_stream(stream_type: StreamType) -> Result<()>

Resumes processing of a given stream, i.e. HTTP request or HTTP response.

-
\ No newline at end of file +

Function proxy_wasm_experimental::hostcalls::continue_stream[][src]

pub fn continue_stream(stream_type: StreamType) -> Result<()>

Resumes processing of a given stream, i.e. HTTP request or HTTP response.

+
+ \ No newline at end of file diff --git a/proxy_wasm_experimental/hostcalls/fn.define_metric.html b/proxy_wasm_experimental/hostcalls/fn.define_metric.html index 7856e522..97e2b280 100644 --- a/proxy_wasm_experimental/hostcalls/fn.define_metric.html +++ b/proxy_wasm_experimental/hostcalls/fn.define_metric.html @@ -1,4 +1,5 @@ proxy_wasm_experimental::hostcalls::define_metric - Rust -

[][src]Function proxy_wasm_experimental::hostcalls::define_metric

pub fn define_metric(metric_type: MetricType, name: &str) -> Result<u32>
\ No newline at end of file +

Function proxy_wasm_experimental::hostcalls::define_metric[][src]

pub fn define_metric(metric_type: MetricType, name: &str) -> Result<u32>
+ \ No newline at end of file diff --git a/proxy_wasm_experimental/hostcalls/fn.dequeue_shared_queue.html b/proxy_wasm_experimental/hostcalls/fn.dequeue_shared_queue.html index 0e68c1a9..a0008026 100644 --- a/proxy_wasm_experimental/hostcalls/fn.dequeue_shared_queue.html +++ b/proxy_wasm_experimental/hostcalls/fn.dequeue_shared_queue.html @@ -1,5 +1,6 @@ proxy_wasm_experimental::hostcalls::dequeue_shared_queue - Rust -

[][src]Function proxy_wasm_experimental::hostcalls::dequeue_shared_queue

pub fn dequeue_shared_queue(queue_id: u32) -> Result<Option<ByteString>>

Returns data from the end of a given queue.

-
\ No newline at end of file +

Function proxy_wasm_experimental::hostcalls::dequeue_shared_queue[][src]

pub fn dequeue_shared_queue(queue_id: u32) -> Result<Option<ByteString>>

Returns data from the end of a given queue.

+
+ \ No newline at end of file diff --git a/proxy_wasm_experimental/hostcalls/fn.dispatch_http_call.html b/proxy_wasm_experimental/hostcalls/fn.dispatch_http_call.html index 453dc982..cc5d6fea 100644 --- a/proxy_wasm_experimental/hostcalls/fn.dispatch_http_call.html +++ b/proxy_wasm_experimental/hostcalls/fn.dispatch_http_call.html @@ -1,7 +1,7 @@ proxy_wasm_experimental::hostcalls::dispatch_http_call - Rust -

[][src]Function proxy_wasm_experimental::hostcalls::dispatch_http_call

pub fn dispatch_http_call<K1, V1, K2, V2, B>(
    upstream: &str,
    headers: &[(K1, V1)],
    body: Option<B>,
    trailers: &[(K2, V2)],
    timeout: Duration
) -> Result<u32> where
    K1: AsRef<[u8]>,
    V1: AsRef<[u8]>,
    K2: AsRef<[u8]>,
    V2: AsRef<[u8]>,
    B: AsRef<[u8]>, 

Dispatches an HTTP call to a given upstream.

+

Function proxy_wasm_experimental::hostcalls::dispatch_http_call[][src]

pub fn dispatch_http_call<K1, V1, K2, V2, B>(
    upstream: &str,
    headers: &[(K1, V1)],
    body: Option<B>,
    trailers: &[(K2, V2)],
    timeout: Duration
) -> Result<u32> where
    K1: AsRef<[u8]>,
    V1: AsRef<[u8]>,
    K2: AsRef<[u8]>,
    V2: AsRef<[u8]>,
    B: AsRef<[u8]>, 

Dispatches an HTTP call to a given upstream.

Examples

 use std::time::Duration;
@@ -17,4 +17,5 @@ 

Examples

hostcalls::NO_TRAILERS, Duration::from_secs(10), )?;
-
\ No newline at end of file +
+ \ No newline at end of file diff --git a/proxy_wasm_experimental/hostcalls/fn.done.html b/proxy_wasm_experimental/hostcalls/fn.done.html index f58c69fe..598ab727 100644 --- a/proxy_wasm_experimental/hostcalls/fn.done.html +++ b/proxy_wasm_experimental/hostcalls/fn.done.html @@ -1,5 +1,6 @@ proxy_wasm_experimental::hostcalls::done - Rust -

[][src]Function proxy_wasm_experimental::hostcalls::done

pub fn done() -> Result<()>

Indicates to the host environment that Wasm VM side is done processing current context.

-
\ No newline at end of file +

Function proxy_wasm_experimental::hostcalls::done[][src]

pub fn done() -> Result<()>

Indicates to the host environment that Wasm VM side is done processing current context.

+
+ \ No newline at end of file diff --git a/proxy_wasm_experimental/hostcalls/fn.enqueue_shared_queue.html b/proxy_wasm_experimental/hostcalls/fn.enqueue_shared_queue.html index d951028c..6faf89a5 100644 --- a/proxy_wasm_experimental/hostcalls/fn.enqueue_shared_queue.html +++ b/proxy_wasm_experimental/hostcalls/fn.enqueue_shared_queue.html @@ -1,10 +1,11 @@ proxy_wasm_experimental::hostcalls::enqueue_shared_queue - Rust -

[][src]Function proxy_wasm_experimental::hostcalls::enqueue_shared_queue

pub fn enqueue_shared_queue<V>(queue_id: u32, value: Option<V>) -> Result<()> where
    V: AsRef<[u8]>, 

Adds a value to the front of a given queue.

+

Function proxy_wasm_experimental::hostcalls::enqueue_shared_queue[][src]

pub fn enqueue_shared_queue<V>(queue_id: u32, value: Option<V>) -> Result<()> where
    V: AsRef<[u8]>, 

Adds a value to the front of a given queue.

Examples

 use proxy_wasm::hostcalls;
 
 hostcalls::enqueue_shared_queue(1, Some("my value"))?;
-
\ No newline at end of file +
+ \ No newline at end of file diff --git a/proxy_wasm_experimental/hostcalls/fn.get_buffer.html b/proxy_wasm_experimental/hostcalls/fn.get_buffer.html index 61f87073..73712974 100644 --- a/proxy_wasm_experimental/hostcalls/fn.get_buffer.html +++ b/proxy_wasm_experimental/hostcalls/fn.get_buffer.html @@ -1,5 +1,6 @@ proxy_wasm_experimental::hostcalls::get_buffer - Rust -

[][src]Function proxy_wasm_experimental::hostcalls::get_buffer

pub fn get_buffer(
    buffer_type: BufferType,
    start: usize,
    max_size: usize
) -> Result<Option<ByteString>>

Returns content from a given buffer.

-
\ No newline at end of file +

Function proxy_wasm_experimental::hostcalls::get_buffer[][src]

pub fn get_buffer(
    buffer_type: BufferType,
    start: usize,
    max_size: usize
) -> Result<Option<ByteString>>

Returns content from a given buffer.

+
+ \ No newline at end of file diff --git a/proxy_wasm_experimental/hostcalls/fn.get_current_time.html b/proxy_wasm_experimental/hostcalls/fn.get_current_time.html index ac4e961c..759917fa 100644 --- a/proxy_wasm_experimental/hostcalls/fn.get_current_time.html +++ b/proxy_wasm_experimental/hostcalls/fn.get_current_time.html @@ -1,5 +1,6 @@ proxy_wasm_experimental::hostcalls::get_current_time - Rust -

[][src]Function proxy_wasm_experimental::hostcalls::get_current_time

pub fn get_current_time() -> Result<SystemTime>

Returns current system time.

-
\ No newline at end of file +

Function proxy_wasm_experimental::hostcalls::get_current_time[][src]

pub fn get_current_time() -> Result<SystemTime>

Returns current system time.

+
+ \ No newline at end of file diff --git a/proxy_wasm_experimental/hostcalls/fn.get_map.html b/proxy_wasm_experimental/hostcalls/fn.get_map.html index 6b1a9769..186f25df 100644 --- a/proxy_wasm_experimental/hostcalls/fn.get_map.html +++ b/proxy_wasm_experimental/hostcalls/fn.get_map.html @@ -1,5 +1,6 @@ proxy_wasm_experimental::hostcalls::get_map - Rust -

[][src]Function proxy_wasm_experimental::hostcalls::get_map

pub fn get_map(map_type: MapType) -> Result<Vec<(ByteString, ByteString)>>

Returns all key-value pairs from a given map.

-
\ No newline at end of file +

Function proxy_wasm_experimental::hostcalls::get_map[][src]

pub fn get_map(map_type: MapType) -> Result<Vec<(ByteString, ByteString)>>

Returns all key-value pairs from a given map.

+
+ \ No newline at end of file diff --git a/proxy_wasm_experimental/hostcalls/fn.get_map_value.html b/proxy_wasm_experimental/hostcalls/fn.get_map_value.html index f6e38b45..8c014f4a 100644 --- a/proxy_wasm_experimental/hostcalls/fn.get_map_value.html +++ b/proxy_wasm_experimental/hostcalls/fn.get_map_value.html @@ -1,11 +1,12 @@ proxy_wasm_experimental::hostcalls::get_map_value - Rust -

[][src]Function proxy_wasm_experimental::hostcalls::get_map_value

pub fn get_map_value<K>(map_type: MapType, key: K) -> Result<Option<ByteString>> where
    K: AsRef<[u8]>, 

Returns value of a given key from a given map.

+

Function proxy_wasm_experimental::hostcalls::get_map_value[][src]

pub fn get_map_value<K>(map_type: MapType, key: K) -> Result<Option<ByteString>> where
    K: AsRef<[u8]>, 

Returns value of a given key from a given map.

Examples

 use proxy_wasm::hostcalls;
 use proxy_wasm::types::MapType;
 
 let value = hostcalls::get_map_value(MapType::HttpRequestHeaders, "authorization")?;
-
\ No newline at end of file +
+ \ No newline at end of file diff --git a/proxy_wasm_experimental/hostcalls/fn.get_metric.html b/proxy_wasm_experimental/hostcalls/fn.get_metric.html index 7b63799d..eaac2fe5 100644 --- a/proxy_wasm_experimental/hostcalls/fn.get_metric.html +++ b/proxy_wasm_experimental/hostcalls/fn.get_metric.html @@ -1,4 +1,5 @@ proxy_wasm_experimental::hostcalls::get_metric - Rust -

[][src]Function proxy_wasm_experimental::hostcalls::get_metric

pub fn get_metric(metric_id: u32) -> Result<u64>
\ No newline at end of file +

Function proxy_wasm_experimental::hostcalls::get_metric[][src]

pub fn get_metric(metric_id: u32) -> Result<u64>
+ \ No newline at end of file diff --git a/proxy_wasm_experimental/hostcalls/fn.get_property.html b/proxy_wasm_experimental/hostcalls/fn.get_property.html index 1b8ca614..8b3479f3 100644 --- a/proxy_wasm_experimental/hostcalls/fn.get_property.html +++ b/proxy_wasm_experimental/hostcalls/fn.get_property.html @@ -1,10 +1,11 @@ proxy_wasm_experimental::hostcalls::get_property - Rust -

[][src]Function proxy_wasm_experimental::hostcalls::get_property

pub fn get_property<P>(path: &[P]) -> Result<Option<ByteString>> where
    P: AsRef<str>, 

Returns value of a property in the current context.

+

Function proxy_wasm_experimental::hostcalls::get_property[][src]

pub fn get_property<P>(path: &[P]) -> Result<Option<ByteString>> where
    P: AsRef<str>, 

Returns value of a property in the current context.

Examples

 use proxy_wasm::hostcalls;
 
 let value = hostcalls::get_property(&["request", "time"])?;
-
\ No newline at end of file +
+ \ No newline at end of file diff --git a/proxy_wasm_experimental/hostcalls/fn.get_shared_data.html b/proxy_wasm_experimental/hostcalls/fn.get_shared_data.html index 45441c48..64d979d7 100644 --- a/proxy_wasm_experimental/hostcalls/fn.get_shared_data.html +++ b/proxy_wasm_experimental/hostcalls/fn.get_shared_data.html @@ -1,10 +1,11 @@ proxy_wasm_experimental::hostcalls::get_shared_data - Rust -

[][src]Function proxy_wasm_experimental::hostcalls::get_shared_data

pub fn get_shared_data<K>(key: K) -> Result<(Option<ByteString>, Option<u32>)> where
    K: AsRef<str>, 

Returns shared data by key.

+

Function proxy_wasm_experimental::hostcalls::get_shared_data[][src]

pub fn get_shared_data<K>(key: K) -> Result<(Option<ByteString>, Option<u32>)> where
    K: AsRef<str>, 

Returns shared data by key.

Examples

 use proxy_wasm::hostcalls;
 
 let (data, version) = hostcalls::get_shared_data("my_shared_key")?;
-
\ No newline at end of file +
+ \ No newline at end of file diff --git a/proxy_wasm_experimental/hostcalls/fn.increment_metric.html b/proxy_wasm_experimental/hostcalls/fn.increment_metric.html index 46b196fe..e31e9bd4 100644 --- a/proxy_wasm_experimental/hostcalls/fn.increment_metric.html +++ b/proxy_wasm_experimental/hostcalls/fn.increment_metric.html @@ -1,4 +1,5 @@ proxy_wasm_experimental::hostcalls::increment_metric - Rust -

[][src]Function proxy_wasm_experimental::hostcalls::increment_metric

pub fn increment_metric(metric_id: u32, offset: i64) -> Result<()>
\ No newline at end of file +

Function proxy_wasm_experimental::hostcalls::increment_metric[][src]

pub fn increment_metric(metric_id: u32, offset: i64) -> Result<()>
+ \ No newline at end of file diff --git a/proxy_wasm_experimental/hostcalls/fn.log.html b/proxy_wasm_experimental/hostcalls/fn.log.html index 47213296..16c0bfef 100644 --- a/proxy_wasm_experimental/hostcalls/fn.log.html +++ b/proxy_wasm_experimental/hostcalls/fn.log.html @@ -1,5 +1,6 @@ proxy_wasm_experimental::hostcalls::log - Rust -

[][src]Function proxy_wasm_experimental::hostcalls::log

pub fn log(level: LogLevel, message: &str) -> Result<()>

Logs a message at a given log level.

-
\ No newline at end of file +

Function proxy_wasm_experimental::hostcalls::log[][src]

pub fn log(level: LogLevel, message: &str) -> Result<()>

Logs a message at a given log level.

+
+ \ No newline at end of file diff --git a/proxy_wasm_experimental/hostcalls/fn.record_metric.html b/proxy_wasm_experimental/hostcalls/fn.record_metric.html index 772badfc..174c6ef1 100644 --- a/proxy_wasm_experimental/hostcalls/fn.record_metric.html +++ b/proxy_wasm_experimental/hostcalls/fn.record_metric.html @@ -1,4 +1,5 @@ proxy_wasm_experimental::hostcalls::record_metric - Rust -

[][src]Function proxy_wasm_experimental::hostcalls::record_metric

pub fn record_metric(metric_id: u32, value: u64) -> Result<()>
\ No newline at end of file +

Function proxy_wasm_experimental::hostcalls::record_metric[][src]

pub fn record_metric(metric_id: u32, value: u64) -> Result<()>
+ \ No newline at end of file diff --git a/proxy_wasm_experimental/hostcalls/fn.register_shared_queue.html b/proxy_wasm_experimental/hostcalls/fn.register_shared_queue.html index c4826a58..883c99d1 100644 --- a/proxy_wasm_experimental/hostcalls/fn.register_shared_queue.html +++ b/proxy_wasm_experimental/hostcalls/fn.register_shared_queue.html @@ -1,5 +1,6 @@ proxy_wasm_experimental::hostcalls::register_shared_queue - Rust -

[][src]Function proxy_wasm_experimental::hostcalls::register_shared_queue

pub fn register_shared_queue(name: &str) -> Result<u32>

Registers a shared queue with a given name.

-
\ No newline at end of file +

Function proxy_wasm_experimental::hostcalls::register_shared_queue[][src]

pub fn register_shared_queue(name: &str) -> Result<u32>

Registers a shared queue with a given name.

+
+ \ No newline at end of file diff --git a/proxy_wasm_experimental/hostcalls/fn.resolve_shared_queue.html b/proxy_wasm_experimental/hostcalls/fn.resolve_shared_queue.html index d7b5f68b..38edc185 100644 --- a/proxy_wasm_experimental/hostcalls/fn.resolve_shared_queue.html +++ b/proxy_wasm_experimental/hostcalls/fn.resolve_shared_queue.html @@ -1,5 +1,6 @@ proxy_wasm_experimental::hostcalls::resolve_shared_queue - Rust -

[][src]Function proxy_wasm_experimental::hostcalls::resolve_shared_queue

pub fn resolve_shared_queue(vm_id: &str, name: &str) -> Result<Option<u32>>

Looks up for an existing shared queue with a given name.

-
\ No newline at end of file +

Function proxy_wasm_experimental::hostcalls::resolve_shared_queue[][src]

pub fn resolve_shared_queue(vm_id: &str, name: &str) -> Result<Option<u32>>

Looks up for an existing shared queue with a given name.

+
+ \ No newline at end of file diff --git a/proxy_wasm_experimental/hostcalls/fn.send_http_response.html b/proxy_wasm_experimental/hostcalls/fn.send_http_response.html index 972a430d..9d4fad2a 100644 --- a/proxy_wasm_experimental/hostcalls/fn.send_http_response.html +++ b/proxy_wasm_experimental/hostcalls/fn.send_http_response.html @@ -1,7 +1,7 @@ proxy_wasm_experimental::hostcalls::send_http_response - Rust -

[][src]Function proxy_wasm_experimental::hostcalls::send_http_response

pub fn send_http_response<K, V, B>(
    status_code: u32,
    headers: &[(K, V)],
    body: Option<B>
) -> Result<()> where
    K: AsRef<[u8]>,
    V: AsRef<[u8]>,
    B: AsRef<[u8]>, 

Sends HTTP response without forwarding request to the upstream.

+

Function proxy_wasm_experimental::hostcalls::send_http_response[][src]

pub fn send_http_response<K, V, B>(
    status_code: u32,
    headers: &[(K, V)],
    body: Option<B>
) -> Result<()> where
    K: AsRef<[u8]>,
    V: AsRef<[u8]>,
    B: AsRef<[u8]>, 

Sends HTTP response without forwarding request to the upstream.

Examples

 use proxy_wasm::hostcalls;
@@ -11,4 +11,5 @@ 

Examples

hostcalls::NO_HEADERS, hostcalls::NO_BODY, )?;
-
\ No newline at end of file +
+ \ No newline at end of file diff --git a/proxy_wasm_experimental/hostcalls/fn.set_buffer.html b/proxy_wasm_experimental/hostcalls/fn.set_buffer.html index 01b4e5b5..7e6743be 100644 --- a/proxy_wasm_experimental/hostcalls/fn.set_buffer.html +++ b/proxy_wasm_experimental/hostcalls/fn.set_buffer.html @@ -1,11 +1,12 @@ proxy_wasm_experimental::hostcalls::set_buffer - Rust -

[][src]Function proxy_wasm_experimental::hostcalls::set_buffer

pub fn set_buffer<B>(
    buffer_type: BufferType,
    start: usize,
    size: usize,
    value: B
) -> Result<()> where
    B: AsRef<[u8]>, 

Mutates content in a given buffer.

+

Function proxy_wasm_experimental::hostcalls::set_buffer[][src]

pub fn set_buffer<B>(
    buffer_type: BufferType,
    start: usize,
    size: usize,
    value: B
) -> Result<()> where
    B: AsRef<[u8]>, 

Mutates content in a given buffer.

Examples

 use proxy_wasm::hostcalls;
 use proxy_wasm::types::BufferType;
 
 hostcalls::set_buffer(BufferType::HttpRequestBody, 0, usize::MAX, "replacement text")?;
-
\ No newline at end of file +
+ \ No newline at end of file diff --git a/proxy_wasm_experimental/hostcalls/fn.set_effective_context.html b/proxy_wasm_experimental/hostcalls/fn.set_effective_context.html index ba27eedd..f02ee6dc 100644 --- a/proxy_wasm_experimental/hostcalls/fn.set_effective_context.html +++ b/proxy_wasm_experimental/hostcalls/fn.set_effective_context.html @@ -1,5 +1,6 @@ proxy_wasm_experimental::hostcalls::set_effective_context - Rust -

[][src]Function proxy_wasm_experimental::hostcalls::set_effective_context

pub fn set_effective_context(context_id: u32) -> Result<()>

Changes the effective context.

-
\ No newline at end of file +

Function proxy_wasm_experimental::hostcalls::set_effective_context[][src]

pub fn set_effective_context(context_id: u32) -> Result<()>

Changes the effective context.

+
+ \ No newline at end of file diff --git a/proxy_wasm_experimental/hostcalls/fn.set_map.html b/proxy_wasm_experimental/hostcalls/fn.set_map.html index 93e88bcf..9b3487a2 100644 --- a/proxy_wasm_experimental/hostcalls/fn.set_map.html +++ b/proxy_wasm_experimental/hostcalls/fn.set_map.html @@ -1,7 +1,7 @@ proxy_wasm_experimental::hostcalls::set_map - Rust -

[][src]Function proxy_wasm_experimental::hostcalls::set_map

pub fn set_map<K, V>(map_type: MapType, map: &[(K, V)]) -> Result<()> where
    K: AsRef<[u8]>,
    V: AsRef<[u8]>, 

Sets all key-value pairs in a given map.

+

Function proxy_wasm_experimental::hostcalls::set_map[][src]

pub fn set_map<K, V>(map_type: MapType, map: &[(K, V)]) -> Result<()> where
    K: AsRef<[u8]>,
    V: AsRef<[u8]>, 

Sets all key-value pairs in a given map.

Examples

 use proxy_wasm::hostcalls;
@@ -11,4 +11,5 @@ 

Examples

(":method", "GET"), (":path", "/stuff"), ])?;
-
\ No newline at end of file +
+ \ No newline at end of file diff --git a/proxy_wasm_experimental/hostcalls/fn.set_map_value.html b/proxy_wasm_experimental/hostcalls/fn.set_map_value.html index e18c8f24..5e263f21 100644 --- a/proxy_wasm_experimental/hostcalls/fn.set_map_value.html +++ b/proxy_wasm_experimental/hostcalls/fn.set_map_value.html @@ -1,11 +1,12 @@ proxy_wasm_experimental::hostcalls::set_map_value - Rust -

[][src]Function proxy_wasm_experimental::hostcalls::set_map_value

pub fn set_map_value<K, V>(
    map_type: MapType,
    key: K,
    value: Option<V>
) -> Result<()> where
    K: AsRef<[u8]>,
    V: AsRef<[u8]>, 

Sets / replaces / removes value of given key from a given map.

+

Function proxy_wasm_experimental::hostcalls::set_map_value[][src]

pub fn set_map_value<K, V>(
    map_type: MapType,
    key: K,
    value: Option<V>
) -> Result<()> where
    K: AsRef<[u8]>,
    V: AsRef<[u8]>, 

Sets / replaces / removes value of given key from a given map.

Examples

 use proxy_wasm::hostcalls;
 use proxy_wasm::types::MapType;
 
 hostcalls::set_map_value(MapType::HttpRequestHeaders, "authorization", Some("Bearer ..."))?;
-
\ No newline at end of file +
+ \ No newline at end of file diff --git a/proxy_wasm_experimental/hostcalls/fn.set_property.html b/proxy_wasm_experimental/hostcalls/fn.set_property.html index 1b9c1095..c29d7a9d 100644 --- a/proxy_wasm_experimental/hostcalls/fn.set_property.html +++ b/proxy_wasm_experimental/hostcalls/fn.set_property.html @@ -1,10 +1,11 @@ proxy_wasm_experimental::hostcalls::set_property - Rust -

[][src]Function proxy_wasm_experimental::hostcalls::set_property

pub fn set_property<P, V>(path: &[P], value: Option<V>) -> Result<()> where
    P: AsRef<str>,
    V: AsRef<[u8]>, 

Sets property to a given value in the current context.

+

Function proxy_wasm_experimental::hostcalls::set_property[][src]

pub fn set_property<P, V>(path: &[P], value: Option<V>) -> Result<()> where
    P: AsRef<str>,
    V: AsRef<[u8]>, 

Sets property to a given value in the current context.

Examples

 use proxy_wasm::hostcalls;
 
 hostcalls::set_property(&["my_filter", "my_property"], Some("my value"))?;
-
\ No newline at end of file +
+ \ No newline at end of file diff --git a/proxy_wasm_experimental/hostcalls/fn.set_shared_data.html b/proxy_wasm_experimental/hostcalls/fn.set_shared_data.html index 6be78cad..ca91ae88 100644 --- a/proxy_wasm_experimental/hostcalls/fn.set_shared_data.html +++ b/proxy_wasm_experimental/hostcalls/fn.set_shared_data.html @@ -1,10 +1,11 @@ proxy_wasm_experimental::hostcalls::set_shared_data - Rust -

[][src]Function proxy_wasm_experimental::hostcalls::set_shared_data

pub fn set_shared_data<K, V>(
    key: K,
    value: Option<V>,
    cas: Option<u32>
) -> Result<()> where
    K: AsRef<str>,
    V: AsRef<[u8]>, 

Sets shared data by key.

+

Function proxy_wasm_experimental::hostcalls::set_shared_data[][src]

pub fn set_shared_data<K, V>(
    key: K,
    value: Option<V>,
    cas: Option<u32>
) -> Result<()> where
    K: AsRef<str>,
    V: AsRef<[u8]>, 

Sets shared data by key.

Examples

 use proxy_wasm::hostcalls;
 
 hostcalls::set_shared_data("my_shared_key", Some("my value"), None)?;
-
\ No newline at end of file +
+ \ No newline at end of file diff --git a/proxy_wasm_experimental/hostcalls/fn.set_tick_period.html b/proxy_wasm_experimental/hostcalls/fn.set_tick_period.html index 20143836..e38d8337 100644 --- a/proxy_wasm_experimental/hostcalls/fn.set_tick_period.html +++ b/proxy_wasm_experimental/hostcalls/fn.set_tick_period.html @@ -1,5 +1,6 @@ proxy_wasm_experimental::hostcalls::set_tick_period - Rust -

[][src]Function proxy_wasm_experimental::hostcalls::set_tick_period

pub fn set_tick_period(period: Duration) -> Result<()>

Sets the timer to a given period.

-
\ No newline at end of file +

Function proxy_wasm_experimental::hostcalls::set_tick_period[][src]

pub fn set_tick_period(period: Duration) -> Result<()>

Sets the timer to a given period.

+
+ \ No newline at end of file diff --git a/proxy_wasm_experimental/hostcalls/index.html b/proxy_wasm_experimental/hostcalls/index.html index d0d4a3c0..d5d01308 100644 --- a/proxy_wasm_experimental/hostcalls/index.html +++ b/proxy_wasm_experimental/hostcalls/index.html @@ -1,7 +1,7 @@ proxy_wasm_experimental::hostcalls - Rust -

[][src]Module proxy_wasm_experimental::hostcalls

Constants

+

Module proxy_wasm_experimental::hostcalls[][src]

Constants

NO_BODY

Represents empty body.

NO_HEADERS

Represents empty headers map.

NO_TRAILERS

Represents empty trailers map.

@@ -30,4 +30,5 @@
set_property

Sets property to a given value in the current context.

set_shared_data

Sets shared data by key.

set_tick_period

Sets the timer to a given period.

-
\ No newline at end of file +
+ \ No newline at end of file diff --git a/proxy_wasm_experimental/index.html b/proxy_wasm_experimental/index.html index f78cf4ba..29de1a29 100644 --- a/proxy_wasm_experimental/index.html +++ b/proxy_wasm_experimental/index.html @@ -1,6 +1,7 @@ proxy_wasm_experimental - Rust -

[][src]Crate proxy_wasm_experimental

Modules

+

Crate proxy_wasm_experimental[][src]

Modules

error
hostcalls
traits
types

Functions

-
proxy_abi_version_0_2_0
set_http_context
set_log_level
set_root_context
set_stream_context
\ No newline at end of file +
proxy_abi_version_0_2_0
set_http_context
set_log_level
set_root_context
set_stream_context
+ \ No newline at end of file diff --git a/proxy_wasm_experimental/traits/index.html b/proxy_wasm_experimental/traits/index.html index 8be29c04..78d620b6 100644 --- a/proxy_wasm_experimental/traits/index.html +++ b/proxy_wasm_experimental/traits/index.html @@ -1,5 +1,6 @@ proxy_wasm_experimental::traits - Rust -

[][src]Module proxy_wasm_experimental::traits

Traits

-
Context
HttpContext
RootContext
StreamContext
\ No newline at end of file +

Module proxy_wasm_experimental::traits[][src]

Traits

+
Context
HttpContext
RootContext
StreamContext
+ \ No newline at end of file diff --git a/proxy_wasm_experimental/traits/trait.Context.html b/proxy_wasm_experimental/traits/trait.Context.html index 4cfb031b..f97e3917 100644 --- a/proxy_wasm_experimental/traits/trait.Context.html +++ b/proxy_wasm_experimental/traits/trait.Context.html @@ -1,7 +1,7 @@ proxy_wasm_experimental::traits::Context - Rust -

[][src]Trait proxy_wasm_experimental::traits::Context

pub trait Context {
+

Trait proxy_wasm_experimental::traits::Context[][src]

pub trait Context {
     fn get_current_time(&self) -> SystemTime { ... }
 
fn get_property(&self, path: Vec<&str>) -> Option<ByteString> { ... }
fn set_property(&self, path: Vec<&str>, value: Option<&[u8]>) { ... } @@ -18,4 +18,5 @@
fn get_http_call_response_trailers(&self) -> Vec<(ByteString, ByteString)> { ... }
fn on_done(&mut self) -> bool { ... }
fn done(&self) { ... } -}

Provided methods

fn get_current_time(&self) -> SystemTime[src]

fn get_property(&self, path: Vec<&str>) -> Option<ByteString>[src]

fn set_property(&self, path: Vec<&str>, value: Option<&[u8]>)[src]

fn get_shared_data(&self, key: &str) -> (Option<ByteString>, Option<u32>)[src]

fn set_shared_data(
    &self,
    key: &str,
    value: Option<&[u8]>,
    cas: Option<u32>
) -> Result<()>
[src]

fn register_shared_queue(&self, name: &str) -> u32[src]

fn resolve_shared_queue(&self, vm_id: &str, name: &str) -> Option<u32>[src]

fn dequeue_shared_queue(&self, queue_id: u32) -> Result<Option<ByteString>>[src]

fn enqueue_shared_queue(
    &self,
    queue_id: u32,
    value: Option<&[u8]>
) -> Result<()>
[src]

fn dispatch_http_call(
    &self,
    upstream: &str,
    headers: Vec<(&str, &str)>,
    body: Option<&[u8]>,
    trailers: Vec<(&str, &str)>,
    timeout: Duration
) -> Result<u32>
[src]

fn on_http_call_response(
    &mut self,
    _token_id: u32,
    _num_headers: usize,
    _body_size: usize,
    _num_trailers: usize
)
[src]

fn get_http_call_response_headers(&self) -> Vec<(ByteString, ByteString)>[src]

fn get_http_call_response_body(
    &self,
    start: usize,
    max_size: usize
) -> Option<ByteString>
[src]

fn get_http_call_response_trailers(&self) -> Vec<(ByteString, ByteString)>[src]

fn on_done(&mut self) -> bool[src]

fn done(&self)[src]

Loading content...

Implementors

Loading content...
\ No newline at end of file +}

Provided methods

fn get_current_time(&self) -> SystemTime[src]

fn get_property(&self, path: Vec<&str>) -> Option<ByteString>[src]

fn set_property(&self, path: Vec<&str>, value: Option<&[u8]>)[src]

fn get_shared_data(&self, key: &str) -> (Option<ByteString>, Option<u32>)[src]

fn set_shared_data(
    &self,
    key: &str,
    value: Option<&[u8]>,
    cas: Option<u32>
) -> Result<()>
[src]

fn register_shared_queue(&self, name: &str) -> u32[src]

fn resolve_shared_queue(&self, vm_id: &str, name: &str) -> Option<u32>[src]

fn dequeue_shared_queue(&self, queue_id: u32) -> Result<Option<ByteString>>[src]

fn enqueue_shared_queue(
    &self,
    queue_id: u32,
    value: Option<&[u8]>
) -> Result<()>
[src]

fn dispatch_http_call(
    &self,
    upstream: &str,
    headers: Vec<(&str, &str)>,
    body: Option<&[u8]>,
    trailers: Vec<(&str, &str)>,
    timeout: Duration
) -> Result<u32>
[src]

fn on_http_call_response(
    &mut self,
    _token_id: u32,
    _num_headers: usize,
    _body_size: usize,
    _num_trailers: usize
)
[src]

fn get_http_call_response_headers(&self) -> Vec<(ByteString, ByteString)>[src]

fn get_http_call_response_body(
    &self,
    start: usize,
    max_size: usize
) -> Option<ByteString>
[src]

fn get_http_call_response_trailers(&self) -> Vec<(ByteString, ByteString)>[src]

fn on_done(&mut self) -> bool[src]

fn done(&self)[src]

Loading content...

Implementors

Loading content...
+ \ No newline at end of file diff --git a/proxy_wasm_experimental/traits/trait.HttpContext.html b/proxy_wasm_experimental/traits/trait.HttpContext.html index bea126ec..cd170aa1 100644 --- a/proxy_wasm_experimental/traits/trait.HttpContext.html +++ b/proxy_wasm_experimental/traits/trait.HttpContext.html @@ -1,7 +1,7 @@ proxy_wasm_experimental::traits::HttpContext - Rust -

[][src]Trait proxy_wasm_experimental::traits::HttpContext

pub trait HttpContext: Context {
+

Trait proxy_wasm_experimental::traits::HttpContext[][src]

pub trait HttpContext: Context {
     fn on_http_request_headers(
        &mut self,
        _num_headers: usize,
        _end_of_stream: bool
    ) -> Action { ... }
fn get_http_request_headers(&self) -> Vec<(ByteString, ByteString)> { ... }
fn set_http_request_headers(&self, headers: Vec<(&str, &str)>) { ... } @@ -36,4 +36,5 @@
fn resume_http_response(&self) { ... }
fn send_http_response(
        &self,
        status_code: u32,
        headers: Vec<(&str, &str)>,
        body: Option<&[u8]>
    ) { ... }
fn on_log(&mut self) { ... } -}

Provided methods

fn on_http_request_headers(
    &mut self,
    _num_headers: usize,
    _end_of_stream: bool
) -> Action
[src]

fn get_http_request_headers(&self) -> Vec<(ByteString, ByteString)>[src]

fn set_http_request_headers(&self, headers: Vec<(&str, &str)>)[src]

fn get_http_request_header(&self, name: &str) -> Option<ByteString>[src]

fn set_http_request_header(&self, name: &str, value: Option<&str>)[src]

fn add_http_request_header(&self, name: &str, value: &str)[src]

fn on_http_request_body(
    &mut self,
    _body_size: usize,
    _end_of_stream: bool
) -> Action
[src]

fn get_http_request_body(
    &self,
    start: usize,
    max_size: usize
) -> Option<ByteString>
[src]

fn set_http_request_body(&self, start: usize, size: usize, value: &[u8])[src]

fn on_http_request_trailers(&mut self, _num_trailers: usize) -> Action[src]

fn get_http_request_trailers(&self) -> Vec<(ByteString, ByteString)>[src]

fn set_http_request_trailers(&self, trailers: Vec<(&str, &str)>)[src]

fn get_http_request_trailer(&self, name: &str) -> Option<ByteString>[src]

fn set_http_request_trailer(&self, name: &str, value: Option<&str>)[src]

fn add_http_request_trailer(&self, name: &str, value: &str)[src]

fn resume_http_request(&self)[src]

fn on_http_response_headers(
    &mut self,
    _num_headers: usize,
    _end_of_stream: bool
) -> Action
[src]

fn get_http_response_headers(&self) -> Vec<(ByteString, ByteString)>[src]

fn set_http_response_headers(&self, headers: Vec<(&str, &str)>)[src]

fn get_http_response_header(&self, name: &str) -> Option<ByteString>[src]

fn set_http_response_header(&self, name: &str, value: Option<&str>)[src]

fn add_http_response_header(&self, name: &str, value: &str)[src]

fn on_http_response_body(
    &mut self,
    _body_size: usize,
    _end_of_stream: bool
) -> Action
[src]

fn get_http_response_body(
    &self,
    start: usize,
    max_size: usize
) -> Option<ByteString>
[src]

fn set_http_response_body(&self, start: usize, size: usize, value: &[u8])[src]

fn on_http_response_trailers(&mut self, _num_trailers: usize) -> Action[src]

fn get_http_response_trailers(&self) -> Vec<(ByteString, ByteString)>[src]

fn set_http_response_trailers(&self, headers: Vec<(&str, &str)>)[src]

fn get_http_response_trailer(&self, name: &str) -> Option<ByteString>[src]

fn set_http_response_trailer(&self, name: &str, value: Option<&str>)[src]

fn add_http_response_trailer(&self, name: &str, value: &str)[src]

fn resume_http_response(&self)[src]

fn send_http_response(
    &self,
    status_code: u32,
    headers: Vec<(&str, &str)>,
    body: Option<&[u8]>
)
[src]

fn on_log(&mut self)[src]

Loading content...

Implementors

Loading content...
\ No newline at end of file +}

Provided methods

fn on_http_request_headers(
    &mut self,
    _num_headers: usize,
    _end_of_stream: bool
) -> Action
[src]

fn get_http_request_headers(&self) -> Vec<(ByteString, ByteString)>[src]

fn set_http_request_headers(&self, headers: Vec<(&str, &str)>)[src]

fn get_http_request_header(&self, name: &str) -> Option<ByteString>[src]

fn set_http_request_header(&self, name: &str, value: Option<&str>)[src]

fn add_http_request_header(&self, name: &str, value: &str)[src]

fn on_http_request_body(
    &mut self,
    _body_size: usize,
    _end_of_stream: bool
) -> Action
[src]

fn get_http_request_body(
    &self,
    start: usize,
    max_size: usize
) -> Option<ByteString>
[src]

fn set_http_request_body(&self, start: usize, size: usize, value: &[u8])[src]

fn on_http_request_trailers(&mut self, _num_trailers: usize) -> Action[src]

fn get_http_request_trailers(&self) -> Vec<(ByteString, ByteString)>[src]

fn set_http_request_trailers(&self, trailers: Vec<(&str, &str)>)[src]

fn get_http_request_trailer(&self, name: &str) -> Option<ByteString>[src]

fn set_http_request_trailer(&self, name: &str, value: Option<&str>)[src]

fn add_http_request_trailer(&self, name: &str, value: &str)[src]

fn resume_http_request(&self)[src]

fn on_http_response_headers(
    &mut self,
    _num_headers: usize,
    _end_of_stream: bool
) -> Action
[src]

fn get_http_response_headers(&self) -> Vec<(ByteString, ByteString)>[src]

fn set_http_response_headers(&self, headers: Vec<(&str, &str)>)[src]

fn get_http_response_header(&self, name: &str) -> Option<ByteString>[src]

fn set_http_response_header(&self, name: &str, value: Option<&str>)[src]

fn add_http_response_header(&self, name: &str, value: &str)[src]

fn on_http_response_body(
    &mut self,
    _body_size: usize,
    _end_of_stream: bool
) -> Action
[src]

fn get_http_response_body(
    &self,
    start: usize,
    max_size: usize
) -> Option<ByteString>
[src]

fn set_http_response_body(&self, start: usize, size: usize, value: &[u8])[src]

fn on_http_response_trailers(&mut self, _num_trailers: usize) -> Action[src]

fn get_http_response_trailers(&self) -> Vec<(ByteString, ByteString)>[src]

fn set_http_response_trailers(&self, headers: Vec<(&str, &str)>)[src]

fn get_http_response_trailer(&self, name: &str) -> Option<ByteString>[src]

fn set_http_response_trailer(&self, name: &str, value: Option<&str>)[src]

fn add_http_response_trailer(&self, name: &str, value: &str)[src]

fn resume_http_response(&self)[src]

fn send_http_response(
    &self,
    status_code: u32,
    headers: Vec<(&str, &str)>,
    body: Option<&[u8]>
)
[src]

fn on_log(&mut self)[src]

Loading content...

Implementors

Loading content...
+ \ No newline at end of file diff --git a/proxy_wasm_experimental/traits/trait.RootContext.html b/proxy_wasm_experimental/traits/trait.RootContext.html index 4f9e0463..3d2450d7 100644 --- a/proxy_wasm_experimental/traits/trait.RootContext.html +++ b/proxy_wasm_experimental/traits/trait.RootContext.html @@ -1,7 +1,7 @@ proxy_wasm_experimental::traits::RootContext - Rust -

[][src]Trait proxy_wasm_experimental::traits::RootContext

pub trait RootContext: Context {
+

Trait proxy_wasm_experimental::traits::RootContext[][src]

pub trait RootContext: Context {
     fn on_vm_start(&mut self, _vm_configuration_size: usize) -> bool { ... }
 
fn on_configure(&mut self, _plugin_configuration_size: usize) -> bool { ... }
fn set_tick_period(&self, period: Duration) { ... } @@ -11,4 +11,5 @@
fn create_http_context(
        &self,
        _context_id: u32
    ) -> Option<Box<dyn HttpContext>> { ... }
fn create_stream_context(
        &self,
        _context_id: u32
    ) -> Option<Box<dyn StreamContext>> { ... }
fn get_type(&self) -> Option<ContextType> { ... } -}

Provided methods

fn on_vm_start(&mut self, _vm_configuration_size: usize) -> bool[src]

fn on_configure(&mut self, _plugin_configuration_size: usize) -> bool[src]

fn set_tick_period(&self, period: Duration)[src]

fn on_tick(&mut self)[src]

fn on_queue_ready(&mut self, _queue_id: u32)[src]

fn on_log(&mut self)[src]

fn create_http_context(&self, _context_id: u32) -> Option<Box<dyn HttpContext>>[src]

fn create_stream_context(
    &self,
    _context_id: u32
) -> Option<Box<dyn StreamContext>>
[src]

fn get_type(&self) -> Option<ContextType>[src]

Loading content...

Implementors

Loading content...
\ No newline at end of file +}

Provided methods

fn on_vm_start(&mut self, _vm_configuration_size: usize) -> bool[src]

fn on_configure(&mut self, _plugin_configuration_size: usize) -> bool[src]

fn set_tick_period(&self, period: Duration)[src]

fn on_tick(&mut self)[src]

fn on_queue_ready(&mut self, _queue_id: u32)[src]

fn on_log(&mut self)[src]

fn create_http_context(&self, _context_id: u32) -> Option<Box<dyn HttpContext>>[src]

fn create_stream_context(
    &self,
    _context_id: u32
) -> Option<Box<dyn StreamContext>>
[src]

fn get_type(&self) -> Option<ContextType>[src]

Loading content...

Implementors

Loading content...
+ \ No newline at end of file diff --git a/proxy_wasm_experimental/traits/trait.StreamContext.html b/proxy_wasm_experimental/traits/trait.StreamContext.html index 5d9843d2..1b70431e 100644 --- a/proxy_wasm_experimental/traits/trait.StreamContext.html +++ b/proxy_wasm_experimental/traits/trait.StreamContext.html @@ -1,7 +1,7 @@ proxy_wasm_experimental::traits::StreamContext - Rust -

[][src]Trait proxy_wasm_experimental::traits::StreamContext

pub trait StreamContext: Context {
+

Trait proxy_wasm_experimental::traits::StreamContext[][src]

pub trait StreamContext: Context {
     fn on_new_connection(&mut self) -> Action { ... }
 
fn on_downstream_data(
        &mut self,
        _data_size: usize,
        _end_of_stream: bool
    ) -> Action { ... }
fn get_downstream_data(
        &self,
        start: usize,
        max_size: usize
    ) -> Option<ByteString> { ... } @@ -12,4 +12,5 @@
fn set_upstream_data(&self, start: usize, size: usize, value: &[u8]) { ... }
fn on_upstream_close(&mut self, _peer_type: PeerType) { ... }
fn on_log(&mut self) { ... } -}

Provided methods

fn on_new_connection(&mut self) -> Action[src]

fn on_downstream_data(
    &mut self,
    _data_size: usize,
    _end_of_stream: bool
) -> Action
[src]

fn get_downstream_data(
    &self,
    start: usize,
    max_size: usize
) -> Option<ByteString>
[src]

fn set_downstream_data(&self, start: usize, size: usize, value: &[u8])[src]

fn on_downstream_close(&mut self, _peer_type: PeerType)[src]

fn on_upstream_data(
    &mut self,
    _data_size: usize,
    _end_of_stream: bool
) -> Action
[src]

fn get_upstream_data(&self, start: usize, max_size: usize) -> Option<ByteString>[src]

fn set_upstream_data(&self, start: usize, size: usize, value: &[u8])[src]

fn on_upstream_close(&mut self, _peer_type: PeerType)[src]

fn on_log(&mut self)[src]

Loading content...

Implementors

Loading content...
\ No newline at end of file +}

Provided methods

fn on_new_connection(&mut self) -> Action[src]

fn on_downstream_data(
    &mut self,
    _data_size: usize,
    _end_of_stream: bool
) -> Action
[src]

fn get_downstream_data(
    &self,
    start: usize,
    max_size: usize
) -> Option<ByteString>
[src]

fn set_downstream_data(&self, start: usize, size: usize, value: &[u8])[src]

fn on_downstream_close(&mut self, _peer_type: PeerType)[src]

fn on_upstream_data(
    &mut self,
    _data_size: usize,
    _end_of_stream: bool
) -> Action
[src]

fn get_upstream_data(&self, start: usize, max_size: usize) -> Option<ByteString>[src]

fn set_upstream_data(&self, start: usize, size: usize, value: &[u8])[src]

fn on_upstream_close(&mut self, _peer_type: PeerType)[src]

fn on_log(&mut self)[src]

Loading content...

Implementors

Loading content...
+ \ No newline at end of file diff --git a/proxy_wasm_experimental/types/enum.Action.html b/proxy_wasm_experimental/types/enum.Action.html index ffcc8869..6887ecb9 100644 --- a/proxy_wasm_experimental/types/enum.Action.html +++ b/proxy_wasm_experimental/types/enum.Action.html @@ -1,30 +1,31 @@ proxy_wasm_experimental::types::Action - Rust -

[][src]Enum proxy_wasm_experimental::types::Action

#[repr(u32)]pub enum Action {
+

Enum proxy_wasm_experimental::types::Action[][src]

#[repr(u32)]pub enum Action {
     Continue,
     Pause,
 }

Variants

Continue
Pause

Trait Implementations

impl Clone for Action[src]

impl Copy for Action[src]

impl Debug for Action[src]

impl Eq for Action[src]

impl Hash for Action[src]

impl PartialEq<Action> for Action[src]

impl StructuralEq for Action[src]

impl StructuralPartialEq for Action[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> CallHasher for T where
    T: Hash

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl StructuralEq for Action[src]

impl StructuralPartialEq for Action[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> CallHasher for T where
    T: Hash

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

-

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

-

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

-
\ No newline at end of file +

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

+

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

+
+ \ No newline at end of file diff --git a/proxy_wasm_experimental/types/enum.BufferType.html b/proxy_wasm_experimental/types/enum.BufferType.html index 424ac485..0db5b0e9 100644 --- a/proxy_wasm_experimental/types/enum.BufferType.html +++ b/proxy_wasm_experimental/types/enum.BufferType.html @@ -1,7 +1,7 @@ proxy_wasm_experimental::types::BufferType - Rust -

[][src]Enum proxy_wasm_experimental::types::BufferType

#[repr(u32)]pub enum BufferType {
+

Enum proxy_wasm_experimental::types::BufferType[][src]

#[repr(u32)]pub enum BufferType {
     HttpRequestBody,
     HttpResponseBody,
     DownstreamData,
@@ -14,24 +14,25 @@
 }

Variants

HttpRequestBody
HttpResponseBody
DownstreamData
UpstreamData
HttpCallResponseBody
GrpcReceiveBuffer
VmConfiguration
PluginConfiguration
CallData

Trait Implementations

impl Clone for BufferType[src]

impl Copy for BufferType[src]

impl Debug for BufferType[src]

impl Eq for BufferType[src]

impl Hash for BufferType[src]

impl PartialEq<BufferType> for BufferType[src]

impl StructuralEq for BufferType[src]

impl StructuralPartialEq for BufferType[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> CallHasher for T where
    T: Hash

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl StructuralEq for BufferType[src]

impl StructuralPartialEq for BufferType[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> CallHasher for T where
    T: Hash

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

-

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

-

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

-
\ No newline at end of file +

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

+

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

+
+ \ No newline at end of file diff --git a/proxy_wasm_experimental/types/enum.ContextType.html b/proxy_wasm_experimental/types/enum.ContextType.html index 1653e3fc..9b9a9986 100644 --- a/proxy_wasm_experimental/types/enum.ContextType.html +++ b/proxy_wasm_experimental/types/enum.ContextType.html @@ -1,30 +1,31 @@ proxy_wasm_experimental::types::ContextType - Rust -

[][src]Enum proxy_wasm_experimental::types::ContextType

#[repr(u32)]pub enum ContextType {
+

Enum proxy_wasm_experimental::types::ContextType[][src]

#[repr(u32)]pub enum ContextType {
     HttpContext,
     StreamContext,
 }

Variants

HttpContext
StreamContext

Trait Implementations

impl Clone for ContextType[src]

impl Copy for ContextType[src]

impl Debug for ContextType[src]

impl Eq for ContextType[src]

impl Hash for ContextType[src]

impl PartialEq<ContextType> for ContextType[src]

impl StructuralEq for ContextType[src]

impl StructuralPartialEq for ContextType[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> CallHasher for T where
    T: Hash

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl StructuralEq for ContextType[src]

impl StructuralPartialEq for ContextType[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> CallHasher for T where
    T: Hash

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

-

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

-

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

-
\ No newline at end of file +

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

+

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

+
+ \ No newline at end of file diff --git a/proxy_wasm_experimental/types/enum.LogLevel.html b/proxy_wasm_experimental/types/enum.LogLevel.html index e725b4c2..046794e8 100644 --- a/proxy_wasm_experimental/types/enum.LogLevel.html +++ b/proxy_wasm_experimental/types/enum.LogLevel.html @@ -1,7 +1,7 @@ proxy_wasm_experimental::types::LogLevel - Rust -

[][src]Enum proxy_wasm_experimental::types::LogLevel

#[repr(u32)]pub enum LogLevel {
+

Enum proxy_wasm_experimental::types::LogLevel[][src]

#[repr(u32)]pub enum LogLevel {
     Trace,
     Debug,
     Info,
@@ -11,24 +11,25 @@
 }

Variants

Trace
Debug
Info
Warn
Error
Critical

Trait Implementations

impl Clone for LogLevel[src]

impl Copy for LogLevel[src]

impl Debug for LogLevel[src]

impl Eq for LogLevel[src]

impl Hash for LogLevel[src]

impl PartialEq<LogLevel> for LogLevel[src]

impl StructuralEq for LogLevel[src]

impl StructuralPartialEq for LogLevel[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> CallHasher for T where
    T: Hash

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl StructuralEq for LogLevel[src]

impl StructuralPartialEq for LogLevel[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> CallHasher for T where
    T: Hash

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

-

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

-

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

-
\ No newline at end of file +

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

+

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

+
+ \ No newline at end of file diff --git a/proxy_wasm_experimental/types/enum.MapType.html b/proxy_wasm_experimental/types/enum.MapType.html index 81185bf8..78ea0001 100644 --- a/proxy_wasm_experimental/types/enum.MapType.html +++ b/proxy_wasm_experimental/types/enum.MapType.html @@ -1,7 +1,7 @@ proxy_wasm_experimental::types::MapType - Rust -

[][src]Enum proxy_wasm_experimental::types::MapType

#[repr(u32)]pub enum MapType {
+

Enum proxy_wasm_experimental::types::MapType[][src]

#[repr(u32)]pub enum MapType {
     HttpRequestHeaders,
     HttpRequestTrailers,
     HttpResponseHeaders,
@@ -13,24 +13,25 @@
 }

Variants

HttpRequestHeaders
HttpRequestTrailers
HttpResponseHeaders
HttpResponseTrailers
GrpcReceiveInitialMetadata
GrpcReceiveTrailingMetadata
HttpCallResponseHeaders
HttpCallResponseTrailers

Trait Implementations

impl Clone for MapType[src]

impl Copy for MapType[src]

impl Debug for MapType[src]

impl Eq for MapType[src]

impl Hash for MapType[src]

impl PartialEq<MapType> for MapType[src]

impl StructuralEq for MapType[src]

impl StructuralPartialEq for MapType[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> CallHasher for T where
    T: Hash

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl StructuralEq for MapType[src]

impl StructuralPartialEq for MapType[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> CallHasher for T where
    T: Hash

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

-

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

-

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

-
\ No newline at end of file +

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

+

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

+
+ \ No newline at end of file diff --git a/proxy_wasm_experimental/types/enum.MetricType.html b/proxy_wasm_experimental/types/enum.MetricType.html index 60b10545..42e1abe8 100644 --- a/proxy_wasm_experimental/types/enum.MetricType.html +++ b/proxy_wasm_experimental/types/enum.MetricType.html @@ -1,31 +1,32 @@ proxy_wasm_experimental::types::MetricType - Rust -

[][src]Enum proxy_wasm_experimental::types::MetricType

#[repr(u32)]pub enum MetricType {
+

Enum proxy_wasm_experimental::types::MetricType[][src]

#[repr(u32)]pub enum MetricType {
     Counter,
     Gauge,
     Histogram,
 }

Variants

Counter
Gauge
Histogram

Trait Implementations

impl Clone for MetricType[src]

impl Copy for MetricType[src]

impl Debug for MetricType[src]

impl Eq for MetricType[src]

impl Hash for MetricType[src]

impl PartialEq<MetricType> for MetricType[src]

impl StructuralEq for MetricType[src]

impl StructuralPartialEq for MetricType[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> CallHasher for T where
    T: Hash

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl StructuralEq for MetricType[src]

impl StructuralPartialEq for MetricType[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> CallHasher for T where
    T: Hash

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

-

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

-

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

-
\ No newline at end of file +

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

+

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

+
+ \ No newline at end of file diff --git a/proxy_wasm_experimental/types/enum.PeerType.html b/proxy_wasm_experimental/types/enum.PeerType.html index 27cafa72..cf1b32f4 100644 --- a/proxy_wasm_experimental/types/enum.PeerType.html +++ b/proxy_wasm_experimental/types/enum.PeerType.html @@ -1,31 +1,32 @@ proxy_wasm_experimental::types::PeerType - Rust -

[][src]Enum proxy_wasm_experimental::types::PeerType

#[repr(u32)]pub enum PeerType {
+

Enum proxy_wasm_experimental::types::PeerType[][src]

#[repr(u32)]pub enum PeerType {
     Unknown,
     Local,
     Remote,
 }

Variants

Unknown
Local
Remote

Trait Implementations

impl Clone for PeerType[src]

impl Copy for PeerType[src]

impl Debug for PeerType[src]

impl Eq for PeerType[src]

impl Hash for PeerType[src]

impl PartialEq<PeerType> for PeerType[src]

impl StructuralEq for PeerType[src]

impl StructuralPartialEq for PeerType[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> CallHasher for T where
    T: Hash

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl StructuralEq for PeerType[src]

impl StructuralPartialEq for PeerType[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> CallHasher for T where
    T: Hash

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

-

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

-

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

-
\ No newline at end of file +

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

+

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

+
+ \ No newline at end of file diff --git a/proxy_wasm_experimental/types/enum.Status.html b/proxy_wasm_experimental/types/enum.Status.html index 0cb28f7b..cfed1cbd 100644 --- a/proxy_wasm_experimental/types/enum.Status.html +++ b/proxy_wasm_experimental/types/enum.Status.html @@ -1,7 +1,7 @@ proxy_wasm_experimental::types::Status - Rust -

[][src]Enum proxy_wasm_experimental::types::Status

#[repr(u32)]pub enum Status {
+

Enum proxy_wasm_experimental::types::Status[][src]

#[repr(u32)]pub enum Status {
     Ok,
     NotFound,
     BadArgument,
@@ -11,24 +11,25 @@
 }

Variants

Ok
NotFound
BadArgument
Empty
CasMismatch
InternalFailure

Trait Implementations

impl Clone for Status[src]

impl Copy for Status[src]

impl Debug for Status[src]

impl Eq for Status[src]

impl Hash for Status[src]

impl PartialEq<Status> for Status[src]

impl StructuralEq for Status[src]

impl StructuralPartialEq for Status[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> CallHasher for T where
    T: Hash

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl StructuralEq for Status[src]

impl StructuralPartialEq for Status[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> CallHasher for T where
    T: Hash

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

-

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

-

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

-
\ No newline at end of file +

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

+

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

+
+ \ No newline at end of file diff --git a/proxy_wasm_experimental/types/enum.StreamType.html b/proxy_wasm_experimental/types/enum.StreamType.html index a63db91c..f2d0abe9 100644 --- a/proxy_wasm_experimental/types/enum.StreamType.html +++ b/proxy_wasm_experimental/types/enum.StreamType.html @@ -1,30 +1,31 @@ proxy_wasm_experimental::types::StreamType - Rust -

[][src]Enum proxy_wasm_experimental::types::StreamType

#[repr(u32)]pub enum StreamType {
+

Enum proxy_wasm_experimental::types::StreamType[][src]

#[repr(u32)]pub enum StreamType {
     Request,
     Response,
 }

Variants

Request
Response

Trait Implementations

impl Clone for StreamType[src]

impl Copy for StreamType[src]

impl Debug for StreamType[src]

impl Eq for StreamType[src]

impl Hash for StreamType[src]

impl PartialEq<StreamType> for StreamType[src]

impl StructuralEq for StreamType[src]

impl StructuralPartialEq for StreamType[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> CallHasher for T where
    T: Hash

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl StructuralEq for StreamType[src]

impl StructuralPartialEq for StreamType[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> CallHasher for T where
    T: Hash

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

-

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

-

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

-
\ No newline at end of file +

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

+

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

+
+ \ No newline at end of file diff --git a/proxy_wasm_experimental/types/index.html b/proxy_wasm_experimental/types/index.html index dca51681..cb7d06c7 100644 --- a/proxy_wasm_experimental/types/index.html +++ b/proxy_wasm_experimental/types/index.html @@ -1,9 +1,10 @@ proxy_wasm_experimental::types - Rust -

[][src]Module proxy_wasm_experimental::types

Structs

+

Module proxy_wasm_experimental::types[][src]

Structs

ByteString

Represents a string value that is not necessarily UTF-8 encoded, e.g. an HTTP header value.

Enums

Action
BufferType
ContextType
LogLevel
MapType
MetricType
PeerType
Status
StreamType

Type Definitions

-
NewHttpContext
NewRootContext
NewStreamContext
\ No newline at end of file +
NewHttpContext
NewRootContext
NewStreamContext
+ \ No newline at end of file diff --git a/proxy_wasm_experimental/types/struct.ByteString.html b/proxy_wasm_experimental/types/struct.ByteString.html index 471b152e..391d5198 100644 --- a/proxy_wasm_experimental/types/struct.ByteString.html +++ b/proxy_wasm_experimental/types/struct.ByteString.html @@ -1,12 +1,12 @@ proxy_wasm_experimental::types::ByteString - Rust -

[][src]Struct proxy_wasm_experimental::types::ByteString

pub struct ByteString { /* fields omitted */ }

Represents a string value that is not necessarily UTF-8 encoded, +

Struct proxy_wasm_experimental::types::ByteString[][src]

pub struct ByteString { /* fields omitted */ }

Represents a string value that is not necessarily UTF-8 encoded, e.g. an HTTP header value.

-

Implementations

impl ByteString[src]

pub fn new() -> Self[src]

pub fn is_empty(&self) -> bool[src]

pub fn len(&self) -> usize[src]

pub fn as_bytes(&self) -> &[u8][src]

pub fn into_bytes(self) -> Vec<u8>[src]

pub fn into_string(self) -> Result<String, FromUtf8Error>[src]

Trait Implementations

impl AsMut<[u8]> for ByteString[src]

impl AsRef<[u8]> for ByteString[src]

Implementations

impl ByteString[src]

pub fn new() -> Self[src]

pub fn is_empty(&self) -> bool[src]

pub fn len(&self) -> usize[src]

pub fn as_bytes(&self) -> &[u8]

Notable traits for &'_ [u8]

impl<'_> Read for &'_ [u8]impl<'_> Write for &'_ mut [u8]
[src]

pub fn into_bytes(self) -> Vec<u8>[src]

pub fn into_string(self) -> Result<String, FromUtf8Error>[src]

Trait Implementations

impl AsMut<[u8]> for ByteString[src]

impl AsRef<[u8]> for ByteString[src]

impl Clone for ByteString[src]

impl Debug for ByteString[src]

impl Default for ByteString[src]

impl Deref for ByteString[src]

type Target = ByteStr

The resulting type after dereferencing.

@@ -19,58 +19,47 @@

impl From<String> for ByteString[src]

impl From<Vec<u8, Global>> for ByteString[src]

impl Hash for ByteString[src]

impl PartialEq<&'_ [u8]> for ByteString[src]

impl PartialEq<&'_ str> for ByteString[src]

impl PartialEq<[u8]> for ByteString[src]

impl PartialEq<ByteString> for ByteString[src]

impl PartialEq<ByteString> for String[src]

impl PartialEq<ByteString> for [u8][src]

impl PartialEq<ByteString> for Vec<u8>[src]

impl PartialEq<ByteString> for &[u8][src]

impl PartialEq<ByteString> for str[src]

impl PartialEq<ByteString> for &str[src]

impl PartialEq<ByteString> for [u8][src]

impl PartialEq<ByteString> for &[u8][src]

impl PartialEq<String> for ByteString[src]

impl PartialEq<Vec<u8, Global>> for ByteString[src]

impl PartialEq<str> for ByteString[src]

impl StructuralEq for ByteString[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> CallHasher for T where
    T: Hash

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl StructuralEq for ByteString[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> CallHasher for T where
    T: Hash

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

-

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

-

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

-
\ No newline at end of file +

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

+

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

+
+ \ No newline at end of file diff --git a/proxy_wasm_experimental/types/type.NewHttpContext.html b/proxy_wasm_experimental/types/type.NewHttpContext.html index 2aecb782..bb2a1119 100644 --- a/proxy_wasm_experimental/types/type.NewHttpContext.html +++ b/proxy_wasm_experimental/types/type.NewHttpContext.html @@ -1,4 +1,5 @@ proxy_wasm_experimental::types::NewHttpContext - Rust -

[][src]Type Definition proxy_wasm_experimental::types::NewHttpContext

type NewHttpContext = fn(context_id: u32, root_context_id: u32) -> Box<dyn HttpContext>;
\ No newline at end of file +

Type Definition proxy_wasm_experimental::types::NewHttpContext[][src]

type NewHttpContext = fn(context_id: u32, root_context_id: u32) -> Box<dyn HttpContext>;
+ \ No newline at end of file diff --git a/proxy_wasm_experimental/types/type.NewRootContext.html b/proxy_wasm_experimental/types/type.NewRootContext.html index 762da640..c27073cb 100644 --- a/proxy_wasm_experimental/types/type.NewRootContext.html +++ b/proxy_wasm_experimental/types/type.NewRootContext.html @@ -1,4 +1,5 @@ proxy_wasm_experimental::types::NewRootContext - Rust -

[][src]Type Definition proxy_wasm_experimental::types::NewRootContext

type NewRootContext = fn(context_id: u32) -> Box<dyn RootContext>;
\ No newline at end of file +

Type Definition proxy_wasm_experimental::types::NewRootContext[][src]

type NewRootContext = fn(context_id: u32) -> Box<dyn RootContext>;
+ \ No newline at end of file diff --git a/proxy_wasm_experimental/types/type.NewStreamContext.html b/proxy_wasm_experimental/types/type.NewStreamContext.html index 2c661d7c..6bda9b1d 100644 --- a/proxy_wasm_experimental/types/type.NewStreamContext.html +++ b/proxy_wasm_experimental/types/type.NewStreamContext.html @@ -1,4 +1,5 @@ proxy_wasm_experimental::types::NewStreamContext - Rust -

[][src]Type Definition proxy_wasm_experimental::types::NewStreamContext

type NewStreamContext = fn(context_id: u32, root_context_id: u32) -> Box<dyn StreamContext>;
\ No newline at end of file +

Type Definition proxy_wasm_experimental::types::NewStreamContext[][src]

type NewStreamContext = fn(context_id: u32, root_context_id: u32) -> Box<dyn StreamContext>;
+ \ No newline at end of file diff --git a/rustdoc.css b/rustdoc.css index 757de199..ecb81ce7 100644 --- a/rustdoc.css +++ b/rustdoc.css @@ -1 +1 @@ - @font-face {font-family:'Fira Sans';font-style:normal;font-weight:400;src:local('Fira Sans'),url("FiraSans-Regular.woff") format('woff');}@font-face {font-family:'Fira Sans';font-style:normal;font-weight:500;src:local('Fira Sans Medium'),url("FiraSans-Medium.woff") format('woff');}@font-face {font-family:'Source Serif Pro';font-style:normal;font-weight:400;src:local('Source Serif Pro'),url("SourceSerifPro-Regular.ttf.woff") format('woff');}@font-face {font-family:'Source Serif Pro';font-style:italic;font-weight:400;src:local('Source Serif Pro Italic'),url("SourceSerifPro-It.ttf.woff") format('woff');}@font-face {font-family:'Source Serif Pro';font-style:normal;font-weight:700;src:local('Source Serif Pro Bold'),url("SourceSerifPro-Bold.ttf.woff") format('woff');}@font-face {font-family:'Source Code Pro';font-style:normal;font-weight:400;src:url("SourceCodePro-Regular.woff") format('woff');}@font-face {font-family:'Source Code Pro';font-style:normal;font-weight:600;src:url("SourceCodePro-Semibold.woff") format('woff');}*{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;}html{content:"";}@media (prefers-color-scheme:light){html{content:"light";}}@media (prefers-color-scheme:dark){html{content:"dark";}}body{font:16px/1.4 "Source Serif Pro",serif;margin:0;position:relative;padding:10px 15px 20px 15px;-webkit-font-feature-settings:"kern","liga";-moz-font-feature-settings:"kern","liga";font-feature-settings:"kern","liga";}h1{font-size:1.5em;}h2{font-size:1.4em;}h3{font-size:1.3em;}h1,h2,h3:not(.impl):not(.method):not(.type):not(.tymethod):not(.notable),h4:not(.method):not(.type):not(.tymethod):not(.associatedconstant){font-weight:500;margin:20px 0 15px 0;padding-bottom:6px;}h1.fqn{border-bottom:1px dashed;margin-top:0;}h1.fqn>.in-band>a:hover{text-decoration:underline;}h2,h3:not(.impl):not(.method):not(.type):not(.tymethod),h4:not(.method):not(.type):not(.tymethod):not(.associatedconstant){border-bottom:1px solid;}h3.impl,h3.method,h4.method,h3.type,h4.type,h4.associatedconstant{flex-basis:100%;font-weight:600;margin-top:16px;margin-bottom:10px;position:relative;}h3.impl,h3.method,h3.type{padding-left:15px;}h1,h2,h3,h4,.sidebar,a.source,.search-input,.content table td:first-child>a,.collapse-toggle,div.item-list .out-of-band,#source-sidebar,#sidebar-toggle{font-family:"Fira Sans",sans-serif;}.content ul.crate a.crate{font:16px/1.6 "Fira Sans";}ol,ul{padding-left:25px;}ul ul,ol ul,ul ol,ol ol{margin-bottom:.6em;}p{margin:0 0 .6em 0;}summary{outline:none;}code,pre,a.test-arrow{font-family:"Source Code Pro",monospace;}.docblock code,.docblock-short code{border-radius:3px;padding:0 0.1em;}.docblock pre code,.docblock-short pre code,.docblock code.spotlight{padding:0;}.docblock code.spotlight :last-child{padding-bottom:0.6em;}pre{padding:14px;}.source .content pre{padding:20px;}img{max-width:100%;}li{position:relative;}.source .content{margin-top:50px;max-width:none;overflow:visible;margin-left:0px;min-width:70em;}nav.sub{font-size:16px;text-transform:uppercase;}.sidebar{width:200px;position:fixed;left:0;top:0;bottom:0;overflow:auto;}*{scrollbar-width:initial;}.sidebar{scrollbar-width:thin;}::-webkit-scrollbar{width:12px;}.sidebar::-webkit-scrollbar{width:8px;}::-webkit-scrollbar-track{-webkit-box-shadow:inset 0;}.sidebar .block>ul>li{margin-right:-10px;}.content,nav{max-width:960px;}.hidden{display:none !important;}.logo-container{height:100px;width:100px;position:relative;margin:20px auto;display:block;margin-top:10px;}.logo-container>img{max-width:100px;max-height:100px;position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);display:block;}.sidebar .location{border:1px solid;font-size:17px;margin:30px 10px 20px 10px;text-align:center;word-wrap:break-word;}.sidebar .version{font-size:15px;text-align:center;border-bottom:1px solid;overflow-wrap:break-word;word-wrap:break-word;word-break:break-word;}.location:empty{border:none;}.location a:first-child{font-weight:500;}.block{padding:0;margin-bottom:14px;}.block h2,.block h3{margin-top:0;margin-bottom:8px;text-align:center;}.block ul,.block li{margin:0 10px;padding:0;list-style:none;}.block a{display:block;text-overflow:ellipsis;overflow:hidden;line-height:15px;padding:7px 5px;font-size:14px;font-weight:300;transition:border 500ms ease-out;}.sidebar-title{border-top:1px solid;border-bottom:1px solid;text-align:center;font-size:17px;margin-bottom:5px;}.sidebar-links{margin-bottom:15px;}.sidebar-links>a{padding-left:10px;width:100%;}.sidebar-menu{display:none;}.content{padding:15px 0;}.source .content pre.rust{white-space:pre;overflow:auto;padding-left:0;}.rustdoc:not(.source) .example-wrap{display:inline-flex;margin-bottom:10px;position:relative;}.example-wrap{width:100%;}.example-wrap>pre.line-number{overflow:initial;border:1px solid;border-top-left-radius:5px;border-bottom-left-radius:5px;padding:13px 8px;text-align:right;}.rustdoc:not(.source) .example-wrap>pre.rust{width:100%;overflow-x:auto;}.rustdoc:not(.source) .example-wrap>pre{margin:0;}#search{margin-left:230px;position:relative;}#results{position:absolute;right:0;left:0;overflow:auto;}#results>table{width:100%;table-layout:fixed;margin-bottom:40px;}.content pre.line-numbers{float:left;border:none;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;}.line-numbers span{cursor:pointer;}.docblock-short{overflow-wrap:anywhere;}.docblock-short p{display:inline;}.docblock-short p{overflow:hidden;text-overflow:ellipsis;margin:0;}.docblock code,.docblock-short code{white-space:pre-wrap;}.docblock h1,.docblock h2,.docblock h3,.docblock h4,.docblock h5{border-bottom:1px solid;}#main>.docblock h1{font-size:1.3em;}#main>.docblock h2{font-size:1.15em;}#main>.docblock h3,#main>.docblock h4,#main>.docblock h5{font-size:1em;}#main>h2+div,#main>h2+h3,#main>h3+div{display:none;flex-wrap:wrap;}.docblock h1{font-size:1em;}.docblock h2{font-size:0.95em;}.docblock h3,.docblock h4,.docblock h5{font-size:0.9em;}.docblock{margin-left:24px;position:relative;}.content .out-of-band{float:right;font-size:23px;margin:0px;padding:0px;font-weight:normal;}h3.impl>.out-of-band{font-size:21px;}h4.method>.out-of-band{font-size:19px;}h4>code,h3>code,.invisible>code{max-width:calc(100% - 41px);display:block;}.invisible{width:100%;display:inline-block;}.content .in-band{margin:0px;padding:0px;}.in-band>code{display:inline-block;}#main{position:relative;}#main>.since{top:inherit;font-family:"Fira Sans",sans-serif;}.content table:not(.table-display){border-spacing:0 5px;}.content td{vertical-align:top;}.content td:first-child{padding-right:20px;}.content td p:first-child{margin-top:0;}.content td h1,.content td h2{margin-left:0;font-size:1.1em;}.content tr:first-child td{border-top:0;}.docblock table{margin:.5em 0;width:calc(100% - 2px);border:1px dashed;}.docblock table td{padding:.5em;border:1px dashed;}.docblock table th{padding:.5em;text-align:left;border:1px solid;}.fields+table{margin-bottom:1em;}.content .item-list{list-style-type:none;padding:0;}.content .multi-column{-moz-column-count:5;-moz-column-gap:2.5em;-webkit-column-count:5;-webkit-column-gap:2.5em;column-count:5;column-gap:2.5em;}.content .multi-column li{width:100%;display:inline-block;}.content .method{font-size:1em;position:relative;}.content .method .where,.content .fn .where,.content .where.fmt-newline{display:block;font-size:0.8em;}.content .methods>div:not(.notable-traits){margin-left:40px;margin-bottom:15px;}.content .docblock>.impl-items{margin-left:20px;margin-top:-34px;}.content .docblock>.impl-items>h4{border-bottom:0;}.content .docblock>.impl-items .table-display{margin:0;}.content .docblock>.impl-items table td{padding:0;}.toggle-wrapper.marg-left>.collapse-toggle{left:-24px;}.content .docblock>.impl-items .table-display,.impl-items table td{border:none;}.content .item-info code{font-size:90%;}.content .item-info{position:relative;margin-left:33px;margin-top:-13px;}.sub-variant>div>.item-info{margin-top:initial;}.content .item-info::before{content:'⬑';font-size:25px;position:absolute;top:-6px;left:-19px;}.content .impl-items .method,.content .impl-items>.type,.impl-items>.associatedconstant{margin-left:20px;}.content .impl-items .docblock,.content .impl-items .item-info{margin-bottom:.6em;}.content .impl-items>.item-info{margin-left:40px;}.methods>.item-info,.content .impl-items>.item-info{margin-top:-8px;}.impl-items{flex-basis:100%;}#main>.item-info{margin-top:0;}nav:not(.sidebar){border-bottom:1px solid;padding-bottom:10px;margin-bottom:10px;}nav.main{padding:20px 0;text-align:center;}nav.main .current{border-top:1px solid;border-bottom:1px solid;}nav.main .separator{border:1px solid;display:inline-block;height:23px;margin:0 20px;}nav.sum{text-align:right;}nav.sub form{display:inline;}nav.sub,.content{margin-left:230px;}a{text-decoration:none;background:transparent;}.small-section-header:hover>.anchor{display:initial;}.in-band:hover>.anchor,.impl:hover>.anchor{display:inline-block;position:absolute;}.anchor{display:none;position:absolute;left:-7px;}.anchor.field{left:-5px;}.small-section-header>.anchor{left:-28px;padding-right:10px;}.anchor:before{content:'\2002\00a7\2002';}.docblock a:not(.srclink):not(.test-arrow):hover,.docblock-short a:not(.srclink):not(.test-arrow):hover,.item-info a{text-decoration:underline;}.invisible>.srclink,h4>code+.srclink,h3>code+.srclink{position:absolute;top:0;right:0;font-size:17px;font-weight:normal;}.block a.current.crate{font-weight:500;}.search-container{position:relative;}.search-container>div{display:inline-flex;width:calc(100% - 63px);}#crate-search{margin-top:5px;padding:6px;padding-right:19px;flex:none;border:0;border-right:0;border-radius:4px 0 0 4px;outline:none;cursor:pointer;border-right:1px solid;-moz-appearance:none;-webkit-appearance:none;text-indent:0.01px;text-overflow:"";background-repeat:no-repeat;background-color:transparent;background-size:20px;background-position:calc(100% - 1px) 56%;}.search-container>.top-button{position:absolute;right:0;top:10px;}.search-input{-moz-box-sizing:border-box !important;box-sizing:border-box !important;outline:none;border:none;border-radius:1px;margin-top:5px;padding:10px 16px;font-size:17px;transition:border-color 300ms ease;transition:border-radius 300ms ease-in-out;transition:box-shadow 300ms ease-in-out;width:100%;}#crate-search+.search-input{border-radius:0 1px 1px 0;width:calc(100% - 32px);}.search-input:focus{border-radius:2px;border:0;outline:0;}.search-results .desc{white-space:nowrap;text-overflow:ellipsis;overflow:hidden;display:block;}.search-results a{display:block;}.content .search-results td:first-child{padding-right:0;width:50%;}.content .search-results td:first-child a{padding-right:10px;}.content .search-results td:first-child a:after{clear:both;content:"";display:block;}.content .search-results td:first-child a span{float:left;}tr.result span.primitive::after{content:' (primitive type)';font-style:italic;}tr.result span.keyword::after{content:' (keyword)';font-style:italic;}body.blur>:not(#help){filter:blur(8px);-webkit-filter:blur(8px);opacity:.7;}#help{width:100%;height:100vh;position:fixed;top:0;left:0;display:flex;justify-content:center;align-items:center;}#help>div{flex:0 0 auto;box-shadow:0 0 6px rgba(0,0,0,.2);width:550px;height:auto;border:1px solid;}#help dt{float:left;clear:left;display:block;}#help>div>span{text-align:center;display:block;margin:10px 0;font-size:18px;border-bottom:1px solid #ccc;padding-bottom:4px;margin-bottom:6px;}#help dd{margin:5px 35px;}#help .infos{padding-left:0;}#help h1,#help h2{margin-top:0;}#help>div div{width:50%;float:left;padding:0 20px 20px 17px;;}.stab{display:table;border-width:1px;border-style:solid;padding:3px;margin-bottom:5px;font-size:90%;}.stab p{display:inline;}.stab summary{display:list-item;}.stab .emoji{font-size:1.5em;}.module-item .stab{border-radius:3px;display:inline-block;font-size:80%;line-height:1.2;margin-bottom:0;margin-right:.3em;padding:2px;vertical-align:text-bottom;}.module-item.unstable{opacity:0.65;}.since{font-weight:normal;font-size:initial;position:absolute;right:0;top:0;}.impl-items .since,.impl .since,.methods .since{flex-grow:0;padding-left:12px;padding-right:2px;position:initial;}.impl-items .srclink,.impl .srclink,.methods .srclink{flex-grow:0;font-size:17px;font-weight:normal;}.impl-items code,.impl code,.methods code{flex-grow:1;}.impl-items h4,h4.impl,h3.impl,.methods h3{display:flex;flex-basis:100%;font-size:16px;margin-bottom:12px;justify-content:space-between;}.variants_table{width:100%;}.variants_table tbody tr td:first-child{width:1%;}td.summary-column{width:100%;}.summary{padding-right:0px;}pre.rust .question-mark{font-weight:bold;}a.test-arrow{display:inline-block;position:absolute;padding:5px 10px 5px 10px;border-radius:5px;font-size:130%;top:5px;right:5px;z-index:1;}a.test-arrow:hover{text-decoration:none;}.section-header:hover a:before{position:absolute;left:-25px;padding-right:10px;content:'\2002\00a7\2002';}.section-header:hover a{text-decoration:none;}.section-header a{color:inherit;}.collapse-toggle{font-weight:300;position:absolute;left:-23px;top:0;}h3>.collapse-toggle,h4>.collapse-toggle{font-size:0.8em;top:5px;}.toggle-wrapper>.collapse-toggle{left:-24px;margin-top:0px;}.toggle-wrapper{position:relative;margin-top:0;}.toggle-wrapper.collapsed{height:25px;transition:height .2s;margin-bottom:.6em;}.collapse-toggle>.inner{display:inline-block;width:1.2ch;text-align:center;}.collapse-toggle.hidden-default{position:relative;margin-left:20px;}.since+.srclink{display:table-cell;padding-left:10px;}.item-spacer{width:100%;height:12px;}.out-of-band>span.since{position:initial;font-size:20px;margin-right:5px;}.toggle-wrapper>.collapse-toggle{left:0;}.variant+.toggle-wrapper+.docblock>p{margin-top:5px;}.sub-variant,.sub-variant>h3{margin-top:1px !important;}#main>.sub-variant>h3{font-size:15px;margin-left:25px;margin-bottom:5px;}.sub-variant>div{margin-left:20px;margin-bottom:10px;}.sub-variant>div>span{display:block;position:relative;}.toggle-label{display:inline-block;margin-left:4px;margin-top:3px;}.enum>.toggle-wrapper+.docblock,.struct>.toggle-wrapper+.docblock{margin-left:30px;margin-bottom:20px;margin-top:5px;}.docblock>.section-header:first-child{margin-left:15px;margin-top:0;}.docblock>.section-header:first-child:hover>a:before{left:-10px;}.enum>.collapsed,.struct>.collapsed{margin-bottom:25px;}#main>.variant,#main>.structfield{display:block;}.attributes{display:block;margin-top:0px !important;margin-right:0px;margin-bottom:0px !important;margin-left:30px;}.toggle-attributes.collapsed{margin-bottom:0;}.impl-items>.toggle-attributes{margin-left:20px;}.impl-items .attributes{font-weight:500;}:target>code{opacity:1;}.information{position:absolute;left:-25px;margin-top:7px;z-index:1;}.tooltip{position:relative;display:inline-block;cursor:pointer;}.tooltip::after{display:none;text-align:center;padding:5px 3px 3px 3px;border-radius:6px;margin-left:5px;font-size:16px;}.tooltip.ignore::after{content:"This example is not tested";}.tooltip.compile_fail::after{content:"This example deliberately fails to compile";}.tooltip.should_panic::after{content:"This example panics";}.tooltip.edition::after{content:"This code runs with edition " attr(data-edition);}.tooltip::before{content:" ";position:absolute;top:50%;left:16px;margin-top:-5px;border-width:5px;border-style:solid;display:none;}.tooltip:hover::before,.tooltip:hover::after{display:inline;}.tooltip.compile_fail,.tooltip.should_panic,.tooltip.ignore{font-weight:bold;font-size:20px;}.notable-traits-tooltip{display:inline-block;cursor:pointer;}.notable-traits:hover .notable-traits-tooltiptext,.notable-traits .notable-traits-tooltiptext.force-tooltip{display:inline-block;}.notable-traits .notable-traits-tooltiptext{display:none;padding:5px 3px 3px 3px;border-radius:6px;margin-left:5px;z-index:10;font-size:16px;cursor:default;position:absolute;border:1px solid;}.notable-traits-tooltip::after{content:"\00a0\00a0\00a0";}.notable-traits .notable,.notable-traits .docblock{margin:0;}.notable-traits .docblock code.content{margin:0;padding:0;font-size:20px;}pre.rust.rust-example-rendered{position:relative;}pre.rust{tab-size:4;-moz-tab-size:4;}.search-failed{text-align:center;margin-top:20px;}.search-failed>ul{text-align:left;max-width:570px;margin-left:auto;margin-right:auto;}#titles{height:35px;}#titles>button{float:left;width:33.3%;text-align:center;font-size:18px;cursor:pointer;border:0;border-top:2px solid;}#titles>button:not(:last-child){margin-right:1px;width:calc(33.3% - 1px);}#titles>button>div.count{display:inline-block;font-size:16px;}.notable-traits{cursor:pointer;z-index:2;margin-left:5px;}h4>.notable-traits{position:absolute;left:-44px;top:2px;}#all-types{text-align:center;border:1px solid;margin:0 10px;margin-bottom:10px;display:block;border-radius:7px;}#all-types>p{margin:5px 0;}#sidebar-toggle{position:fixed;top:30px;left:300px;z-index:10;padding:3px;border-top-right-radius:3px;border-bottom-right-radius:3px;cursor:pointer;font-weight:bold;transition:left .5s;font-size:1.2em;border:1px solid;border-left:0;}#source-sidebar{position:fixed;top:0;bottom:0;left:0;width:300px;z-index:1;overflow:auto;transition:left .5s;border-right:1px solid;}#source-sidebar>.title{font-size:1.5em;text-align:center;border-bottom:1px solid;margin-bottom:6px;}.theme-picker{position:absolute;left:211px;top:19px;}.theme-picker button{outline:none;}#settings-menu,.help-button{position:absolute;top:10px;}#settings-menu{right:0;outline:none;}.help-button{right:30px;font-family:"Fira Sans",sans-serif;text-align:center;font-size:17px;}#theme-picker,#settings-menu,.help-button{padding:4px;width:27px;height:29px;border:1px solid;border-radius:3px;cursor:pointer;}#theme-choices{display:none;position:absolute;left:0;top:28px;border:1px solid;border-radius:3px;z-index:1;cursor:pointer;}#theme-choices>button{border:none;width:100%;padding:4px 8px;text-align:center;background:rgba(0,0,0,0);}#theme-choices>button:not(:first-child){border-top:1px solid;}@media (min-width:701px){.information:first-child>.tooltip{margin-top:16px;}}@media (max-width:700px){body{padding-top:0px;}.rustdoc>.sidebar{height:45px;min-height:40px;margin:0;margin-left:-15px;padding:0 15px;position:static;z-index:11;}.sidebar>.location{float:right;margin:0px;margin-top:2px;padding:3px 10px 1px 10px;min-height:39px;background:inherit;text-align:left;font-size:24px;}.sidebar .location:empty{padding:0;}.sidebar .logo-container{width:35px;height:35px;margin-top:5px;margin-bottom:5px;float:left;margin-left:50px;}.sidebar .logo-container>img{max-width:35px;max-height:35px;}.sidebar-menu{position:fixed;z-index:10;font-size:2rem;cursor:pointer;width:45px;left:0;text-align:center;display:block;border-bottom:1px solid;border-right:1px solid;height:45px;}.rustdoc.source>.sidebar>.sidebar-menu{display:none;}.sidebar-elems{position:fixed;z-index:1;left:0;top:45px;bottom:0;overflow-y:auto;border-right:1px solid;display:none;}.sidebar>.block.version{border-bottom:none;margin-top:12px;}nav.sub{width:calc(100% - 32px);float:right;}.content{margin-left:0px;}#main{margin-top:45px;padding:0;}.content .in-band{width:100%;}.content h4>.out-of-band{position:inherit;}.toggle-wrapper>.collapse-toggle{left:0px;}.toggle-wrapper{height:1.5em;}#search{margin-left:0;}.content .impl-items .method,.content .impl-items>.type,.impl-items>.associatedconstant{display:flex;}.anchor{display:none !important;}h1.fqn{overflow:initial;}.theme-picker{left:10px;top:54px;z-index:1;}h4>.notable-traits{position:absolute;left:-22px;top:24px;}#titles>button>div.count{float:left;width:100%;}#titles{height:50px;}.sidebar.mobile{position:fixed;width:100%;margin-left:0;background-color:rgba(0,0,0,0);height:100%;}.sidebar{width:calc(100% + 30px);}.show-it{display:block;width:246px;}.show-it>.block.items{margin:8px 0;}.show-it>.block.items>ul{margin:0;}.show-it>.block.items>ul>li{text-align:center;margin:2px 0;}.show-it>.block.items>ul>li>a{font-size:21px;}#sidebar-filler{position:fixed;left:45px;width:calc(100% - 45px);top:0;height:45px;z-index:-1;border-bottom:1px solid;}.collapse-toggle{left:-20px;}.impl>.collapse-toggle{left:-10px;}#all-types{margin:10px;}#sidebar-toggle{top:100px;width:30px;font-size:1.5rem;text-align:center;padding:0;}#source-sidebar{z-index:11;}#main>.line-numbers{margin-top:0;}.notable-traits .notable-traits-tooltiptext{left:0;top:100%;}.help-button{display:none;}.search-container>div{width:calc(100% - 32px);}}@media print{nav.sub,.content .out-of-band,.collapse-toggle{display:none;}}@media (max-width:416px){#titles,#titles>button{height:73px;}#main{margin-top:100px;}#main>table:not(.table-display) td{word-break:break-word;width:50%;}.search-container>div{display:block;width:calc(100% - 37px);}#crate-search{width:100%;border-radius:4px;border:0;}#crate-search+.search-input{width:calc(100% + 71px);margin-left:-36px;}#theme-picker,#settings-menu{padding:5px;width:31px;height:31px;}#theme-picker{margin-top:-2px;}#settings-menu{top:7px;}}h3.notable{margin:0;margin-bottom:13px;font-size:19px;}kbd{display:inline-block;padding:3px 5px;font:15px monospace;line-height:10px;vertical-align:middle;border:solid 1px;border-radius:3px;box-shadow:inset 0 -1px 0;cursor:default;}.hidden-by-impl-hider,.hidden-by-usual-hider{display:none !important;}#implementations-list>h3>span.in-band{width:100%;}.table-display{width:100%;border:0;border-collapse:collapse;border-spacing:0;font-size:16px;}.table-display tr td:first-child{padding-right:0;}.table-display tr td:last-child{float:right;}.table-display .out-of-band{position:relative;font-size:19px;display:block;}#implementors-list>.impl-items .table-display .out-of-band{font-size:17px;}.table-display td:hover .anchor{display:block;top:2px;left:-5px;}#main>ul{padding-left:10px;}#main>ul>li{list-style:none;}.non-exhaustive{margin-bottom:1em;}div.children{padding-left:27px;display:none;}div.name{cursor:pointer;position:relative;margin-left:16px;}div.files>a{display:block;padding:0 3px;}div.files>a:hover,div.name:hover{background-color:#a14b4b;}div.name.expand+.children{display:block;}div.name::before{content:"\25B6";padding-left:4px;font-size:0.7em;position:absolute;left:-16px;top:4px;}div.name.expand::before{transform:rotate(90deg);left:-15px;top:2px;}.type-decl>pre>.toggle-wrapper.toggle-attributes.top-attr{margin-left:0 !important;}.type-decl>pre>.docblock.attributes.top-attr{margin-left:1.8em !important;}.type-decl>pre>.toggle-attributes{margin-left:2.2em;}.type-decl>pre>.docblock.attributes{margin-left:4em;} \ No newline at end of file + @font-face {font-family:'Fira Sans';font-style:normal;font-weight:400;src:local('Fira Sans'),url("FiraSans-Regular.woff") format('woff');}@font-face {font-family:'Fira Sans';font-style:normal;font-weight:500;src:local('Fira Sans Medium'),url("FiraSans-Medium.woff") format('woff');}@font-face {font-family:'Source Serif Pro';font-style:normal;font-weight:400;src:local('Source Serif Pro'),url("SourceSerifPro-Regular.ttf.woff") format('woff');}@font-face {font-family:'Source Serif Pro';font-style:italic;font-weight:400;src:local('Source Serif Pro Italic'),url("SourceSerifPro-It.ttf.woff") format('woff');}@font-face {font-family:'Source Serif Pro';font-style:normal;font-weight:700;src:local('Source Serif Pro Bold'),url("SourceSerifPro-Bold.ttf.woff") format('woff');}@font-face {font-family:'Source Code Pro';font-style:normal;font-weight:400;src:url("SourceCodePro-Regular.woff") format('woff');}@font-face {font-family:'Source Code Pro';font-style:normal;font-weight:600;src:url("SourceCodePro-Semibold.woff") format('woff');}*{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;}html{content:"";}@media (prefers-color-scheme:light){html{content:"light";}}@media (prefers-color-scheme:dark){html{content:"dark";}}body{font:16px/1.4 "Source Serif Pro",serif;margin:0;position:relative;padding:10px 15px 20px 15px;-webkit-font-feature-settings:"kern","liga";-moz-font-feature-settings:"kern","liga";font-feature-settings:"kern","liga";}h1{font-size:1.5em;}h2{font-size:1.4em;}h3{font-size:1.3em;}h1,h2,h3:not(.impl):not(.method):not(.type):not(.tymethod):not(.notable),h4:not(.method):not(.type):not(.tymethod):not(.associatedconstant){font-weight:500;margin:20px 0 15px 0;padding-bottom:6px;}h1.fqn{border-bottom:1px dashed;margin-top:0;}h1.fqn>.in-band>a:hover{text-decoration:underline;}h2,h3:not(.impl):not(.method):not(.type):not(.tymethod),h4:not(.method):not(.type):not(.tymethod):not(.associatedconstant){border-bottom:1px solid;}h3.impl,h3.method,h4.method,h3.type,h4.type,h4.associatedconstant{flex-basis:100%;font-weight:600;margin-top:16px;margin-bottom:10px;position:relative;}h3.impl,h3.method,h3.type{padding-left:15px;}h1,h2,h3,h4,.sidebar,a.source,.search-input,.content table td:first-child>a,.collapse-toggle,div.item-list .out-of-band,#source-sidebar,#sidebar-toggle,#main>ul.docblock>li>a{font-family:"Fira Sans",sans-serif;}.content ul.crate a.crate{font:16px/1.6 "Fira Sans";}ol,ul{padding-left:25px;}ul ul,ol ul,ul ol,ol ol{margin-bottom:.6em;}p{margin:0 0 .6em 0;}summary{outline:none;}code,pre,a.test-arrow{font-family:"Source Code Pro",monospace;}.docblock code,.docblock-short code{border-radius:3px;padding:0 0.1em;}.docblock pre code,.docblock-short pre code,.docblock code.spotlight{padding:0;padding-right:1ex;}.docblock code.spotlight :last-child{padding-bottom:0.6em;}pre{padding:14px;}.source .content pre{padding:20px;}img{max-width:100%;}li{position:relative;}.source .content{margin-top:50px;max-width:none;overflow:visible;margin-left:0px;min-width:70em;}nav.sub{font-size:16px;text-transform:uppercase;}.sidebar{width:200px;position:fixed;left:0;top:0;bottom:0;overflow:auto;}*{scrollbar-width:initial;}.sidebar{scrollbar-width:thin;}::-webkit-scrollbar{width:12px;}.sidebar::-webkit-scrollbar{width:8px;}::-webkit-scrollbar-track{-webkit-box-shadow:inset 0;}.sidebar .block>ul>li{margin-right:-10px;}.content,nav{max-width:960px;}.hidden{display:none !important;}.logo-container{height:100px;width:100px;position:relative;margin:20px auto;display:block;margin-top:10px;}.logo-container>img{max-width:100px;max-height:100px;position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);display:block;}.sidebar .location{border:1px solid;font-size:17px;margin:30px 10px 20px 10px;text-align:center;word-wrap:break-word;}.sidebar .version{font-size:15px;text-align:center;border-bottom:1px solid;overflow-wrap:break-word;word-wrap:break-word;word-break:break-word;}.location:empty{border:none;}.location a:first-child{font-weight:500;}.block{padding:0;margin-bottom:14px;}.block h2,.block h3{margin-top:0;margin-bottom:8px;text-align:center;}.block ul,.block li{margin:0 10px;padding:0;list-style:none;}.block a{display:block;text-overflow:ellipsis;overflow:hidden;line-height:15px;padding:7px 5px;font-size:14px;font-weight:300;transition:border 500ms ease-out;}.sidebar-title{border-top:1px solid;border-bottom:1px solid;text-align:center;font-size:17px;margin-bottom:5px;}.sidebar-links{margin-bottom:15px;}.sidebar-links>a{padding-left:10px;width:100%;}.sidebar-menu{display:none;}.content{padding:15px 0;}.source .content pre.rust{white-space:pre;overflow:auto;padding-left:0;}.rustdoc:not(.source) .example-wrap{display:inline-flex;margin-bottom:10px;position:relative;}.example-wrap{width:100%;}.example-wrap>pre.line-number{overflow:initial;border:1px solid;border-top-left-radius:5px;border-bottom-left-radius:5px;padding:13px 8px;text-align:right;}.rustdoc:not(.source) .example-wrap>pre.rust{width:100%;overflow-x:auto;}.rustdoc:not(.source) .example-wrap>pre{margin:0;}#search{margin-left:230px;position:relative;}#results{position:absolute;right:0;left:0;overflow:auto;}#results>table{width:100%;table-layout:fixed;margin-bottom:40px;}.content pre.line-numbers{float:left;border:none;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;}.line-numbers span{cursor:pointer;}.docblock-short{overflow-wrap:anywhere;}.docblock-short p{display:inline;}.docblock-short p{overflow:hidden;text-overflow:ellipsis;margin:0;}.docblock-short code{white-space:pre-wrap;}.docblock h1,.docblock h2,.docblock h3,.docblock h4,.docblock h5{border-bottom:1px solid;}#main>.docblock h1{font-size:1.3em;}#main>.docblock h2{font-size:1.15em;}#main>.docblock h3,#main>.docblock h4,#main>.docblock h5{font-size:1em;}#main>h2+div,#main>h2+h3,#main>h3+div{display:none;flex-wrap:wrap;}.docblock h1{font-size:1em;}.docblock h2{font-size:0.95em;}.docblock h3,.docblock h4,.docblock h5{font-size:0.9em;}.docblock{margin-left:24px;position:relative;}.content .out-of-band{float:right;font-size:23px;margin:0px;padding:0px;font-weight:normal;}h3.impl>.out-of-band{font-size:21px;}h4.method>.out-of-band{font-size:19px;}h4>code,h3>code,.invisible>code{max-width:calc(100% - 41px);display:block;}.invisible{width:100%;display:inline-block;}.content .in-band{margin:0px;padding:0px;}.in-band>code{display:inline-block;}#main{position:relative;}#main>.since{top:inherit;font-family:"Fira Sans",sans-serif;}.content table:not(.table-display){border-spacing:0 5px;}.content td{vertical-align:top;}.content td:first-child{padding-right:20px;}.content td p:first-child{margin-top:0;}.content td h1,.content td h2{margin-left:0;font-size:1.1em;}.content tr:first-child td{border-top:0;}.docblock table{margin:.5em 0;width:calc(100% - 2px);border:1px dashed;}.docblock table td{padding:.5em;border:1px dashed;}.docblock table th{padding:.5em;text-align:left;border:1px solid;}.fields+table{margin-bottom:1em;}.content .item-list{list-style-type:none;padding:0;}.content .multi-column{-moz-column-count:5;-moz-column-gap:2.5em;-webkit-column-count:5;-webkit-column-gap:2.5em;column-count:5;column-gap:2.5em;}.content .multi-column li{width:100%;display:inline-block;}.content .method{font-size:1em;position:relative;}.content .method .where,.content .fn .where,.content .where.fmt-newline{display:block;font-size:0.8em;}.content .methods>div:not(.notable-traits){margin-left:40px;margin-bottom:15px;}.content .docblock>.impl-items{margin-left:20px;margin-top:-34px;}.content .docblock>.impl-items>h4{border-bottom:0;}.content .docblock>.impl-items .table-display{margin:0;}.content .docblock>.impl-items table td{padding:0;}.toggle-wrapper.marg-left>.collapse-toggle{left:-24px;}.content .docblock>.impl-items .table-display,.impl-items table td{border:none;}.content .item-info code{font-size:90%;}.content .item-info{position:relative;margin-left:33px;margin-top:-13px;}.sub-variant>div>.item-info{margin-top:initial;}.content .item-info::before{content:'⬑';font-size:25px;position:absolute;top:-6px;left:-19px;}.content .impl-items .method,.content .impl-items>.type,.impl-items>.associatedconstant{margin-left:20px;}.content .impl-items .docblock,.content .impl-items .item-info{margin-bottom:.6em;}.content .impl-items>.item-info{margin-left:40px;}.methods>.item-info,.content .impl-items>.item-info{margin-top:-8px;}.impl-items{flex-basis:100%;}#main>.item-info{margin-top:0;}nav:not(.sidebar){border-bottom:1px solid;padding-bottom:10px;margin-bottom:10px;}nav.main{padding:20px 0;text-align:center;}nav.main .current{border-top:1px solid;border-bottom:1px solid;}nav.main .separator{border:1px solid;display:inline-block;height:23px;margin:0 20px;}nav.sum{text-align:right;}nav.sub form{display:inline;}nav.sub,.content{margin-left:230px;}a{text-decoration:none;background:transparent;}.small-section-header:hover>.anchor{display:initial;}.in-band:hover>.anchor,.impl:hover>.anchor{display:inline-block;position:absolute;}.anchor{display:none;position:absolute;left:-7px;}.anchor.field{left:-5px;}.small-section-header>.anchor{left:-28px;padding-right:10px;}.anchor:before{content:'\2002\00a7\2002';}.docblock a:not(.srclink):not(.test-arrow):hover,.docblock-short a:not(.srclink):not(.test-arrow):hover,.item-info a{text-decoration:underline;}.invisible>.srclink,h4>code+.srclink,h3>code+.srclink{position:absolute;top:0;right:0;font-size:17px;font-weight:normal;}.block a.current.crate{font-weight:500;}.search-container{position:relative;}.search-container>div{display:inline-flex;width:calc(100% - 63px);}#crate-search{margin-top:5px;padding:6px;padding-right:19px;flex:none;border:0;border-right:0;border-radius:4px 0 0 4px;outline:none;cursor:pointer;border-right:1px solid;-moz-appearance:none;-webkit-appearance:none;text-indent:0.01px;text-overflow:"";background-repeat:no-repeat;background-color:transparent;background-size:20px;background-position:calc(100% - 1px) 56%;}.search-container>.top-button{position:absolute;right:0;top:10px;}.search-input{-moz-box-sizing:border-box !important;box-sizing:border-box !important;outline:none;border:none;border-radius:1px;margin-top:5px;padding:10px 16px;font-size:17px;transition:border-color 300ms ease;transition:border-radius 300ms ease-in-out;transition:box-shadow 300ms ease-in-out;width:100%;}#crate-search+.search-input{border-radius:0 1px 1px 0;width:calc(100% - 32px);}.search-input:focus{border-radius:2px;border:0;outline:0;}.search-results .desc{white-space:nowrap;text-overflow:ellipsis;overflow:hidden;display:block;}.search-results a{display:block;}.content .search-results td:first-child{padding-right:0;width:50%;}.content .search-results td:first-child a{padding-right:10px;}.content .search-results td:first-child a:after{clear:both;content:"";display:block;}.content .search-results td:first-child a span{float:left;}tr.result span.primitive::after{content:' (primitive type)';font-style:italic;}tr.result span.keyword::after{content:' (keyword)';font-style:italic;}body.blur>:not(#help){filter:blur(8px);-webkit-filter:blur(8px);opacity:.7;}#help{width:100%;height:100vh;position:fixed;top:0;left:0;display:flex;justify-content:center;align-items:center;}#help>div{flex:0 0 auto;box-shadow:0 0 6px rgba(0,0,0,.2);width:550px;height:auto;border:1px solid;}#help dt{float:left;clear:left;display:block;margin-right:0.5rem;}#help>div>span{text-align:center;display:block;margin:10px 0;font-size:18px;border-bottom:1px solid #ccc;padding-bottom:4px;margin-bottom:6px;}#help dd{margin:5px 35px;}#help .infos{padding-left:0;}#help h1,#help h2{margin-top:0;}#help>div div{width:50%;float:left;padding:0 20px 20px 17px;;}.stab{display:table;border-width:1px;border-style:solid;padding:3px;margin-bottom:5px;font-size:90%;}.stab p{display:inline;}.stab summary{display:list-item;}.stab .emoji{font-size:1.5em;}.module-item .stab{border-radius:3px;display:inline-block;font-size:80%;line-height:1.2;margin-bottom:0;margin-right:.3em;padding:2px;vertical-align:text-bottom;}.module-item.unstable{opacity:0.65;}.since{font-weight:normal;font-size:initial;position:absolute;right:0;top:0;}.impl-items .since,.impl .since,.methods .since{flex-grow:0;padding-left:12px;padding-right:2px;position:initial;}.impl-items .srclink,.impl .srclink,.methods .srclink{flex-grow:0;font-size:17px;font-weight:normal;}.impl-items code,.impl code,.methods code{flex-grow:1;}.impl-items h4,h4.impl,h3.impl,.methods h3{display:flex;flex-basis:100%;font-size:16px;margin-bottom:12px;justify-content:space-between;}.variants_table{width:100%;}.variants_table tbody tr td:first-child{width:1%;}td.summary-column{width:100%;}.summary{padding-right:0px;}pre.rust .question-mark{font-weight:bold;}a.test-arrow{display:inline-block;position:absolute;padding:5px 10px 5px 10px;border-radius:5px;font-size:130%;top:5px;right:5px;z-index:1;}a.test-arrow:hover{text-decoration:none;}.section-header:hover a:before{position:absolute;left:-25px;padding-right:10px;content:'\2002\00a7\2002';}.section-header:hover a{text-decoration:none;}.section-header a{color:inherit;}.collapse-toggle{font-weight:300;position:absolute;left:-23px;top:0;}h3>.collapse-toggle,h4>.collapse-toggle{font-size:0.8em;top:5px;}.toggle-wrapper>.collapse-toggle{left:-24px;margin-top:0px;}.toggle-wrapper{position:relative;margin-top:0;}.toggle-wrapper.collapsed{height:25px;transition:height .2s;margin-bottom:.6em;}.collapse-toggle>.inner{display:inline-block;width:1.2ch;text-align:center;}.collapse-toggle.hidden-default{position:relative;margin-left:20px;}.since+.srclink{display:table-cell;padding-left:10px;}.item-spacer{width:100%;height:12px;}.out-of-band>span.since{position:initial;font-size:20px;margin-right:5px;}.toggle-wrapper>.collapse-toggle{left:0;}.variant+.toggle-wrapper+.docblock>p{margin-top:5px;}.sub-variant,.sub-variant>h3{margin-top:1px !important;}#main>.sub-variant>h3{font-size:15px;margin-left:25px;margin-bottom:5px;}.sub-variant>div{margin-left:20px;margin-bottom:10px;}.sub-variant>div>span{display:block;position:relative;}.toggle-label{display:inline-block;margin-left:4px;margin-top:3px;}.enum>.toggle-wrapper+.docblock,.struct>.toggle-wrapper+.docblock{margin-left:30px;margin-bottom:20px;margin-top:5px;}.docblock>.section-header:first-child{margin-left:15px;margin-top:0;}.docblock>.section-header:first-child:hover>a:before{left:-10px;}.enum>.collapsed,.struct>.collapsed{margin-bottom:25px;}#main>.variant,#main>.structfield{display:block;}.attributes{display:block;margin-top:0px !important;margin-right:0px;margin-bottom:0px !important;margin-left:30px;}.toggle-attributes.collapsed{margin-bottom:0;}.impl-items>.toggle-attributes{margin-left:20px;}.impl-items .attributes{font-weight:500;}:target>code{opacity:1;}.information{position:absolute;left:-25px;margin-top:7px;z-index:1;}.tooltip{position:relative;display:inline-block;cursor:pointer;}.tooltip::after{display:none;text-align:center;padding:5px 3px 3px 3px;border-radius:6px;margin-left:5px;font-size:16px;}.tooltip.ignore::after{content:"This example is not tested";}.tooltip.compile_fail::after{content:"This example deliberately fails to compile";}.tooltip.should_panic::after{content:"This example panics";}.tooltip.edition::after{content:"This code runs with edition " attr(data-edition);}.tooltip::before{content:" ";position:absolute;top:50%;left:16px;margin-top:-5px;border-width:5px;border-style:solid;display:none;}.tooltip:hover::before,.tooltip:hover::after{display:inline;}.tooltip.compile_fail,.tooltip.should_panic,.tooltip.ignore{font-weight:bold;font-size:20px;}.notable-traits-tooltip{display:inline-block;cursor:pointer;}.notable-traits:hover .notable-traits-tooltiptext,.notable-traits .notable-traits-tooltiptext.force-tooltip{display:inline-block;}.notable-traits .notable-traits-tooltiptext{display:none;padding:5px 3px 3px 3px;border-radius:6px;margin-left:5px;z-index:10;font-size:16px;cursor:default;position:absolute;border:1px solid;}.notable-traits-tooltip::after{content:"\00a0\00a0\00a0";}.notable-traits .notable,.notable-traits .docblock{margin:0;}.notable-traits .docblock code.content{margin:0;padding:0;font-size:20px;}pre.rust.rust-example-rendered{position:relative;}pre.rust{tab-size:4;-moz-tab-size:4;}.search-failed{text-align:center;margin-top:20px;}.search-failed>ul{text-align:left;max-width:570px;margin-left:auto;margin-right:auto;}#titles{height:35px;}#titles>button{float:left;width:33.3%;text-align:center;font-size:18px;cursor:pointer;border:0;border-top:2px solid;}#titles>button:not(:last-child){margin-right:1px;width:calc(33.3% - 1px);}#titles>button>div.count{display:inline-block;font-size:16px;}.notable-traits{cursor:pointer;z-index:2;margin-left:5px;}h4>.notable-traits{position:absolute;left:-44px;top:2px;}#all-types{text-align:center;border:1px solid;margin:0 10px;margin-bottom:10px;display:block;border-radius:7px;}#all-types>p{margin:5px 0;}#sidebar-toggle{position:fixed;top:30px;left:300px;z-index:10;padding:3px;border-top-right-radius:3px;border-bottom-right-radius:3px;cursor:pointer;font-weight:bold;transition:left .5s;font-size:1.2em;border:1px solid;border-left:0;}#source-sidebar{position:fixed;top:0;bottom:0;left:0;width:300px;z-index:1;overflow:auto;transition:left .5s;border-right:1px solid;}#source-sidebar>.title{font-size:1.5em;text-align:center;border-bottom:1px solid;margin-bottom:6px;}.theme-picker{position:absolute;left:211px;top:19px;}.theme-picker button{outline:none;}#settings-menu,.help-button{position:absolute;top:10px;}#settings-menu{right:0;outline:none;}.help-button{right:30px;font-family:"Fira Sans",sans-serif;text-align:center;font-size:17px;}#theme-picker,#settings-menu,.help-button{padding:4px;width:27px;height:29px;border:1px solid;border-radius:3px;cursor:pointer;}#theme-choices{display:none;position:absolute;left:0;top:28px;border:1px solid;border-radius:3px;z-index:1;cursor:pointer;}#theme-choices>button{border:none;width:100%;padding:4px 8px;text-align:center;background:rgba(0,0,0,0);}#theme-choices>button:not(:first-child){border-top:1px solid;}@media (min-width:701px){.information:first-child>.tooltip{margin-top:16px;}}@media (max-width:700px){body{padding-top:0px;}.rustdoc>.sidebar{height:45px;min-height:40px;margin:0;margin-left:-15px;padding:0 15px;position:static;z-index:11;}.sidebar>.location{float:right;margin:0px;margin-top:2px;padding:3px 10px 1px 10px;min-height:39px;background:inherit;text-align:left;font-size:24px;}.sidebar .location:empty{padding:0;}.sidebar .logo-container{width:35px;height:35px;margin-top:5px;margin-bottom:5px;float:left;margin-left:50px;}.sidebar .logo-container>img{max-width:35px;max-height:35px;}.sidebar-menu{position:fixed;z-index:10;font-size:2rem;cursor:pointer;width:45px;left:0;text-align:center;display:block;border-bottom:1px solid;border-right:1px solid;height:45px;}.rustdoc.source>.sidebar>.sidebar-menu{display:none;}.sidebar-elems{position:fixed;z-index:1;left:0;top:45px;bottom:0;overflow-y:auto;border-right:1px solid;display:none;}.sidebar>.block.version{border-bottom:none;margin-top:12px;margin-bottom:0;}nav.sub{width:calc(100% - 32px);float:right;}.content{margin-left:0px;}#main,#search{margin-top:45px;padding:0;}.content .in-band{width:100%;}.content h4>.out-of-band{position:inherit;}.toggle-wrapper>.collapse-toggle{left:0px;}.toggle-wrapper{height:1.5em;}#search{margin-left:0;}.content .impl-items .method,.content .impl-items>.type,.impl-items>.associatedconstant{display:flex;}.anchor{display:none !important;}h1.fqn{overflow:initial;}.theme-picker{left:10px;top:54px;z-index:1;}h4>.notable-traits{position:absolute;left:-22px;top:24px;}#titles>button>div.count{float:left;width:100%;}#titles{height:50px;}.sidebar.mobile{position:fixed;width:100%;margin-left:0;background-color:rgba(0,0,0,0);height:100%;}.sidebar.mobile>div.version{overflow:hidden;max-height:33px;}.sidebar{width:calc(100% + 30px);}.show-it{display:block;width:246px;}.show-it>.block.items{margin:8px 0;}.show-it>.block.items>ul{margin:0;}.show-it>.block.items>ul>li{text-align:center;margin:2px 0;}.show-it>.block.items>ul>li>a{font-size:21px;}#sidebar-filler{position:fixed;left:45px;width:calc(100% - 45px);top:0;height:45px;z-index:-1;border-bottom:1px solid;}.collapse-toggle{left:-20px;}.impl>.collapse-toggle{left:-10px;}#all-types{margin:10px;}#sidebar-toggle{top:100px;width:30px;font-size:1.5rem;text-align:center;padding:0;}#source-sidebar{z-index:11;}#main>.line-numbers{margin-top:0;}.notable-traits .notable-traits-tooltiptext{left:0;top:100%;}.help-button{display:none;}.search-container>div{width:calc(100% - 32px);}}@media print{nav.sub,.content .out-of-band,.collapse-toggle{display:none;}}@media (max-width:464px){#titles,#titles>button{height:73px;}#main,#search{margin-top:100px;}#main>table:not(.table-display) td{word-break:break-word;width:50%;}.search-container>div{display:block;width:calc(100% - 37px);}#crate-search{width:100%;border-radius:4px;border:0;}#crate-search+.search-input{width:calc(100% + 71px);margin-left:-36px;}#theme-picker,#settings-menu{padding:5px;width:31px;height:31px;}#theme-picker{margin-top:-2px;}#settings-menu{top:7px;}.docblock{margin-left:12px;}}h3.notable{margin:0;margin-bottom:13px;font-size:19px;}kbd{display:inline-block;padding:3px 5px;font:15px monospace;line-height:10px;vertical-align:middle;border:solid 1px;border-radius:3px;box-shadow:inset 0 -1px 0;cursor:default;}.hidden-by-impl-hider,.hidden-by-usual-hider{display:none !important;}#implementations-list>h3>span.in-band{width:100%;}.table-display{width:100%;border:0;border-collapse:collapse;border-spacing:0;font-size:16px;}.table-display tr td:first-child{padding-right:0;}.table-display tr td:last-child{float:right;}.table-display .out-of-band{position:relative;font-size:19px;display:block;}#implementors-list>.impl-items .table-display .out-of-band{font-size:17px;}.table-display td:hover .anchor{display:block;top:2px;left:-5px;}#main>ul{padding-left:10px;}#main>ul>li{list-style:none;}.non-exhaustive{margin-bottom:1em;}div.children{padding-left:27px;display:none;}div.name{cursor:pointer;position:relative;margin-left:16px;}div.files>a{display:block;padding:0 3px;}div.files>a:hover,div.name:hover{background-color:#a14b4b;}div.name.expand+.children{display:block;}div.name::before{content:"\25B6";padding-left:4px;font-size:0.7em;position:absolute;left:-16px;top:4px;}div.name.expand::before{transform:rotate(90deg);left:-15px;top:2px;}.type-decl>pre>.toggle-wrapper.toggle-attributes.top-attr{margin-left:0 !important;}.type-decl>pre>.docblock.attributes.top-attr{margin-left:1.8em !important;}.type-decl>pre>.toggle-attributes{margin-left:2.2em;}.type-decl>pre>.docblock.attributes{margin-left:4em;} \ No newline at end of file diff --git a/search-index.js b/search-index.js index 1e4d0a34..54287f52 100644 --- a/search-index.js +++ b/search-index.js @@ -1,4 +1,4 @@ var searchIndex = JSON.parse('{\ -"proxy_wasm_experimental":{"doc":"","i":[[0,"error","proxy_wasm_experimental","",null,null],[6,"Error","proxy_wasm_experimental::error","A boxed Error.",null,null],[6,"Result","","A specialized Result type.",null,null],[3,"HostCallError","","An error to call a Host ABI function.",null,null],[11,"module","","",0,[[]]],[11,"function","","",0,[[]]],[11,"status","","",0,[[],["status",4]]],[3,"HostResponseError","","An error to parse the response from a Host ABI.",null,null],[11,"module","","",1,[[]]],[11,"function","","",1,[[]]],[0,"hostcalls","proxy_wasm_experimental","",null,null],[17,"NO_HEADERS","proxy_wasm_experimental::hostcalls","Represents empty headers map.",null,null],[17,"NO_BODY","","Represents empty body.",null,null],[17,"NO_TRAILERS","","Represents empty trailers map.",null,null],[5,"log","","Logs a message at a given log level.",null,[[["loglevel",4]],["result",6]]],[5,"get_current_time","","Returns current system time.",null,[[],[["systemtime",3],["result",6]]]],[5,"set_tick_period","","Sets the timer to a given period.",null,[[["duration",3]],["result",6]]],[5,"get_buffer","","Returns content from a given buffer.",null,[[["buffertype",4]],[["option",4],["result",6]]]],[5,"set_buffer","","Mutates content in a given buffer.",null,[[["buffertype",4]],["result",6]]],[5,"get_map","","Returns all key-value pairs from a given map.",null,[[["maptype",4]],[["result",6],["vec",3]]]],[5,"set_map","","Sets all key-value pairs in a given map.",null,[[["maptype",4]],["result",6]]],[5,"get_map_value","","Returns value of a given key from a given map.",null,[[["maptype",4]],[["option",4],["result",6]]]],[5,"set_map_value","","Sets / replaces / removes value of given key from a given …",null,[[["option",4],["maptype",4]],["result",6]]],[5,"add_map_value","","Adds a key-value pair to a given map.",null,[[["maptype",4]],["result",6]]],[5,"get_property","","Returns value of a property in the current context.",null,[[],[["option",4],["result",6]]]],[5,"set_property","","Sets property to a given value in the current context.",null,[[["option",4]],["result",6]]],[5,"get_shared_data","","Returns shared data by key.",null,[[],["result",6]]],[5,"set_shared_data","","Sets shared data by key.",null,[[["option",4],["option",4]],["result",6]]],[5,"register_shared_queue","","Registers a shared queue with a given name.",null,[[],["result",6]]],[5,"resolve_shared_queue","","Looks up for an existing shared queue with a given name.",null,[[],[["result",6],["option",4]]]],[5,"dequeue_shared_queue","","Returns data from the end of a given queue.",null,[[],[["option",4],["result",6]]]],[5,"enqueue_shared_queue","","Adds a value to the front of a given queue.",null,[[["option",4]],["result",6]]],[5,"continue_stream","","Resumes processing of a given stream, i.e. HTTP request …",null,[[["streamtype",4]],["result",6]]],[5,"close_stream","","Terminates processing of a given stream, i.e. HTTP …",null,[[["streamtype",4]],["result",6]]],[5,"send_http_response","","Sends HTTP response without forwarding request to the …",null,[[["option",4]],["result",6]]],[5,"dispatch_http_call","","Dispatches an HTTP call to a given upstream.",null,[[["duration",3],["option",4]],["result",6]]],[5,"set_effective_context","","Changes the effective context.",null,[[],["result",6]]],[5,"done","","Indicates to the host environment that Wasm VM side is …",null,[[],["result",6]]],[5,"define_metric","","",null,[[["metrictype",4]],["result",6]]],[5,"get_metric","","",null,[[],["result",6]]],[5,"record_metric","","",null,[[],["result",6]]],[5,"increment_metric","","",null,[[],["result",6]]],[0,"traits","proxy_wasm_experimental","",null,null],[8,"Context","proxy_wasm_experimental::traits","",null,null],[11,"get_current_time","","",2,[[],["systemtime",3]]],[11,"get_property","","",2,[[["vec",3]],[["option",4],["bytestring",3]]]],[11,"set_property","","",2,[[["option",4],["vec",3]]]],[11,"get_shared_data","","",2,[[]]],[11,"set_shared_data","","",2,[[["option",4],["option",4]],["result",6]]],[11,"register_shared_queue","","",2,[[]]],[11,"resolve_shared_queue","","",2,[[],["option",4]]],[11,"dequeue_shared_queue","","",2,[[],[["option",4],["result",6]]]],[11,"enqueue_shared_queue","","",2,[[["option",4]],["result",6]]],[11,"dispatch_http_call","","",2,[[["vec",3],["option",4],["duration",3]],["result",6]]],[11,"on_http_call_response","","",2,[[]]],[11,"get_http_call_response_headers","","",2,[[],["vec",3]]],[11,"get_http_call_response_body","","",2,[[],[["option",4],["bytestring",3]]]],[11,"get_http_call_response_trailers","","",2,[[],["vec",3]]],[11,"on_done","","",2,[[]]],[11,"done","","",2,[[]]],[8,"RootContext","","",null,null],[11,"on_vm_start","","",3,[[]]],[11,"on_configure","","",3,[[]]],[11,"set_tick_period","","",3,[[["duration",3]]]],[11,"on_tick","","",3,[[]]],[11,"on_queue_ready","","",3,[[]]],[11,"on_log","","",3,[[]]],[11,"create_http_context","","",3,[[],[["option",4],["box",3]]]],[11,"create_stream_context","","",3,[[],[["box",3],["option",4]]]],[11,"get_type","","",3,[[],[["option",4],["contexttype",4]]]],[8,"StreamContext","","",null,null],[11,"on_new_connection","","",4,[[],["action",4]]],[11,"on_downstream_data","","",4,[[],["action",4]]],[11,"get_downstream_data","","",4,[[],[["option",4],["bytestring",3]]]],[11,"set_downstream_data","","",4,[[]]],[11,"on_downstream_close","","",4,[[["peertype",4]]]],[11,"on_upstream_data","","",4,[[],["action",4]]],[11,"get_upstream_data","","",4,[[],[["option",4],["bytestring",3]]]],[11,"set_upstream_data","","",4,[[]]],[11,"on_upstream_close","","",4,[[["peertype",4]]]],[11,"on_log","","",4,[[]]],[8,"HttpContext","","",null,null],[11,"on_http_request_headers","","",5,[[],["action",4]]],[11,"get_http_request_headers","","",5,[[],["vec",3]]],[11,"set_http_request_headers","","",5,[[["vec",3]]]],[11,"get_http_request_header","","",5,[[],[["option",4],["bytestring",3]]]],[11,"set_http_request_header","","",5,[[["option",4]]]],[11,"add_http_request_header","","",5,[[]]],[11,"on_http_request_body","","",5,[[],["action",4]]],[11,"get_http_request_body","","",5,[[],[["option",4],["bytestring",3]]]],[11,"set_http_request_body","","",5,[[]]],[11,"on_http_request_trailers","","",5,[[],["action",4]]],[11,"get_http_request_trailers","","",5,[[],["vec",3]]],[11,"set_http_request_trailers","","",5,[[["vec",3]]]],[11,"get_http_request_trailer","","",5,[[],[["option",4],["bytestring",3]]]],[11,"set_http_request_trailer","","",5,[[["option",4]]]],[11,"add_http_request_trailer","","",5,[[]]],[11,"resume_http_request","","",5,[[]]],[11,"on_http_response_headers","","",5,[[],["action",4]]],[11,"get_http_response_headers","","",5,[[],["vec",3]]],[11,"set_http_response_headers","","",5,[[["vec",3]]]],[11,"get_http_response_header","","",5,[[],[["option",4],["bytestring",3]]]],[11,"set_http_response_header","","",5,[[["option",4]]]],[11,"add_http_response_header","","",5,[[]]],[11,"on_http_response_body","","",5,[[],["action",4]]],[11,"get_http_response_body","","",5,[[],[["option",4],["bytestring",3]]]],[11,"set_http_response_body","","",5,[[]]],[11,"on_http_response_trailers","","",5,[[],["action",4]]],[11,"get_http_response_trailers","","",5,[[],["vec",3]]],[11,"set_http_response_trailers","","",5,[[["vec",3]]]],[11,"get_http_response_trailer","","",5,[[],[["option",4],["bytestring",3]]]],[11,"set_http_response_trailer","","",5,[[["option",4]]]],[11,"add_http_response_trailer","","",5,[[]]],[11,"resume_http_response","","",5,[[]]],[11,"send_http_response","","",5,[[["vec",3],["option",4]]]],[11,"on_log","","",5,[[]]],[0,"types","proxy_wasm_experimental","",null,null],[3,"ByteString","proxy_wasm_experimental::types","Represents a string value that is not necessarily UTF-8 …",null,null],[6,"NewRootContext","","",null,null],[6,"NewStreamContext","","",null,null],[6,"NewHttpContext","","",null,null],[4,"LogLevel","","",null,null],[13,"Trace","","",6,null],[13,"Debug","","",6,null],[13,"Info","","",6,null],[13,"Warn","","",6,null],[13,"Error","","",6,null],[13,"Critical","","",6,null],[4,"Action","","",null,null],[13,"Continue","","",7,null],[13,"Pause","","",7,null],[4,"Status","","",null,null],[13,"Ok","","",8,null],[13,"NotFound","","",8,null],[13,"BadArgument","","",8,null],[13,"Empty","","",8,null],[13,"CasMismatch","","",8,null],[13,"InternalFailure","","",8,null],[4,"ContextType","","",null,null],[13,"HttpContext","","",9,null],[13,"StreamContext","","",9,null],[4,"BufferType","","",null,null],[13,"HttpRequestBody","","",10,null],[13,"HttpResponseBody","","",10,null],[13,"DownstreamData","","",10,null],[13,"UpstreamData","","",10,null],[13,"HttpCallResponseBody","","",10,null],[13,"GrpcReceiveBuffer","","",10,null],[13,"VmConfiguration","","",10,null],[13,"PluginConfiguration","","",10,null],[13,"CallData","","",10,null],[4,"MapType","","",null,null],[13,"HttpRequestHeaders","","",11,null],[13,"HttpRequestTrailers","","",11,null],[13,"HttpResponseHeaders","","",11,null],[13,"HttpResponseTrailers","","",11,null],[13,"GrpcReceiveInitialMetadata","","",11,null],[13,"GrpcReceiveTrailingMetadata","","",11,null],[13,"HttpCallResponseHeaders","","",11,null],[13,"HttpCallResponseTrailers","","",11,null],[4,"PeerType","","",null,null],[13,"Unknown","","",12,null],[13,"Local","","",12,null],[13,"Remote","","",12,null],[4,"StreamType","","",null,null],[13,"Request","","",13,null],[13,"Response","","",13,null],[4,"MetricType","","",null,null],[13,"Counter","","",14,null],[13,"Gauge","","",14,null],[13,"Histogram","","",14,null],[11,"new","","",15,[[]]],[11,"is_empty","","",15,[[]]],[11,"len","","",15,[[]]],[11,"as_bytes","","",15,[[]]],[11,"into_bytes","","",15,[[],["vec",3]]],[11,"into_string","","",15,[[],[["string",3],["fromutf8error",3],["result",4]]]],[5,"set_log_level","proxy_wasm_experimental","",null,[[["loglevel",4]]]],[5,"set_root_context","","",null,[[]]],[5,"set_stream_context","","",null,[[]]],[5,"set_http_context","","",null,[[]]],[5,"proxy_abi_version_0_2_0","","",null,[[]]],[11,"from","proxy_wasm_experimental::error","",0,[[]]],[11,"into","","",0,[[]]],[11,"to_string","","",0,[[],["string",3]]],[11,"borrow","","",0,[[]]],[11,"borrow_mut","","",0,[[]]],[11,"try_from","","",0,[[],["result",4]]],[11,"try_into","","",0,[[],["result",4]]],[11,"type_id","","",0,[[],["typeid",3]]],[11,"from","","",1,[[]]],[11,"into","","",1,[[]]],[11,"to_string","","",1,[[],["string",3]]],[11,"borrow","","",1,[[]]],[11,"borrow_mut","","",1,[[]]],[11,"try_from","","",1,[[],["result",4]]],[11,"try_into","","",1,[[],["result",4]]],[11,"type_id","","",1,[[],["typeid",3]]],[11,"from","proxy_wasm_experimental::types","",15,[[]]],[11,"into","","",15,[[]]],[11,"to_owned","","",15,[[]]],[11,"clone_into","","",15,[[]]],[11,"to_string","","",15,[[],["string",3]]],[11,"borrow","","",15,[[]]],[11,"borrow_mut","","",15,[[]]],[11,"try_from","","",15,[[],["result",4]]],[11,"try_into","","",15,[[],["result",4]]],[11,"type_id","","",15,[[],["typeid",3]]],[11,"get_hash","","",15,[[]]],[11,"from","","",6,[[]]],[11,"into","","",6,[[]]],[11,"to_owned","","",6,[[]]],[11,"clone_into","","",6,[[]]],[11,"borrow","","",6,[[]]],[11,"borrow_mut","","",6,[[]]],[11,"try_from","","",6,[[],["result",4]]],[11,"try_into","","",6,[[],["result",4]]],[11,"type_id","","",6,[[],["typeid",3]]],[11,"get_hash","","",6,[[]]],[11,"from","","",7,[[]]],[11,"into","","",7,[[]]],[11,"to_owned","","",7,[[]]],[11,"clone_into","","",7,[[]]],[11,"borrow","","",7,[[]]],[11,"borrow_mut","","",7,[[]]],[11,"try_from","","",7,[[],["result",4]]],[11,"try_into","","",7,[[],["result",4]]],[11,"type_id","","",7,[[],["typeid",3]]],[11,"get_hash","","",7,[[]]],[11,"from","","",8,[[]]],[11,"into","","",8,[[]]],[11,"to_owned","","",8,[[]]],[11,"clone_into","","",8,[[]]],[11,"borrow","","",8,[[]]],[11,"borrow_mut","","",8,[[]]],[11,"try_from","","",8,[[],["result",4]]],[11,"try_into","","",8,[[],["result",4]]],[11,"type_id","","",8,[[],["typeid",3]]],[11,"get_hash","","",8,[[]]],[11,"from","","",9,[[]]],[11,"into","","",9,[[]]],[11,"to_owned","","",9,[[]]],[11,"clone_into","","",9,[[]]],[11,"borrow","","",9,[[]]],[11,"borrow_mut","","",9,[[]]],[11,"try_from","","",9,[[],["result",4]]],[11,"try_into","","",9,[[],["result",4]]],[11,"type_id","","",9,[[],["typeid",3]]],[11,"get_hash","","",9,[[]]],[11,"from","","",10,[[]]],[11,"into","","",10,[[]]],[11,"to_owned","","",10,[[]]],[11,"clone_into","","",10,[[]]],[11,"borrow","","",10,[[]]],[11,"borrow_mut","","",10,[[]]],[11,"try_from","","",10,[[],["result",4]]],[11,"try_into","","",10,[[],["result",4]]],[11,"type_id","","",10,[[],["typeid",3]]],[11,"get_hash","","",10,[[]]],[11,"from","","",11,[[]]],[11,"into","","",11,[[]]],[11,"to_owned","","",11,[[]]],[11,"clone_into","","",11,[[]]],[11,"borrow","","",11,[[]]],[11,"borrow_mut","","",11,[[]]],[11,"try_from","","",11,[[],["result",4]]],[11,"try_into","","",11,[[],["result",4]]],[11,"type_id","","",11,[[],["typeid",3]]],[11,"get_hash","","",11,[[]]],[11,"from","","",12,[[]]],[11,"into","","",12,[[]]],[11,"to_owned","","",12,[[]]],[11,"clone_into","","",12,[[]]],[11,"borrow","","",12,[[]]],[11,"borrow_mut","","",12,[[]]],[11,"try_from","","",12,[[],["result",4]]],[11,"try_into","","",12,[[],["result",4]]],[11,"type_id","","",12,[[],["typeid",3]]],[11,"get_hash","","",12,[[]]],[11,"from","","",13,[[]]],[11,"into","","",13,[[]]],[11,"to_owned","","",13,[[]]],[11,"clone_into","","",13,[[]]],[11,"borrow","","",13,[[]]],[11,"borrow_mut","","",13,[[]]],[11,"try_from","","",13,[[],["result",4]]],[11,"try_into","","",13,[[],["result",4]]],[11,"type_id","","",13,[[],["typeid",3]]],[11,"get_hash","","",13,[[]]],[11,"from","","",14,[[]]],[11,"into","","",14,[[]]],[11,"to_owned","","",14,[[]]],[11,"clone_into","","",14,[[]]],[11,"borrow","","",14,[[]]],[11,"borrow_mut","","",14,[[]]],[11,"try_from","","",14,[[],["result",4]]],[11,"try_into","","",14,[[],["result",4]]],[11,"type_id","","",14,[[],["typeid",3]]],[11,"get_hash","","",14,[[]]],[11,"as_mut","","",15,[[]]],[11,"as_ref","","",15,[[]]],[11,"from","","",15,[[["vec",3]]]],[11,"from","","",15,[[]]],[11,"from","","",15,[[["string",3]]]],[11,"from","","",15,[[]]],[11,"from","","",15,[[["bytestring",3]]]],[11,"clone","","",6,[[],["loglevel",4]]],[11,"clone","","",7,[[],["action",4]]],[11,"clone","","",8,[[],["status",4]]],[11,"clone","","",9,[[],["contexttype",4]]],[11,"clone","","",10,[[],["buffertype",4]]],[11,"clone","","",11,[[],["maptype",4]]],[11,"clone","","",12,[[],["peertype",4]]],[11,"clone","","",13,[[],["streamtype",4]]],[11,"clone","","",14,[[],["metrictype",4]]],[11,"clone","","",15,[[],["bytestring",3]]],[11,"default","","",15,[[],["bytestring",3]]],[11,"eq","","",6,[[["loglevel",4]]]],[11,"eq","","",7,[[["action",4]]]],[11,"eq","","",8,[[["status",4]]]],[11,"eq","","",9,[[["contexttype",4]]]],[11,"eq","","",10,[[["buffertype",4]]]],[11,"eq","","",11,[[["maptype",4]]]],[11,"eq","","",12,[[["peertype",4]]]],[11,"eq","","",13,[[["streamtype",4]]]],[11,"eq","","",14,[[["metrictype",4]]]],[11,"eq","","",15,[[["bytestring",3]]]],[11,"eq","","",15,[[["string",3]]]],[11,"eq","","",15,[[["vec",3]]]],[11,"eq","","",15,[[]]],[11,"eq","","",15,[[]]],[11,"eq","","",15,[[]]],[11,"eq","","",15,[[]]],[11,"deref","","",15,[[],["bytestr",3]]],[11,"deref_mut","","",15,[[],["bytestr",3]]],[11,"fmt","proxy_wasm_experimental::error","",0,[[["formatter",3]],["result",6]]],[11,"fmt","","",1,[[["formatter",3]],["result",6]]],[11,"fmt","proxy_wasm_experimental::types","",6,[[["formatter",3]],["result",6]]],[11,"fmt","","",7,[[["formatter",3]],["result",6]]],[11,"fmt","","",8,[[["formatter",3]],["result",6]]],[11,"fmt","","",9,[[["formatter",3]],["result",6]]],[11,"fmt","","",10,[[["formatter",3]],["result",6]]],[11,"fmt","","",11,[[["formatter",3]],["result",6]]],[11,"fmt","","",12,[[["formatter",3]],["result",6]]],[11,"fmt","","",13,[[["formatter",3]],["result",6]]],[11,"fmt","","",14,[[["formatter",3]],["result",6]]],[11,"fmt","","",15,[[["formatter",3]],["result",6]]],[11,"fmt","proxy_wasm_experimental::error","",0,[[["formatter",3]],["result",6]]],[11,"fmt","","",1,[[["formatter",3]],["result",6]]],[11,"fmt","proxy_wasm_experimental::types","",15,[[["formatter",3]],["result",6]]],[11,"hash","","",6,[[]]],[11,"hash","","",7,[[]]],[11,"hash","","",8,[[]]],[11,"hash","","",9,[[]]],[11,"hash","","",10,[[]]],[11,"hash","","",11,[[]]],[11,"hash","","",12,[[]]],[11,"hash","","",13,[[]]],[11,"hash","","",14,[[]]],[11,"hash","","",15,[[]]],[11,"source","proxy_wasm_experimental::error","",1,[[],[["option",4],["error",8]]]]],"p":[[3,"HostCallError"],[3,"HostResponseError"],[8,"Context"],[8,"RootContext"],[8,"StreamContext"],[8,"HttpContext"],[4,"LogLevel"],[4,"Action"],[4,"Status"],[4,"ContextType"],[4,"BufferType"],[4,"MapType"],[4,"PeerType"],[4,"StreamType"],[4,"MetricType"],[3,"ByteString"]]}\ +"proxy_wasm_experimental":{"doc":"","i":[[0,"error","proxy_wasm_experimental","",null,null],[6,"Error","proxy_wasm_experimental::error","A boxed Error.",null,null],[6,"Result","","A specialized Result type.",null,null],[3,"HostCallError","","An error to call a Host ABI function.",null,null],[11,"module","","",0,[[],["str",15]]],[11,"function","","",0,[[],["str",15]]],[11,"status","","",0,[[],["status",4]]],[3,"HostResponseError","","An error to parse the response from a Host ABI.",null,null],[11,"module","","",1,[[],["str",15]]],[11,"function","","",1,[[],["str",15]]],[0,"hostcalls","proxy_wasm_experimental","",null,null],[17,"NO_HEADERS","proxy_wasm_experimental::hostcalls","Represents empty headers map.",null,null],[17,"NO_BODY","","Represents empty body.",null,null],[17,"NO_TRAILERS","","Represents empty trailers map.",null,null],[5,"log","","Logs a message at a given log level.",null,[[["str",15],["loglevel",4]],["result",6]]],[5,"get_current_time","","Returns current system time.",null,[[],[["systemtime",3],["result",6]]]],[5,"set_tick_period","","Sets the timer to a given period.",null,[[["duration",3]],["result",6]]],[5,"get_buffer","","Returns content from a given buffer.",null,[[["usize",15],["buffertype",4]],[["result",6],["option",4]]]],[5,"set_buffer","","Mutates content in a given buffer.",null,[[["usize",15],["buffertype",4]],["result",6]]],[5,"get_map","","Returns all key-value pairs from a given map.",null,[[["maptype",4]],[["result",6],["vec",3]]]],[5,"set_map","","Sets all key-value pairs in a given map.",null,[[["maptype",4]],["result",6]]],[5,"get_map_value","","Returns value of a given key from a given map.",null,[[["maptype",4]],[["result",6],["option",4]]]],[5,"set_map_value","","Sets / replaces / removes value of given key from a given …",null,[[["maptype",4],["option",4]],["result",6]]],[5,"add_map_value","","Adds a key-value pair to a given map.",null,[[["maptype",4]],["result",6]]],[5,"get_property","","Returns value of a property in the current context.",null,[[],[["result",6],["option",4]]]],[5,"set_property","","Sets property to a given value in the current context.",null,[[["option",4]],["result",6]]],[5,"get_shared_data","","Returns shared data by key.",null,[[],["result",6]]],[5,"set_shared_data","","Sets shared data by key.",null,[[["option",4],["option",4],["u32",15]],["result",6]]],[5,"register_shared_queue","","Registers a shared queue with a given name.",null,[[["str",15]],[["u32",15],["result",6]]]],[5,"resolve_shared_queue","","Looks up for an existing shared queue with a given name.",null,[[["str",15]],[["option",4],["result",6]]]],[5,"dequeue_shared_queue","","Returns data from the end of a given queue.",null,[[["u32",15]],[["result",6],["option",4]]]],[5,"enqueue_shared_queue","","Adds a value to the front of a given queue.",null,[[["u32",15],["option",4]],["result",6]]],[5,"continue_stream","","Resumes processing of a given stream, i.e. HTTP request …",null,[[["streamtype",4]],["result",6]]],[5,"close_stream","","Terminates processing of a given stream, i.e. HTTP …",null,[[["streamtype",4]],["result",6]]],[5,"send_http_response","","Sends HTTP response without forwarding request to the …",null,[[["u32",15],["option",4]],["result",6]]],[5,"dispatch_http_call","","Dispatches an HTTP call to a given upstream.",null,[[["option",4],["duration",3],["str",15]],[["u32",15],["result",6]]]],[5,"set_effective_context","","Changes the effective context.",null,[[["u32",15]],["result",6]]],[5,"done","","Indicates to the host environment that Wasm VM side is …",null,[[],["result",6]]],[5,"define_metric","","",null,[[["metrictype",4],["str",15]],[["u32",15],["result",6]]]],[5,"get_metric","","",null,[[["u32",15]],[["result",6],["u64",15]]]],[5,"record_metric","","",null,[[["u32",15],["u64",15]],["result",6]]],[5,"increment_metric","","",null,[[["u32",15],["i64",15]],["result",6]]],[0,"traits","proxy_wasm_experimental","",null,null],[8,"Context","proxy_wasm_experimental::traits","",null,null],[11,"get_current_time","","",2,[[],["systemtime",3]]],[11,"get_property","","",2,[[["vec",3],["str",15]],[["bytestring",3],["option",4]]]],[11,"set_property","","",2,[[["vec",3],["option",4],["str",15]]]],[11,"get_shared_data","","",2,[[["str",15]]]],[11,"set_shared_data","","",2,[[["option",4],["u32",15],["option",4],["str",15]],["result",6]]],[11,"register_shared_queue","","",2,[[["str",15]],["u32",15]]],[11,"resolve_shared_queue","","",2,[[["str",15]],[["option",4],["u32",15]]]],[11,"dequeue_shared_queue","","",2,[[["u32",15]],[["result",6],["option",4]]]],[11,"enqueue_shared_queue","","",2,[[["u32",15],["option",4]],["result",6]]],[11,"dispatch_http_call","","",2,[[["vec",3],["duration",3],["option",4],["str",15]],[["u32",15],["result",6]]]],[11,"on_http_call_response","","",2,[[["u32",15],["usize",15]]]],[11,"get_http_call_response_headers","","",2,[[],["vec",3]]],[11,"get_http_call_response_body","","",2,[[["usize",15]],[["bytestring",3],["option",4]]]],[11,"get_http_call_response_trailers","","",2,[[],["vec",3]]],[11,"on_done","","",2,[[],["bool",15]]],[11,"done","","",2,[[]]],[8,"RootContext","","",null,null],[11,"on_vm_start","","",3,[[["usize",15]],["bool",15]]],[11,"on_configure","","",3,[[["usize",15]],["bool",15]]],[11,"set_tick_period","","",3,[[["duration",3]]]],[11,"on_tick","","",3,[[]]],[11,"on_queue_ready","","",3,[[["u32",15]]]],[11,"on_log","","",3,[[]]],[11,"create_http_context","","",3,[[["u32",15]],[["option",4],["box",3]]]],[11,"create_stream_context","","",3,[[["u32",15]],[["box",3],["option",4]]]],[11,"get_type","","",3,[[],[["contexttype",4],["option",4]]]],[8,"StreamContext","","",null,null],[11,"on_new_connection","","",4,[[],["action",4]]],[11,"on_downstream_data","","",4,[[["usize",15],["bool",15]],["action",4]]],[11,"get_downstream_data","","",4,[[["usize",15]],[["bytestring",3],["option",4]]]],[11,"set_downstream_data","","",4,[[["usize",15]]]],[11,"on_downstream_close","","",4,[[["peertype",4]]]],[11,"on_upstream_data","","",4,[[["usize",15],["bool",15]],["action",4]]],[11,"get_upstream_data","","",4,[[["usize",15]],[["bytestring",3],["option",4]]]],[11,"set_upstream_data","","",4,[[["usize",15]]]],[11,"on_upstream_close","","",4,[[["peertype",4]]]],[11,"on_log","","",4,[[]]],[8,"HttpContext","","",null,null],[11,"on_http_request_headers","","",5,[[["usize",15],["bool",15]],["action",4]]],[11,"get_http_request_headers","","",5,[[],["vec",3]]],[11,"set_http_request_headers","","",5,[[["vec",3]]]],[11,"get_http_request_header","","",5,[[["str",15]],[["bytestring",3],["option",4]]]],[11,"set_http_request_header","","",5,[[["option",4],["str",15]]]],[11,"add_http_request_header","","",5,[[["str",15]]]],[11,"on_http_request_body","","",5,[[["usize",15],["bool",15]],["action",4]]],[11,"get_http_request_body","","",5,[[["usize",15]],[["bytestring",3],["option",4]]]],[11,"set_http_request_body","","",5,[[["usize",15]]]],[11,"on_http_request_trailers","","",5,[[["usize",15]],["action",4]]],[11,"get_http_request_trailers","","",5,[[],["vec",3]]],[11,"set_http_request_trailers","","",5,[[["vec",3]]]],[11,"get_http_request_trailer","","",5,[[["str",15]],[["bytestring",3],["option",4]]]],[11,"set_http_request_trailer","","",5,[[["option",4],["str",15]]]],[11,"add_http_request_trailer","","",5,[[["str",15]]]],[11,"resume_http_request","","",5,[[]]],[11,"on_http_response_headers","","",5,[[["usize",15],["bool",15]],["action",4]]],[11,"get_http_response_headers","","",5,[[],["vec",3]]],[11,"set_http_response_headers","","",5,[[["vec",3]]]],[11,"get_http_response_header","","",5,[[["str",15]],[["bytestring",3],["option",4]]]],[11,"set_http_response_header","","",5,[[["option",4],["str",15]]]],[11,"add_http_response_header","","",5,[[["str",15]]]],[11,"on_http_response_body","","",5,[[["usize",15],["bool",15]],["action",4]]],[11,"get_http_response_body","","",5,[[["usize",15]],[["bytestring",3],["option",4]]]],[11,"set_http_response_body","","",5,[[["usize",15]]]],[11,"on_http_response_trailers","","",5,[[["usize",15]],["action",4]]],[11,"get_http_response_trailers","","",5,[[],["vec",3]]],[11,"set_http_response_trailers","","",5,[[["vec",3]]]],[11,"get_http_response_trailer","","",5,[[["str",15]],[["bytestring",3],["option",4]]]],[11,"set_http_response_trailer","","",5,[[["option",4],["str",15]]]],[11,"add_http_response_trailer","","",5,[[["str",15]]]],[11,"resume_http_response","","",5,[[]]],[11,"send_http_response","","",5,[[["u32",15],["vec",3],["option",4]]]],[11,"on_log","","",5,[[]]],[0,"types","proxy_wasm_experimental","",null,null],[3,"ByteString","proxy_wasm_experimental::types","Represents a string value that is not necessarily UTF-8 …",null,null],[6,"NewRootContext","","",null,null],[6,"NewStreamContext","","",null,null],[6,"NewHttpContext","","",null,null],[4,"LogLevel","","",null,null],[13,"Trace","","",6,null],[13,"Debug","","",6,null],[13,"Info","","",6,null],[13,"Warn","","",6,null],[13,"Error","","",6,null],[13,"Critical","","",6,null],[4,"Action","","",null,null],[13,"Continue","","",7,null],[13,"Pause","","",7,null],[4,"Status","","",null,null],[13,"Ok","","",8,null],[13,"NotFound","","",8,null],[13,"BadArgument","","",8,null],[13,"Empty","","",8,null],[13,"CasMismatch","","",8,null],[13,"InternalFailure","","",8,null],[4,"ContextType","","",null,null],[13,"HttpContext","","",9,null],[13,"StreamContext","","",9,null],[4,"BufferType","","",null,null],[13,"HttpRequestBody","","",10,null],[13,"HttpResponseBody","","",10,null],[13,"DownstreamData","","",10,null],[13,"UpstreamData","","",10,null],[13,"HttpCallResponseBody","","",10,null],[13,"GrpcReceiveBuffer","","",10,null],[13,"VmConfiguration","","",10,null],[13,"PluginConfiguration","","",10,null],[13,"CallData","","",10,null],[4,"MapType","","",null,null],[13,"HttpRequestHeaders","","",11,null],[13,"HttpRequestTrailers","","",11,null],[13,"HttpResponseHeaders","","",11,null],[13,"HttpResponseTrailers","","",11,null],[13,"GrpcReceiveInitialMetadata","","",11,null],[13,"GrpcReceiveTrailingMetadata","","",11,null],[13,"HttpCallResponseHeaders","","",11,null],[13,"HttpCallResponseTrailers","","",11,null],[4,"PeerType","","",null,null],[13,"Unknown","","",12,null],[13,"Local","","",12,null],[13,"Remote","","",12,null],[4,"StreamType","","",null,null],[13,"Request","","",13,null],[13,"Response","","",13,null],[4,"MetricType","","",null,null],[13,"Counter","","",14,null],[13,"Gauge","","",14,null],[13,"Histogram","","",14,null],[11,"new","","",15,[[]]],[11,"is_empty","","",15,[[],["bool",15]]],[11,"len","","",15,[[],["usize",15]]],[11,"as_bytes","","",15,[[]]],[11,"into_bytes","","",15,[[],[["vec",3],["u8",15]]]],[11,"into_string","","",15,[[],[["result",4],["string",3],["fromutf8error",3]]]],[5,"set_log_level","proxy_wasm_experimental","",null,[[["loglevel",4]]]],[5,"set_root_context","","",null,[[]]],[5,"set_stream_context","","",null,[[]]],[5,"set_http_context","","",null,[[]]],[5,"proxy_abi_version_0_2_0","","",null,[[]]],[11,"from","proxy_wasm_experimental::error","",0,[[]]],[11,"into","","",0,[[]]],[11,"to_string","","",0,[[],["string",3]]],[11,"borrow","","",0,[[]]],[11,"borrow_mut","","",0,[[]]],[11,"try_from","","",0,[[],["result",4]]],[11,"try_into","","",0,[[],["result",4]]],[11,"type_id","","",0,[[],["typeid",3]]],[11,"from","","",1,[[]]],[11,"into","","",1,[[]]],[11,"to_string","","",1,[[],["string",3]]],[11,"borrow","","",1,[[]]],[11,"borrow_mut","","",1,[[]]],[11,"try_from","","",1,[[],["result",4]]],[11,"try_into","","",1,[[],["result",4]]],[11,"type_id","","",1,[[],["typeid",3]]],[11,"from","proxy_wasm_experimental::types","",15,[[]]],[11,"into","","",15,[[]]],[11,"to_owned","","",15,[[]]],[11,"clone_into","","",15,[[]]],[11,"to_string","","",15,[[],["string",3]]],[11,"borrow","","",15,[[]]],[11,"borrow_mut","","",15,[[]]],[11,"try_from","","",15,[[],["result",4]]],[11,"try_into","","",15,[[],["result",4]]],[11,"type_id","","",15,[[],["typeid",3]]],[11,"get_hash","","",15,[[],["u64",15]]],[11,"from","","",6,[[]]],[11,"into","","",6,[[]]],[11,"to_owned","","",6,[[]]],[11,"clone_into","","",6,[[]]],[11,"borrow","","",6,[[]]],[11,"borrow_mut","","",6,[[]]],[11,"try_from","","",6,[[],["result",4]]],[11,"try_into","","",6,[[],["result",4]]],[11,"type_id","","",6,[[],["typeid",3]]],[11,"get_hash","","",6,[[],["u64",15]]],[11,"from","","",7,[[]]],[11,"into","","",7,[[]]],[11,"to_owned","","",7,[[]]],[11,"clone_into","","",7,[[]]],[11,"borrow","","",7,[[]]],[11,"borrow_mut","","",7,[[]]],[11,"try_from","","",7,[[],["result",4]]],[11,"try_into","","",7,[[],["result",4]]],[11,"type_id","","",7,[[],["typeid",3]]],[11,"get_hash","","",7,[[],["u64",15]]],[11,"from","","",8,[[]]],[11,"into","","",8,[[]]],[11,"to_owned","","",8,[[]]],[11,"clone_into","","",8,[[]]],[11,"borrow","","",8,[[]]],[11,"borrow_mut","","",8,[[]]],[11,"try_from","","",8,[[],["result",4]]],[11,"try_into","","",8,[[],["result",4]]],[11,"type_id","","",8,[[],["typeid",3]]],[11,"get_hash","","",8,[[],["u64",15]]],[11,"from","","",9,[[]]],[11,"into","","",9,[[]]],[11,"to_owned","","",9,[[]]],[11,"clone_into","","",9,[[]]],[11,"borrow","","",9,[[]]],[11,"borrow_mut","","",9,[[]]],[11,"try_from","","",9,[[],["result",4]]],[11,"try_into","","",9,[[],["result",4]]],[11,"type_id","","",9,[[],["typeid",3]]],[11,"get_hash","","",9,[[],["u64",15]]],[11,"from","","",10,[[]]],[11,"into","","",10,[[]]],[11,"to_owned","","",10,[[]]],[11,"clone_into","","",10,[[]]],[11,"borrow","","",10,[[]]],[11,"borrow_mut","","",10,[[]]],[11,"try_from","","",10,[[],["result",4]]],[11,"try_into","","",10,[[],["result",4]]],[11,"type_id","","",10,[[],["typeid",3]]],[11,"get_hash","","",10,[[],["u64",15]]],[11,"from","","",11,[[]]],[11,"into","","",11,[[]]],[11,"to_owned","","",11,[[]]],[11,"clone_into","","",11,[[]]],[11,"borrow","","",11,[[]]],[11,"borrow_mut","","",11,[[]]],[11,"try_from","","",11,[[],["result",4]]],[11,"try_into","","",11,[[],["result",4]]],[11,"type_id","","",11,[[],["typeid",3]]],[11,"get_hash","","",11,[[],["u64",15]]],[11,"from","","",12,[[]]],[11,"into","","",12,[[]]],[11,"to_owned","","",12,[[]]],[11,"clone_into","","",12,[[]]],[11,"borrow","","",12,[[]]],[11,"borrow_mut","","",12,[[]]],[11,"try_from","","",12,[[],["result",4]]],[11,"try_into","","",12,[[],["result",4]]],[11,"type_id","","",12,[[],["typeid",3]]],[11,"get_hash","","",12,[[],["u64",15]]],[11,"from","","",13,[[]]],[11,"into","","",13,[[]]],[11,"to_owned","","",13,[[]]],[11,"clone_into","","",13,[[]]],[11,"borrow","","",13,[[]]],[11,"borrow_mut","","",13,[[]]],[11,"try_from","","",13,[[],["result",4]]],[11,"try_into","","",13,[[],["result",4]]],[11,"type_id","","",13,[[],["typeid",3]]],[11,"get_hash","","",13,[[],["u64",15]]],[11,"from","","",14,[[]]],[11,"into","","",14,[[]]],[11,"to_owned","","",14,[[]]],[11,"clone_into","","",14,[[]]],[11,"borrow","","",14,[[]]],[11,"borrow_mut","","",14,[[]]],[11,"try_from","","",14,[[],["result",4]]],[11,"try_into","","",14,[[],["result",4]]],[11,"type_id","","",14,[[],["typeid",3]]],[11,"get_hash","","",14,[[],["u64",15]]],[11,"as_mut","","",15,[[]]],[11,"as_ref","","",15,[[]]],[11,"from","","",15,[[["vec",3],["u8",15]]]],[11,"from","","",15,[[]]],[11,"from","","",15,[[["string",3]]]],[11,"from","","",15,[[["str",15]]]],[11,"from","","",15,[[["bytestring",3]]]],[11,"clone","","",6,[[],["loglevel",4]]],[11,"clone","","",7,[[],["action",4]]],[11,"clone","","",8,[[],["status",4]]],[11,"clone","","",9,[[],["contexttype",4]]],[11,"clone","","",10,[[],["buffertype",4]]],[11,"clone","","",11,[[],["maptype",4]]],[11,"clone","","",12,[[],["peertype",4]]],[11,"clone","","",13,[[],["streamtype",4]]],[11,"clone","","",14,[[],["metrictype",4]]],[11,"clone","","",15,[[],["bytestring",3]]],[11,"default","","",15,[[],["bytestring",3]]],[11,"eq","","",6,[[["loglevel",4]],["bool",15]]],[11,"eq","","",7,[[["action",4]],["bool",15]]],[11,"eq","","",8,[[["status",4]],["bool",15]]],[11,"eq","","",9,[[["contexttype",4]],["bool",15]]],[11,"eq","","",10,[[["buffertype",4]],["bool",15]]],[11,"eq","","",11,[[["maptype",4]],["bool",15]]],[11,"eq","","",12,[[["peertype",4]],["bool",15]]],[11,"eq","","",13,[[["streamtype",4]],["bool",15]]],[11,"eq","","",14,[[["metrictype",4]],["bool",15]]],[11,"eq","","",15,[[["bytestring",3]],["bool",15]]],[11,"eq","","",15,[[["string",3]],["bool",15]]],[11,"eq","","",15,[[["vec",3]],["bool",15]]],[11,"eq","","",15,[[["str",15]],["bool",15]]],[11,"eq","","",15,[[["str",15]],["bool",15]]],[11,"eq","","",15,[[],["bool",15]]],[11,"eq","","",15,[[],["bool",15]]],[11,"deref","","",15,[[],["bytestr",3]]],[11,"deref_mut","","",15,[[],["bytestr",3]]],[11,"fmt","proxy_wasm_experimental::error","",0,[[["formatter",3]],["result",6]]],[11,"fmt","","",1,[[["formatter",3]],["result",6]]],[11,"fmt","proxy_wasm_experimental::types","",6,[[["formatter",3]],["result",6]]],[11,"fmt","","",7,[[["formatter",3]],["result",6]]],[11,"fmt","","",8,[[["formatter",3]],["result",6]]],[11,"fmt","","",9,[[["formatter",3]],["result",6]]],[11,"fmt","","",10,[[["formatter",3]],["result",6]]],[11,"fmt","","",11,[[["formatter",3]],["result",6]]],[11,"fmt","","",12,[[["formatter",3]],["result",6]]],[11,"fmt","","",13,[[["formatter",3]],["result",6]]],[11,"fmt","","",14,[[["formatter",3]],["result",6]]],[11,"fmt","","",15,[[["formatter",3]],["result",6]]],[11,"fmt","proxy_wasm_experimental::error","",0,[[["formatter",3]],["result",6]]],[11,"fmt","","",1,[[["formatter",3]],["result",6]]],[11,"fmt","proxy_wasm_experimental::types","",15,[[["formatter",3]],["result",6]]],[11,"hash","","",6,[[]]],[11,"hash","","",7,[[]]],[11,"hash","","",8,[[]]],[11,"hash","","",9,[[]]],[11,"hash","","",10,[[]]],[11,"hash","","",11,[[]]],[11,"hash","","",12,[[]]],[11,"hash","","",13,[[]]],[11,"hash","","",14,[[]]],[11,"hash","","",15,[[]]],[11,"source","proxy_wasm_experimental::error","",1,[[],[["option",4],["error",8]]]]],"p":[[3,"HostCallError"],[3,"HostResponseError"],[8,"Context"],[8,"RootContext"],[8,"StreamContext"],[8,"HttpContext"],[4,"LogLevel"],[4,"Action"],[4,"Status"],[4,"ContextType"],[4,"BufferType"],[4,"MapType"],[4,"PeerType"],[4,"StreamType"],[4,"MetricType"],[3,"ByteString"]]}\ }'); addSearchOptions(searchIndex);initSearch(searchIndex); \ No newline at end of file diff --git a/settings.html b/settings.html index 057d8799..f5f516d1 100644 --- a/settings.html +++ b/settings.html @@ -3,4 +3,5 @@

Rustdoc settings

Theme preferences
Use system theme
Preferred dark theme
Preferred light theme
Auto-hide item declarations
Auto-hide structs declaration
Auto-hide enums declaration
Auto-hide unions declaration
Auto-hide traits declaration
Auto-hide macros declaration
-
Auto-hide item attributes.
Auto-hide item methods' documentation
Auto-hide trait implementation documentation
Auto-hide implementors of a trait
Directly go to item in search if there is only one result
Show line numbers on code examples
Disable keyboard shortcuts
\ No newline at end of file +
Auto-hide item attributes.
Auto-hide item methods' documentation
Auto-hide trait implementation documentation
Auto-hide implementors of a trait
Directly go to item in search if there is only one result
Show line numbers on code examples
Disable keyboard shortcuts
+ \ No newline at end of file diff --git a/source-script.js b/source-script.js index de663ca5..67f62a16 100644 --- a/source-script.js +++ b/source-script.js @@ -1 +1 @@ -function getCurrentFilePath(){var parts=window.location.pathname.split("/");var rootPathParts=window.rootPath.split("/");for(var i=0;i"){sidebar.style.left="";this.style.left="";child.innerText="<";updateLocalStorage("rustdoc-source-sidebar-show","true")}else{sidebar.style.left="-300px";this.style.left="0";child.innerText=">";updateLocalStorage("rustdoc-source-sidebar-show","false")}}function createSidebarToggle(){var sidebarToggle=document.createElement("div");sidebarToggle.id="sidebar-toggle";sidebarToggle.onclick=toggleSidebar;var inner1=document.createElement("div");inner1.style.position="relative";var inner2=document.createElement("div");inner2.style.paddingTop="3px";if(getCurrentValue("rustdoc-source-sidebar-show")==="true"){inner2.innerText="<"}else{inner2.innerText=">";sidebarToggle.style.left="0"}inner1.appendChild(inner2);sidebarToggle.appendChild(inner1);return sidebarToggle}function createSourceSidebar(){if(window.rootPath.endsWith("/")===false){window.rootPath+="/"}var main=document.getElementById("main");var sidebarToggle=createSidebarToggle();main.insertBefore(sidebarToggle,main.firstChild);var sidebar=document.createElement("div");sidebar.id="source-sidebar";if(getCurrentValue("rustdoc-source-sidebar-show")!=="true"){sidebar.style.left="-300px"}var currentFile=getCurrentFilePath();var hasFoundFile=false;var title=document.createElement("div");title.className="title";title.innerText="Files";sidebar.appendChild(title);Object.keys(sourcesIndex).forEach(function(key){sourcesIndex[key].name=key;hasFoundFile=createDirEntry(sourcesIndex[key],sidebar,"",currentFile,hasFoundFile)});main.insertBefore(sidebar,main.firstChild);var selected_elem=sidebar.getElementsByClassName("selected")[0];if(typeof selected_elem!=="undefined"){selected_elem.focus()}} \ No newline at end of file +function getCurrentFilePath(){var parts=window.location.pathname.split("/");var rootPathParts=window.rootPath.split("/");for(var i=0,len=rootPathParts.length;i"){sidebar.style.left="";this.style.left="";child.innerText="<";updateLocalStorage("rustdoc-source-sidebar-show","true")}else{sidebar.style.left="-300px";this.style.left="0";child.innerText=">";updateLocalStorage("rustdoc-source-sidebar-show","false")}}function createSidebarToggle(){var sidebarToggle=document.createElement("div");sidebarToggle.id="sidebar-toggle";sidebarToggle.onclick=toggleSidebar;var inner1=document.createElement("div");inner1.style.position="relative";var inner2=document.createElement("div");inner2.style.paddingTop="3px";if(getCurrentValue("rustdoc-source-sidebar-show")==="true"){inner2.innerText="<"}else{inner2.innerText=">";sidebarToggle.style.left="0"}inner1.appendChild(inner2);sidebarToggle.appendChild(inner1);return sidebarToggle}function createSourceSidebar(){if(window.rootPath.endsWith("/")===false){window.rootPath+="/"}var main=document.getElementById("main");var sidebarToggle=createSidebarToggle();main.insertBefore(sidebarToggle,main.firstChild);var sidebar=document.createElement("div");sidebar.id="source-sidebar";if(getCurrentValue("rustdoc-source-sidebar-show")!=="true"){sidebar.style.left="-300px"}var currentFile=getCurrentFilePath();var hasFoundFile=false;var title=document.createElement("div");title.className="title";title.innerText="Files";sidebar.appendChild(title);Object.keys(sourcesIndex).forEach(function(key){sourcesIndex[key].name=key;hasFoundFile=createDirEntry(sourcesIndex[key],sidebar,"",currentFile,hasFoundFile)});main.insertBefore(sidebar,main.firstChild);var selected_elem=sidebar.getElementsByClassName("selected")[0];if(typeof selected_elem!=="undefined"){selected_elem.focus()}} \ No newline at end of file diff --git a/src/proxy_wasm_experimental/allocator.rs.html b/src/proxy_wasm_experimental/allocator.rs.html index 34adb510..99379b30 100644 --- a/src/proxy_wasm_experimental/allocator.rs.html +++ b/src/proxy_wasm_experimental/allocator.rs.html @@ -65,4 +65,5 @@ Box::into_raw(slice) as *mut u8 } - \ No newline at end of file +
+ \ No newline at end of file diff --git a/src/proxy_wasm_experimental/bytestring.rs.html b/src/proxy_wasm_experimental/bytestring.rs.html index 2212fdd2..bf83b32a 100644 --- a/src/proxy_wasm_experimental/bytestring.rs.html +++ b/src/proxy_wasm_experimental/bytestring.rs.html @@ -1359,4 +1359,5 @@ } } - \ No newline at end of file +
+ \ No newline at end of file diff --git a/src/proxy_wasm_experimental/dispatcher.rs.html b/src/proxy_wasm_experimental/dispatcher.rs.html index 649b6c7b..3935e701 100644 --- a/src/proxy_wasm_experimental/dispatcher.rs.html +++ b/src/proxy_wasm_experimental/dispatcher.rs.html @@ -1077,4 +1077,5 @@ }) } - \ No newline at end of file +
+ \ No newline at end of file diff --git a/src/proxy_wasm_experimental/error.rs.html b/src/proxy_wasm_experimental/error.rs.html index fe1df74c..04d9bac1 100644 --- a/src/proxy_wasm_experimental/error.rs.html +++ b/src/proxy_wasm_experimental/error.rs.html @@ -213,4 +213,5 @@ } } - \ No newline at end of file +
+ \ No newline at end of file diff --git a/src/proxy_wasm_experimental/hostcalls.rs.html b/src/proxy_wasm_experimental/hostcalls.rs.html index ef46568c..f944db4f 100644 --- a/src/proxy_wasm_experimental/hostcalls.rs.html +++ b/src/proxy_wasm_experimental/hostcalls.rs.html @@ -2109,4 +2109,5 @@ } } - \ No newline at end of file +
+ \ No newline at end of file diff --git a/src/proxy_wasm_experimental/lib.rs.html b/src/proxy_wasm_experimental/lib.rs.html index a15a51d3..5246cd76 100644 --- a/src/proxy_wasm_experimental/lib.rs.html +++ b/src/proxy_wasm_experimental/lib.rs.html @@ -109,4 +109,5 @@ #[no_mangle] pub extern "C" fn proxy_abi_version_0_2_0() {} - \ No newline at end of file +
+ \ No newline at end of file diff --git a/src/proxy_wasm_experimental/logger.rs.html b/src/proxy_wasm_experimental/logger.rs.html index 8eb7b9dd..02ff4dd2 100644 --- a/src/proxy_wasm_experimental/logger.rs.html +++ b/src/proxy_wasm_experimental/logger.rs.html @@ -145,4 +145,5 @@ fn flush(&self) {} } - \ No newline at end of file +
+ \ No newline at end of file diff --git a/src/proxy_wasm_experimental/traits.rs.html b/src/proxy_wasm_experimental/traits.rs.html index e1aa2f43..104424a4 100644 --- a/src/proxy_wasm_experimental/traits.rs.html +++ b/src/proxy_wasm_experimental/traits.rs.html @@ -615,4 +615,5 @@ fn on_log(&mut self) {} } - \ No newline at end of file +
+ \ No newline at end of file diff --git a/src/proxy_wasm_experimental/types.rs.html b/src/proxy_wasm_experimental/types.rs.html index 442abb7c..d4212eb0 100644 --- a/src/proxy_wasm_experimental/types.rs.html +++ b/src/proxy_wasm_experimental/types.rs.html @@ -217,4 +217,5 @@ Histogram = 2, } - \ No newline at end of file +
+ \ No newline at end of file diff --git a/storage.js b/storage.js index 318275ed..ff361c66 100644 --- a/storage.js +++ b/storage.js @@ -1 +1 @@ -var resourcesSuffix="";var darkThemes=["dark","ayu"];var currentTheme=document.getElementById("themeStyle");var mainTheme=document.getElementById("mainThemeStyle");var settingsDataset=(function(){var settingsElement=document.getElementById("default-settings");if(settingsElement===null){return null}var dataset=settingsElement.dataset;if(dataset===undefined){return null}return dataset})();function getSettingValue(settingName){var current=getCurrentValue('rustdoc-'+settingName);if(current!==null){return current}if(settingsDataset!==null){var def=settingsDataset[settingName.replace(/-/g,'_')];if(def!==undefined){return def}}return null}var localStoredTheme=getSettingValue("theme");var savedHref=[];function hasClass(elem,className){return elem&&elem.classList&&elem.classList.contains(className)}function addClass(elem,className){if(!elem||!elem.classList){return}elem.classList.add(className)}function removeClass(elem,className){if(!elem||!elem.classList){return}elem.classList.remove(className)}function onEach(arr,func,reversed){if(arr&&arr.length>0&&func){var length=arr.length;var i;if(reversed!==true){for(i=0;i=0;--i){if(func(arr[i])===true){return true}}}}return false}function onEachLazy(lazyArray,func,reversed){return onEach(Array.prototype.slice.call(lazyArray),func,reversed)}function hasOwnProperty(obj,property){return Object.prototype.hasOwnProperty.call(obj,property)}function usableLocalStorage(){if(typeof Storage==="undefined"){return false}try{return window.localStorage!==null&&window.localStorage!==undefined}catch(err){return false}}function updateLocalStorage(name,value){if(usableLocalStorage()){localStorage[name]=value}else{}}function getCurrentValue(name){if(usableLocalStorage()&&localStorage[name]!==undefined){return localStorage[name]}return null}function switchTheme(styleElem,mainStyleElem,newTheme,saveTheme){var fullBasicCss="rustdoc"+resourcesSuffix+".css";var fullNewTheme=newTheme+resourcesSuffix+".css";var newHref=mainStyleElem.href.replace(fullBasicCss,fullNewTheme);if(saveTheme===true){updateLocalStorage("rustdoc-theme",newTheme)}if(styleElem.href===newHref){return}var found=false;if(savedHref.length===0){onEachLazy(document.getElementsByTagName("link"),function(el){savedHref.push(el.href)})}onEach(savedHref,function(el){if(el===newHref){found=true;return true}});if(found===true){styleElem.href=newHref}}function useSystemTheme(value){if(value===undefined){value=true}updateLocalStorage("rustdoc-use-system-theme",value);var toggle=document.getElementById("use-system-theme");if(toggle&&toggle instanceof HTMLInputElement){toggle.checked=value}}var updateSystemTheme=(function(){if(!window.matchMedia){return function(){let cssTheme=getComputedStyle(document.documentElement).getPropertyValue('content');switchTheme(currentTheme,mainTheme,JSON.parse(cssTheme)||light,true)}}var mql=window.matchMedia("(prefers-color-scheme: dark)");function handlePreferenceChange(mql){if(getSettingValue("use-system-theme")!=="false"){var lightTheme=getSettingValue("preferred-light-theme")||"light";var darkTheme=getSettingValue("preferred-dark-theme")||"dark";if(mql.matches){switchTheme(currentTheme,mainTheme,darkTheme,true)}else{switchTheme(currentTheme,mainTheme,lightTheme,true)}}}mql.addListener(handlePreferenceChange);return function(){handlePreferenceChange(mql)}})();if(getSettingValue("use-system-theme")!=="false"&&window.matchMedia){if(getSettingValue("use-system-theme")===null&&getSettingValue("preferred-dark-theme")===null&&darkThemes.indexOf(localStoredTheme)>=0){updateLocalStorage("rustdoc-preferred-dark-theme",localStoredTheme)}updateSystemTheme()}else{switchTheme(currentTheme,mainTheme,getSettingValue("theme")||"light",false)} \ No newline at end of file +var resourcesSuffix="";var darkThemes=["dark","ayu"];var currentTheme=document.getElementById("themeStyle");var mainTheme=document.getElementById("mainThemeStyle");var settingsDataset=(function(){var settingsElement=document.getElementById("default-settings");if(settingsElement===null){return null}var dataset=settingsElement.dataset;if(dataset===undefined){return null}return dataset})();function getSettingValue(settingName){var current=getCurrentValue('rustdoc-'+settingName);if(current!==null){return current}if(settingsDataset!==null){var def=settingsDataset[settingName.replace(/-/g,'_')];if(def!==undefined){return def}}return null}var localStoredTheme=getSettingValue("theme");var savedHref=[];function hasClass(elem,className){return elem&&elem.classList&&elem.classList.contains(className)}function addClass(elem,className){if(!elem||!elem.classList){return}elem.classList.add(className)}function removeClass(elem,className){if(!elem||!elem.classList){return}elem.classList.remove(className)}function onEach(arr,func,reversed){if(arr&&arr.length>0&&func){var length=arr.length;var i;if(reversed!==true){for(i=0;i=0;--i){if(func(arr[i])===true){return true}}}}return false}function onEachLazy(lazyArray,func,reversed){return onEach(Array.prototype.slice.call(lazyArray),func,reversed)}function hasOwnProperty(obj,property){return Object.prototype.hasOwnProperty.call(obj,property)}function usableLocalStorage(){if(typeof Storage==="undefined"){return false}try{return window.localStorage!==null&&window.localStorage!==undefined}catch(err){return false}}function updateLocalStorage(name,value){if(usableLocalStorage()){localStorage[name]=value}else{}}function getCurrentValue(name){if(usableLocalStorage()&&localStorage[name]!==undefined){return localStorage[name]}return null}function switchTheme(styleElem,mainStyleElem,newTheme,saveTheme){var fullBasicCss="rustdoc"+resourcesSuffix+".css";var fullNewTheme=newTheme+resourcesSuffix+".css";var newHref=mainStyleElem.href.replace(fullBasicCss,fullNewTheme);if(saveTheme===true){updateLocalStorage("rustdoc-theme",newTheme)}if(styleElem.href===newHref){return}var found=false;if(savedHref.length===0){onEachLazy(document.getElementsByTagName("link"),function(el){savedHref.push(el.href)})}onEach(savedHref,function(el){if(el===newHref){found=true;return true}});if(found===true){styleElem.href=newHref}}function useSystemTheme(value){if(value===undefined){value=true}updateLocalStorage("rustdoc-use-system-theme",value);var toggle=document.getElementById("use-system-theme");if(toggle&&toggle instanceof HTMLInputElement){toggle.checked=value}}var updateSystemTheme=(function(){if(!window.matchMedia){return function(){let cssTheme=getComputedStyle(document.documentElement).getPropertyValue('content');switchTheme(currentTheme,mainTheme,JSON.parse(cssTheme)||"light",true)}}var mql=window.matchMedia("(prefers-color-scheme: dark)");function handlePreferenceChange(mql){if(getSettingValue("use-system-theme")!=="false"){var lightTheme=getSettingValue("preferred-light-theme")||"light";var darkTheme=getSettingValue("preferred-dark-theme")||"dark";if(mql.matches){switchTheme(currentTheme,mainTheme,darkTheme,true)}else{switchTheme(currentTheme,mainTheme,lightTheme,true)}}}mql.addListener(handlePreferenceChange);return function(){handlePreferenceChange(mql)}})();if(getSettingValue("use-system-theme")!=="false"&&window.matchMedia){if(getSettingValue("use-system-theme")===null&&getSettingValue("preferred-dark-theme")===null&&darkThemes.indexOf(localStoredTheme)>=0){updateLocalStorage("rustdoc-preferred-dark-theme",localStoredTheme)}updateSystemTheme()}else{switchTheme(currentTheme,mainTheme,getSettingValue("theme")||"light",false)} \ No newline at end of file