pub struct ServerSignatures;Available on crate feature 
api and (crate features federation-api-c or federation-api-s) only.Expand description
Authentication is performed by adding an X-Matrix header including a signature in the request
headers, as defined in the Matrix Server-Server API.
Trait Implementations§
Source§impl AuthScheme for ServerSignatures
 
impl AuthScheme for ServerSignatures
Source§type Input<'a> = ServerSignaturesInput<'a>
 
type Input<'a> = ServerSignaturesInput<'a>
The input necessary to generate the authentication.
Source§type AddAuthenticationError = XMatrixFromRequestError
 
type AddAuthenticationError = XMatrixFromRequestError
The error type returned from 
add_authentication().Source§type ExtractAuthenticationError = XMatrixExtractError
 
type ExtractAuthenticationError = XMatrixExtractError
The error type returned from 
extract_authentication().Source§fn add_authentication<T>(
    request: &mut Request<T>,
    input: ServerSignaturesInput<'_>,
) -> Result<(), <ServerSignatures as AuthScheme>::AddAuthenticationError>
 
fn add_authentication<T>( request: &mut Request<T>, input: ServerSignaturesInput<'_>, ) -> Result<(), <ServerSignatures as AuthScheme>::AddAuthenticationError>
Add this authentication scheme to the given outgoing request, if necessary. Read more
Source§fn extract_authentication<T>(
    request: &Request<T>,
) -> Result<<ServerSignatures as AuthScheme>::Output, <ServerSignatures as AuthScheme>::ExtractAuthenticationError>
 
fn extract_authentication<T>( request: &Request<T>, ) -> Result<<ServerSignatures as AuthScheme>::Output, <ServerSignatures as AuthScheme>::ExtractAuthenticationError>
Extract the data of this authentication scheme from the given incoming request. Read more
Source§impl Clone for ServerSignatures
 
impl Clone for ServerSignatures
Source§fn clone(&self) -> ServerSignatures
 
fn clone(&self) -> ServerSignatures
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
 
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from 
source. Read moreSource§impl Debug for ServerSignatures
 
impl Debug for ServerSignatures
Source§impl Default for ServerSignatures
 
impl Default for ServerSignatures
Source§fn default() -> ServerSignatures
 
fn default() -> ServerSignatures
Returns the “default value” for a type. Read more
impl Copy for ServerSignatures
Auto Trait Implementations§
impl Freeze for ServerSignatures
impl RefUnwindSafe for ServerSignatures
impl Send for ServerSignatures
impl Sync for ServerSignatures
impl Unpin for ServerSignatures
impl UnwindSafe for ServerSignatures
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