pub struct AeronArchiveReplayParamsBuilder { /* private fields */ }Expand description
Fluent builder for AeronArchiveReplayParams, starting from aeron’s defaults
(every field AERON_NULL_VALUE: replay from the recording start to its end, with the
context-default file IO length and no bounding counter).
Implementations§
Source§impl AeronArchiveReplayParamsBuilder
impl AeronArchiveReplayParamsBuilder
Sourcepub const fn position(self, position: i64) -> Self
pub const fn position(self, position: i64) -> Self
Start the replay from this position (default: the recording’s start).
Sourcepub const fn length(self, length: i64) -> Self
pub const fn length(self, length: i64) -> Self
Replay this many bytes (default: to the recording’s end).
Sourcepub const fn follow_live(self) -> Self
pub const fn follow_live(self) -> Self
Follow a live recording after the recorded portion (length = i64::MAX).
Sourcepub const fn bounded_by(self, counter_id: i32) -> Self
pub const fn bounded_by(self, counter_id: i32) -> Self
Bound the replay by this counter (triggers a bounded replay request).
Sourcepub const fn file_io_max_length(self, length: i32) -> Self
pub const fn file_io_max_length(self, length: i32) -> Self
Maximum size of an archive file IO operation during the replay.
Sourcepub const fn replay_token(self, token: i64) -> Self
pub const fn replay_token(self, token: i64) -> Self
Token for replays where the initiating image did not create the archive session.
Sourcepub const fn subscription_registration_id(self, registration_id: i64) -> Self
pub const fn subscription_registration_id(self, registration_id: i64) -> Self
Subscription registration id for response-channel replays on an existing channel.
pub fn build(self) -> Result<AeronArchiveReplayParams, AeronCError>
Trait Implementations§
Source§impl Clone for AeronArchiveReplayParamsBuilder
impl Clone for AeronArchiveReplayParamsBuilder
Source§fn clone(&self) -> AeronArchiveReplayParamsBuilder
fn clone(&self) -> AeronArchiveReplayParamsBuilder
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for AeronArchiveReplayParamsBuilder
impl RefUnwindSafe for AeronArchiveReplayParamsBuilder
impl Send for AeronArchiveReplayParamsBuilder
impl Sync for AeronArchiveReplayParamsBuilder
impl Unpin for AeronArchiveReplayParamsBuilder
impl UnsafeUnpin for AeronArchiveReplayParamsBuilder
impl UnwindSafe for AeronArchiveReplayParamsBuilder
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