pub struct AeronControlledFragmentAssembler { /* private fields */ }
Implementations§
source§impl AeronControlledFragmentAssembler
impl AeronControlledFragmentAssembler
sourcepub fn new<AeronControlledFragmentHandlerHandlerImpl: AeronControlledFragmentHandlerCallback>(
delegate: Option<&Handler<AeronControlledFragmentHandlerHandlerImpl>>,
) -> Result<Self, AeronCError>
pub fn new<AeronControlledFragmentHandlerHandlerImpl: AeronControlledFragmentHandlerCallback>( delegate: Option<&Handler<AeronControlledFragmentHandlerHandlerImpl>>, ) -> Result<Self, AeronCError>
sourcepub fn delete(&self) -> Result<i32, AeronCError>
pub fn delete(&self) -> Result<i32, AeronCError>
sourcepub fn handler(
clientd: *mut c_void,
buffer: &[u8],
header: &AeronHeader,
) -> aeron_controlled_fragment_handler_action_t
pub fn handler( clientd: *mut c_void, buffer: &[u8], header: &AeronHeader, ) -> aeron_controlled_fragment_handler_action_t
Handler function to be passed for handling fragment assembly.
§Parameters
-
clientd
passed in the poll call (must be aAeronControlledFragmentAssembler
) -
buffer
containing the data. -
header
representing the meta data for the data.
§Return
The action to be taken with regard to the stream position after the callback.
pub fn get_inner(&self) -> *mut aeron_controlled_fragment_assembler_t
Trait Implementations§
§impl AeronControlledFragmentHandlerCallback for AeronControlledFragmentAssembler
impl AeronControlledFragmentHandlerCallback for AeronControlledFragmentAssembler
fn handle_aeron_controlled_fragment_handler( &mut self, buffer: &[u8], header: AeronHeader, ) -> aeron_controlled_fragment_handler_action_t
source§impl Clone for AeronControlledFragmentAssembler
impl Clone for AeronControlledFragmentAssembler
source§fn clone(&self) -> AeronControlledFragmentAssembler
fn clone(&self) -> AeronControlledFragmentAssembler
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 From<&AeronControlledFragmentAssembler> for *mut aeron_controlled_fragment_assembler_t
impl From<&AeronControlledFragmentAssembler> for *mut aeron_controlled_fragment_assembler_t
source§fn from(value: &AeronControlledFragmentAssembler) -> Self
fn from(value: &AeronControlledFragmentAssembler) -> Self
Converts to this type from the input type.
source§impl From<*const aeron_controlled_fragment_assembler_stct> for AeronControlledFragmentAssembler
impl From<*const aeron_controlled_fragment_assembler_stct> for AeronControlledFragmentAssembler
source§fn from(value: *const aeron_controlled_fragment_assembler_t) -> Self
fn from(value: *const aeron_controlled_fragment_assembler_t) -> Self
Converts to this type from the input type.
source§impl From<*mut aeron_controlled_fragment_assembler_stct> for AeronControlledFragmentAssembler
impl From<*mut aeron_controlled_fragment_assembler_stct> for AeronControlledFragmentAssembler
source§fn from(value: *mut aeron_controlled_fragment_assembler_t) -> Self
fn from(value: *mut aeron_controlled_fragment_assembler_t) -> Self
Converts to this type from the input type.
source§impl From<AeronControlledFragmentAssembler> for *mut aeron_controlled_fragment_assembler_t
impl From<AeronControlledFragmentAssembler> for *mut aeron_controlled_fragment_assembler_t
source§fn from(value: AeronControlledFragmentAssembler) -> Self
fn from(value: AeronControlledFragmentAssembler) -> Self
Converts to this type from the input type.
source§impl From<AeronControlledFragmentAssembler> for aeron_controlled_fragment_assembler_t
impl From<AeronControlledFragmentAssembler> for aeron_controlled_fragment_assembler_t
source§fn from(value: AeronControlledFragmentAssembler) -> Self
fn from(value: AeronControlledFragmentAssembler) -> Self
Converts to this type from the input type.
source§impl From<aeron_controlled_fragment_assembler_stct> for AeronControlledFragmentAssembler
impl From<aeron_controlled_fragment_assembler_stct> for AeronControlledFragmentAssembler
source§fn from(value: aeron_controlled_fragment_assembler_t) -> Self
fn from(value: aeron_controlled_fragment_assembler_t) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for AeronControlledFragmentAssembler
impl !RefUnwindSafe for AeronControlledFragmentAssembler
impl !Send for AeronControlledFragmentAssembler
impl !Sync for AeronControlledFragmentAssembler
impl Unpin for AeronControlledFragmentAssembler
impl !UnwindSafe for AeronControlledFragmentAssembler
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)