pub struct RedisSource { /* private fields */ }Expand description
A configured Redis source that reads records from Redis data structures.
Implementations§
Source§impl RedisSource
impl RedisSource
Sourcepub fn new(config: RedisSourceConfig) -> Self
pub fn new(config: RedisSourceConfig) -> Self
Create a new Redis source from the given configuration.
Trait Implementations§
Source§impl Source for RedisSource
impl Source for RedisSource
Source§fn fetch_all<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Vec<Value>, FaucetError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn fetch_all<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Vec<Value>, FaucetError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Fetch all records.
Source§fn config_schema(&self) -> Value
fn config_schema(&self) -> Value
Return a JSON Schema describing the configuration this source accepts. Read more
Auto Trait Implementations§
impl Freeze for RedisSource
impl RefUnwindSafe for RedisSource
impl Send for RedisSource
impl Sync for RedisSource
impl Unpin for RedisSource
impl UnsafeUnpin for RedisSource
impl UnwindSafe for RedisSource
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