pub struct HomeserverToken;Expand description
Authentication is required, and can only be performed by a homeserver sending a request to an
appservice, by including a homeserver access token in the Authentication http header, or an
access_token query parameter.
Using the query parameter is deprecated since Matrix 1.11.
Trait Implementations§
Source§impl AuthScheme for HomeserverToken
impl AuthScheme for HomeserverToken
Source§type AddAuthenticationError = InvalidHeaderValue
type AddAuthenticationError = InvalidHeaderValue
The error type returned from
add_authentication().Source§type ExtractAuthenticationError = ExtractTokenError
type ExtractAuthenticationError = ExtractTokenError
The error type returned from
extract_authentication().Source§fn add_authentication<T: AsRef<[u8]>>(
request: &mut Request<T>,
access_token: Self::Input<'_>,
) -> Result<(), Self::AddAuthenticationError>
fn add_authentication<T: AsRef<[u8]>>( request: &mut Request<T>, access_token: Self::Input<'_>, ) -> Result<(), Self::AddAuthenticationError>
Add this authentication scheme to the given outgoing request, if necessary. Read more
Source§fn extract_authentication<T>(
request: &Request<T>,
) -> Result<Self::Output, Self::ExtractAuthenticationError>
fn extract_authentication<T>( request: &Request<T>, ) -> Result<Self::Output, Self::ExtractAuthenticationError>
Extract the data of this authentication scheme from the given incoming request. Read more
Source§impl Clone for HomeserverToken
impl Clone for HomeserverToken
Source§fn clone(&self) -> HomeserverToken
fn clone(&self) -> HomeserverToken
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for HomeserverToken
Source§impl Debug for HomeserverToken
impl Debug for HomeserverToken
Source§impl Default for HomeserverToken
impl Default for HomeserverToken
Source§fn default() -> HomeserverToken
fn default() -> HomeserverToken
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for HomeserverToken
impl RefUnwindSafe for HomeserverToken
impl Send for HomeserverToken
impl Sync for HomeserverToken
impl Unpin for HomeserverToken
impl UnsafeUnpin for HomeserverToken
impl UnwindSafe for HomeserverToken
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> DropFlavorWrapper<T> for T
impl<T> DropFlavorWrapper<T> for T
§impl<T, UT> HandleAlloc<UT> for T
impl<T, UT> HandleAlloc<UT> for T
§fn new_handle(value: Arc<T>) -> Handle
fn new_handle(value: Arc<T>) -> Handle
Create a new handle for an Arc value Read more
§unsafe fn clone_handle(handle: Handle) -> Handle
unsafe fn clone_handle(handle: Handle) -> Handle
Clone a handle Read more
§unsafe fn consume_handle(handle: Handle) -> Arc<T> ⓘ
unsafe fn consume_handle(handle: Handle) -> Arc<T> ⓘ
Consume a handle, getting back the initial
Arc<> Read more