pub enum FileConsumerMode {
Consume {
delete: bool,
},
Subscribe {
delete: bool,
},
GroupSubscribe {
group_id: String,
read_from_tail: bool,
},
}Variants§
Consume
Queue Mode: Standard point-to-point consumption. Reads from the start
of the file. If delete is true, processed lines are physically removed
from the file once they are successfully acknowledged.
Subscribe
Broadcast Mode: Pub-sub style consumption. Tails the file by starting
at the current end. If delete is true, lines are removed only after
all local application subscribers for this specific file have acknowledged them.
GroupSubscribe
Persistent Mode: Consumption with external offset tracking.
Saves the last read byte position to a .offset file identified by the group_id.
This allows the consumer to resume exactly where it left off after a restart
without deleting data or requiring the bridge to stay running.
Trait Implementations§
Source§impl Clone for FileConsumerMode
impl Clone for FileConsumerMode
Source§fn clone(&self) -> FileConsumerMode
fn clone(&self) -> FileConsumerMode
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 FileConsumerMode
impl Debug for FileConsumerMode
Source§impl Default for FileConsumerMode
impl Default for FileConsumerMode
Source§impl<'de> Deserialize<'de> for FileConsumerMode
impl<'de> Deserialize<'de> for FileConsumerMode
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for FileConsumerMode
impl RefUnwindSafe for FileConsumerMode
impl Send for FileConsumerMode
impl Sync for FileConsumerMode
impl Unpin for FileConsumerMode
impl UnsafeUnpin for FileConsumerMode
impl UnwindSafe for FileConsumerMode
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