[][src]Struct aeron_rs::concurrent::logbuffer::term_reader::ReadOutcome

pub struct ReadOutcome {
    pub offset: Index,
    pub fragments_read: i32,
}

Fn(&AtomicBuffer, Index, Index, &Header) -> Result<(), AeronError>; Callback for handling fragments of data being read from a log.

Handler for reading data that is coming from a log buffer. The frame will either contain a whole message or a fragment of a message to be reassembled. Messages are fragmented if greater than the frame for MTU in length. @param buffer containing the data. @param offset at which the data begins. @param length of the data in bytes. @param header representing the meta data for the data.

Fn(AeronError) Callback to indicate an exception has occurred. @param error that has occurred.

Fields

offset: Indexfragments_read: i32

Trait Implementations

impl Default for ReadOutcome[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.