Struct sea_streamer_file::FileConnectOptions
source ยท pub struct FileConnectOptions { /* private fields */ }
Implementationsยง
sourceยงimpl FileConnectOptions
impl FileConnectOptions
pub fn create_if_not_exists(&self) -> bool
sourcepub fn set_create_if_not_exists(&mut self, v: bool) -> &mut Self
pub fn set_create_if_not_exists(&mut self, v: bool) -> &mut Self
Default is false
.
pub fn create_only(&self) -> bool
sourcepub fn set_create_only(&mut self, v: bool) -> &mut Self
pub fn set_create_only(&mut self, v: bool) -> &mut Self
Always create the file. Fail if already exists. Default is false
.
pub fn end_with_eos(&self) -> bool
sourcepub fn set_end_with_eos(&mut self, v: bool) -> &mut Self
pub fn set_end_with_eos(&mut self, v: bool) -> &mut Self
If true, when the producer ends, a End-of-Stream message will be written. This signals Consumers to end their streams.
Default is false
.
pub fn beacon_interval(&self) -> u32
sourcepub fn set_beacon_interval(&mut self, v: u32) -> Result<&mut Self, FileErr>
pub fn set_beacon_interval(&mut self, v: u32) -> Result<&mut Self, FileErr>
Beacon interval. Should be multiples of 1024 (1KB).
Default is crate::DEFAULT_BEACON_INTERVAL
.
pub fn file_size_limit(&self) -> u64
sourcepub fn set_file_size_limit(&mut self, v: u64) -> &mut Self
pub fn set_file_size_limit(&mut self, v: u64) -> &mut Self
Default is crate::DEFAULT_FILE_SIZE_LIMIT
.
pub fn prefetch_message(&self) -> usize
sourcepub fn set_prefetch_message(&mut self, v: usize) -> &mut Self
pub fn set_prefetch_message(&mut self, v: usize) -> &mut Self
Number of messages to prefetch. A larger number would lead to higher memory usage. Choose the number by considering the typical size of messages.
Default is crate::DEFAULT_PREFETCH_MESSAGE
.
Trait Implementationsยง
sourceยงimpl Clone for FileConnectOptions
impl Clone for FileConnectOptions
sourceยงfn clone(&self) -> FileConnectOptions
fn clone(&self) -> FileConnectOptions
Returns a copy 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 ConnectOptions for FileConnectOptions
impl ConnectOptions for FileConnectOptions
sourceยงfn set_timeout(&mut self, _: Duration) -> FileResult<&mut Self>
fn set_timeout(&mut self, _: Duration) -> FileResult<&mut Self>
This parameter is ignored.
type Error = FileErr
fn timeout(&self) -> FileResult<Duration>
sourceยงimpl Debug for FileConnectOptions
impl Debug for FileConnectOptions
Auto Trait Implementationsยง
impl Freeze for FileConnectOptions
impl RefUnwindSafe for FileConnectOptions
impl Send for FileConnectOptions
impl Sync for FileConnectOptions
impl Unpin for FileConnectOptions
impl UnwindSafe for FileConnectOptions
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