pub struct MatrixEndpoint { /* private fields */ }
Expand description
Data structure to represent the Matrix Endpoint
.
Implementations§
Source§impl MatrixEndpoint
impl MatrixEndpoint
Sourcepub fn new<S: AsRef<str>>(
home_server: S,
username: S,
password: S,
session_store_path: S,
recovery_passphrase: S,
rooms: Vec<MatrixRoom>,
) -> Self
pub fn new<S: AsRef<str>>( home_server: S, username: S, password: S, session_store_path: S, recovery_passphrase: S, rooms: Vec<MatrixRoom>, ) -> Self
Create a new MatrixEndpoint
.
Sourcepub fn home_server(&self) -> &str
pub fn home_server(&self) -> &str
Return the matrix home server.
Sourcepub fn session_store_path(&self) -> &PathBuf
pub fn session_store_path(&self) -> &PathBuf
Return the path to the persistent session store.
Sourcepub fn recovery_passphrase(&self) -> &str
pub fn recovery_passphrase(&self) -> &str
Return the recovery passphrase.
Sourcepub fn rooms(&self) -> &[MatrixRoom]
pub fn rooms(&self) -> &[MatrixRoom]
Return the matrix rooms setup for this matrix endpoint.
Trait Implementations§
Source§impl Clone for MatrixEndpoint
impl Clone for MatrixEndpoint
Source§fn clone(&self) -> MatrixEndpoint
fn clone(&self) -> MatrixEndpoint
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 MatrixEndpoint
impl Debug for MatrixEndpoint
Source§impl Endpoint for MatrixEndpoint
impl Endpoint for MatrixEndpoint
Source§fn notify<'life0, 'async_trait>(
&'life0 self,
endpoint_rx: Receiver<ValidatedNotification>,
shutdown: Receiver<bool>,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn notify<'life0, 'async_trait>(
&'life0 self,
endpoint_rx: Receiver<ValidatedNotification>,
shutdown: Receiver<bool>,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Implements the server sending notifications to the
Endpoint
.Auto Trait Implementations§
impl Freeze for MatrixEndpoint
impl RefUnwindSafe for MatrixEndpoint
impl Send for MatrixEndpoint
impl Sync for MatrixEndpoint
impl Unpin for MatrixEndpoint
impl UnwindSafe for MatrixEndpoint
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, W> HasTypeWitness<W> for Twhere
W: MakeTypeWitness<Arg = T>,
T: ?Sized,
impl<T, W> HasTypeWitness<W> for Twhere
W: MakeTypeWitness<Arg = T>,
T: ?Sized,
Source§impl<T> Identity for Twhere
T: ?Sized,
impl<T> Identity for Twhere
T: ?Sized,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more