[−][src]Struct seshat::Connection
A Seshat database connection that can be used for reading.
Methods
impl Connection
[src]
pub fn load_checkpoints(&self) -> Result<Vec<CrawlerCheckpoint>>
[src]
Load all the previously stored crawler checkpoints from the database.
Arguments
pub fn is_empty(&self) -> Result<bool>
[src]
Is the database empty. Returns true if the database is empty, false otherwise.
pub fn get_stats(&self) -> Result<DatabaseStats>
[src]
Get statistical information of the database.
pub fn load_file_events(
&self,
load_config: &LoadConfig
) -> Result<Vec<(String, Profile)>>
[src]
&self,
load_config: &LoadConfig
) -> Result<Vec<(String, Profile)>>
Load events that contain an mxc URL to a file.
Arguments
load_config
- Configuration deciding which events and how many of them should be loaded.
Examples
let config = LoadConfig::new("!testroom:localhost").limit(10);
let result = connection.load_file_events(&config);
Returns a list of tuples containing the serialized events and the profile of the sender at the time when the event was sent.
Methods from Deref<Target = PooledConnection<SqliteConnectionManager>>
Trait Implementations
impl Deref for Connection
[src]
type Target = PooledConnection<SqliteConnectionManager>
The resulting type after dereferencing.
fn deref(&self) -> &Self::Target
[src]
impl DerefMut for Connection
[src]
Auto Trait Implementations
impl !RefUnwindSafe for Connection
impl Send for Connection
impl !Sync for Connection
impl Unpin for Connection
impl !UnwindSafe for Connection
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Downcast for T where
T: Any,
T: Any,
fn into_any(self: Box<T>) -> Box<dyn Any + 'static>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
fn as_any(&self) -> &(dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
impl<T> Erased for T
impl<T> From<T> for T
[src]
impl<T> Fruit for T where
T: Send + Downcast,
[src]
T: Send + Downcast,
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,