MCPcopy Create free account

hub / github.com/abonander/anterofit / functions

Functions170 in github.com/abonander/anterofit

Methodchain_before
Chain the given `Interceptor` before the one currently in the adapter. Equivalent to `set(before)` if the adapter does not have an interceptor or was
src/adapter.rs:234
Methodchain_interceptor
Chain a new interceptor with the current one. They will be called in-order.
src/adapter.rs:85
Methodclient
Set a `hyper::Client` instance to use with the adapter. If not supplied, a default instance will be constructed.
src/adapter.rs:53
Methodcontent_type
(&self)
src/serialize/none.rs:20
Methodcustom
(msg: T)
src/serialize/mod.rs:123
Methoddebug
Write debug output equivalent to `std::fmt::Debug`.
src/net/intercept.rs:51
Methoddescription
(&self)
src/error.rs:143
Methoddeserialize
Create a value of `Error::Deserialize`
src/error.rs:120
Methoddeserialize
(&self, read: &mut R)
src/serialize/json.rs:48
Methoddeserialize
(&self, read: &mut R)
src/serialize/xml.rs:21
Methoddeserialize
(&self, _: &mut R)
src/serialize/none.rs:30
Methoddisplay
Convert the `ToString` value to a `String` and wrap it. Assumes `text/plain; charset=utf8` as the content-type.
src/net/body.rs:130
Methoddrop
(&mut self)
src/mpmc.rs:48
Methoddrop
(&mut self)
src/executor/threaded.rs:71
Methoddrop
(&mut self)
src/net/call.rs:182
Methodexecutor
Set a new executor for the adapter.
src/adapter.rs:59
Functionflatten_res
Flatten a `Result` of a `Result` where the outer's error type is convertible to `anterofit::Result`.
src/error.rs:126
Methodfmt
(&self, f: &mut fmt::Formatter)
src/adapter.rs:205
Methodfmt
(&self, f: &mut fmt::Formatter)
src/error.rs:137
Methodfmt
(&self, f: &mut fmt::Formatter)
src/serialize/mod.rs:85
Methodfmt
(&self, f: &mut fmt::Formatter)
src/net/intercept.rs:14
Methodfmt
(&self, f: &mut fmt::Formatter)
src/net/request.rs:197
Methodfmt
(&self, f: &mut fmt::Formatter)
src/net/body.rs:334
Methodfrom
(readable: Readable<R>)
src/net/body.rs:154
Methodfrom_item
(item: Item)
service-attr/src/lib.rs:43
Methodfrom_mac
(mac: Mac)
service-attr/src/lib.rs:185
Methodfrom_path
Wrap a `Path` to be serialized as a file field, inferring its filename and MIME type.
src/net/body.rs:328
Methodfrom_response
(des: &D, mut response: Response)
src/net/response.rs:24
Methodfrom_stream
Wrap a `Read` impl with an optional filename and MIME type to be serialized as a file field.
src/net/body.rs:319
Methodfrom_text
(text: TextFields)
src/net/body.rs:257
Methodfrom_trait_item
(trait_item: TraitItem)
service-attr/src/lib.rs:127
Functionget_adapter
(delegate: &D, map: F)
src/lib.rs:223
Methodget_headers
Get the headers of this request (may be modified later).
src/net/request.rs:191
Methodget_method
Get the HTTP method of this request.
src/net/request.rs:186
Methodget_post
Get a Post by id.
service-attr/examples/post_service.rs:40
Methodget_query
Get the current query string of this request.
src/net/request.rs:181
Methodget_url
Get the current URL of this request.
src/net/request.rs:176
Methodhead
Get a reference to the header of the request to inspect it.
src/net/request.rs:229
Methodhead_mut
Get a mutable reference to the request head.
src/net/call.rs:169
Methodignore_ok
Ignore the result of this call, returning `Ok(())` so it can be used in a `try!()`.
src/net/call.rs:41
Methodimmediate
Construct a `Result` wrapping an immediate return of `res`. No network or disk activity will occur when this request is executed.
src/net/request.rs:362
Methodinterceptor_mut
Modify this adaptor's interceptor. ## Note Any existing service trait objects and copies of this adapter will be unaffected by this change.
src/adapter.rs:198
Methodinto_opt_obj
(self)
src/net/intercept.rs:57
Methodis_immediate
Returns `true` if a result is immediately available (`exec_here()` will not block).
src/net/request.rs:376
Functionmain
()
service-attr/examples/post_service.rs:73
Functionmain
()
examples/post_service.rs:68
Methodmap_deserialize
Map the result, boxing and wrapping the error as `Error::Deserialize`
src/error.rs:115
Methodmap_serialize
Map the result, boxing and wrapping the error as `Error::Serialize`
src/error.rs:110
Methodnew
()
src/adapter.rs:30
Methodnew
Create an empty series.
src/serialize/mod.rs:57
Methodnew
Create a new multithreaded executor using the given thread count. The background threads will not be spawned until `Executor::start()` is called.
src/executor/threaded.rs:17
Methodnew
Create an empty vector of pairs. Meant to be used in a builder style.
src/net/intercept.rs:192
Methodnew
(method: HyperMethod, url: Cow<'static, str>)
src/net/request.rs:45
Methodnew
Create a new `Readable` with the given `Read` and MIME type (can be an `Option` or a bare `Mime` value).
src/net/body.rs:43
Methodnew_ok
Create a new `Readable` wrapped in `::Result::Ok` for convenience.
src/net/body.rs:37
Methodnoop
Create a new `ExecBox` which does nothing when called. Since it is zero-sized, this call should not allocate.
src/executor/mod.rs:32
Methodpair
Add a query key-value pair to this interceptor. Returns `self` for builder-style usage. `key` and `val` can be any of: `String`, `&'static str` or `C
src/net/intercept.rs:199
Functionpair_map_is_serialize
()
src/serialize/mod.rs:139
Methodpairs_mut
Get the current series of pairs as a mutable reference to a vector.
src/serialize/mod.rs:74
Methodpoll
### Panics If the current thread is not running a futures task. Use `poll_no_task()` instead if you want to poll outside of a task.
src/net/call.rs:118
Methodread
(&mut self, buf: &mut [u8])
src/net/response.rs:45
Methodremove
Remove the interceptor from the adapter.
src/adapter.rs:221
Methodresult_taken
Returns `true` if the result has already been taken.
src/net/call.rs:78
Methodserialize
(&self, val: &T, write: &mut W)
src/serialize/json.rs:19
Methodserialize
(&self, _: &T, _: &mut W)
src/serialize/none.rs:16
Methodserialize_now
Use the serializer in `adapter` to serialize `val` as a raw body immediately.
src/net/body.rs:137
Functionservice
(args: TokenStream, input: TokenStream)
service-attr/src/lib.rs:14
Methodswap_method
(self, method: M_)
src/net/request.rs:251
Methodtext
Wrap anything `Send + 'static` that can deref to `str` (`String`, `&'static str`, `Box<str>`, etc) as a plain text body. Assumes `text/plain; charset
src/net/body.rs:121
Methodunpark
(&self)
src/net/call.rs:133
← previous101–170 of 170, ranked by callers