pub struct DrainConsumer { /* private fields */ }Implementations§
Source§impl DrainConsumer
impl DrainConsumer
pub fn new( client: DrainClient, recipient: HqRecipientSecret, stream: NodeStream, handler: CoreHandler, ) -> Self
Sourcepub fn with_cursor_dir(self, dir: Option<PathBuf>) -> Self
pub fn with_cursor_dir(self, dir: Option<PathBuf>) -> Self
Persist the last ACK under dir and start from the stored value.
Sourcepub fn with_outbound(self, rx: Receiver<Vec<u8>>) -> Self
pub fn with_outbound(self, rx: Receiver<Vec<u8>>) -> Self
Attach a queue of core-initiated plaintexts (see node_controller::OperatorLink).
pub fn last_acked(&self) -> u64
Auto Trait Implementations§
impl !RefUnwindSafe for DrainConsumer
impl !UnwindSafe for DrainConsumer
impl Freeze for DrainConsumer
impl Send for DrainConsumer
impl Sync for DrainConsumer
impl Unpin for DrainConsumer
impl UnsafeUnpin for DrainConsumer
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