pub struct Hub { /* fields omitted */ }
A hub is a registry of hooks
construct a new hub instance
adds a new web hook which will only be applied
when a delivery is revcieved with a valid
request signature based on the provided secret
add a need hook to list of hooks
interested in a given event
get all interested hooks for a given event
Returns the "default value" for a type. Read more
Receives a Request
/Response
pair, and should perform some action on them. Read more
Called when a Request includes a Expect: 100-continue
header. Read more
This is run after a connection is received, on a per-connection basis (not a per-request basis, as a connection with keep-alive may handle multiple requests) Read more
This is run before a connection is closed, on a per-connection basis (not a per-request basis, as a connection with keep-alive may handle multiple requests) Read more
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
🔬 This is a nightly-only experimental API. (get_type_id
)
this method will likely be replaced by an associated static
impl<T> Typeable for T where T: Any, | |
Get the TypeId
of this object.
Receives a Request
/Response
pair, and should perform some action on them. Read more
Called when a Request includes a Expect: 100-continue
header. Read more
This is run after a connection is received, on a per-connection basis (not a per-request basis, as a connection with keep-alive may handle multiple requests) Read more
This is run before a connection is closed, on a per-connection basis (not a per-request basis, as a connection with keep-alive may handle multiple requests) Read more