Struct rusteron_client::AeronBufferClaim
source · pub struct AeronBufferClaim { /* private fields */ }
Expand description
Structure used to hold information for a try_claim function call.
Implementations§
source§impl AeronBufferClaim
impl AeronBufferClaim
pub fn new(frame_header: *mut u8, data: &mut [u8]) -> Result<Self, AeronCError>
pub fn new_zeroed() -> Result<Self, AeronCError>
pub fn frame_header(&self) -> *mut u8
pub fn data(&self) -> &mut [u8] ⓘ
pub fn length(&self) -> usize
sourcepub fn commit(&self) -> Result<i32, AeronCError>
pub fn commit(&self) -> Result<i32, AeronCError>
Commit the given buffer_claim as a complete message available for consumption.
§Return
0 for success or -1 for error.
sourcepub fn abort(&self) -> Result<i32, AeronCError>
pub fn abort(&self) -> Result<i32, AeronCError>
Abort the given buffer_claim and assign its position as padding.
§Return
0 for success or -1 for error.
pub fn get_inner(&self) -> *mut aeron_buffer_claim_t
§impl AeronBufferClaim
impl AeronBufferClaim
pub fn data_mut(&self) -> &mut [u8] ⓘ
pub fn frame_header_mut(&self) -> &mut aeron_header_values_frame_t
Trait Implementations§
source§impl Clone for AeronBufferClaim
impl Clone for AeronBufferClaim
source§fn clone(&self) -> AeronBufferClaim
fn clone(&self) -> AeronBufferClaim
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 Debug for AeronBufferClaim
impl Debug for AeronBufferClaim
source§impl Default for AeronBufferClaim
impl Default for AeronBufferClaim
This will create an instance where the struct is zeroed, use with care
source§impl Deref for AeronBufferClaim
impl Deref for AeronBufferClaim
source§impl From<&AeronBufferClaim> for *mut aeron_buffer_claim_t
impl From<&AeronBufferClaim> for *mut aeron_buffer_claim_t
source§fn from(value: &AeronBufferClaim) -> Self
fn from(value: &AeronBufferClaim) -> Self
Converts to this type from the input type.
source§impl From<*const aeron_buffer_claim_stct> for AeronBufferClaim
impl From<*const aeron_buffer_claim_stct> for AeronBufferClaim
source§fn from(value: *const aeron_buffer_claim_t) -> Self
fn from(value: *const aeron_buffer_claim_t) -> Self
Converts to this type from the input type.
source§impl From<*mut aeron_buffer_claim_stct> for AeronBufferClaim
impl From<*mut aeron_buffer_claim_stct> for AeronBufferClaim
source§fn from(value: *mut aeron_buffer_claim_t) -> Self
fn from(value: *mut aeron_buffer_claim_t) -> Self
Converts to this type from the input type.
source§impl From<AeronBufferClaim> for *mut aeron_buffer_claim_t
impl From<AeronBufferClaim> for *mut aeron_buffer_claim_t
source§fn from(value: AeronBufferClaim) -> Self
fn from(value: AeronBufferClaim) -> Self
Converts to this type from the input type.
source§impl From<AeronBufferClaim> for aeron_buffer_claim_t
impl From<AeronBufferClaim> for aeron_buffer_claim_t
source§fn from(value: AeronBufferClaim) -> Self
fn from(value: AeronBufferClaim) -> Self
Converts to this type from the input type.
source§impl From<aeron_buffer_claim_stct> for AeronBufferClaim
impl From<aeron_buffer_claim_stct> for AeronBufferClaim
source§fn from(value: aeron_buffer_claim_t) -> Self
fn from(value: aeron_buffer_claim_t) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for AeronBufferClaim
impl !RefUnwindSafe for AeronBufferClaim
impl !Send for AeronBufferClaim
impl !Sync for AeronBufferClaim
impl Unpin for AeronBufferClaim
impl !UnwindSafe for AeronBufferClaim
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
)