pub struct Config { /* private fields */ }Expand description
Configuration for the LibsqlStorage backend
Implementations§
Source§impl Config
impl Config
Sourcepub fn buffer_size(&self) -> usize
pub fn buffer_size(&self) -> usize
Get the buffer size
Sourcepub fn set_buffer_size(self, size: usize) -> Self
pub fn set_buffer_size(self, size: usize) -> Self
Sourcepub fn poll_interval(&self) -> Duration
pub fn poll_interval(&self) -> Duration
Get the poll interval
Sourcepub fn set_poll_interval(self, interval: Duration) -> Self
pub fn set_poll_interval(self, interval: Duration) -> Self
Set the poll interval
Sourcepub fn keep_alive(&self) -> Duration
pub fn keep_alive(&self) -> Duration
Get the keep alive interval
Sourcepub fn set_keep_alive(self, interval: Duration) -> Self
pub fn set_keep_alive(self, interval: Duration) -> Self
Set the keep alive interval
Sourcepub fn reenqueue_orphaned_after(&self) -> Duration
pub fn reenqueue_orphaned_after(&self) -> Duration
Get the duration after which orphaned tasks are re-enqueued
Sourcepub fn set_reenqueue_orphaned_after(self, duration: Duration) -> Self
pub fn set_reenqueue_orphaned_after(self, duration: Duration) -> Self
Set the duration after which orphaned tasks are re-enqueued
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Config
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnwindSafe for Config
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)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> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request