pub struct FrameBorrowed { /* private fields */ }Expand description
The borrowed version of Frame
Implementations§
Source§impl FrameBorrowed
impl FrameBorrowed
pub fn page_mut(&mut self) -> &mut [u8] ⓘ
pub fn header(&self) -> &FrameHeader
pub fn header_mut(&mut self) -> &mut FrameHeader
pub fn from_parts(header: &FrameHeader, page: &[u8]) -> Self
pub fn is_commit(&self) -> bool
Trait Implementations§
Source§impl AsBytes for FrameBorrowed
impl AsBytes for FrameBorrowed
Source§impl Clone for FrameBorrowed
impl Clone for FrameBorrowed
Source§fn clone(&self) -> FrameBorrowed
fn clone(&self) -> FrameBorrowed
Returns a duplicate 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<FrameBorrowed> for Frame
impl From<FrameBorrowed> for Frame
Source§fn from(value: FrameBorrowed) -> Self
fn from(value: FrameBorrowed) -> Self
Converts to this type from the input type.
Source§impl From<FrameBorrowed> for FrameMut
impl From<FrameBorrowed> for FrameMut
Source§fn from(inner: FrameBorrowed) -> Self
fn from(inner: FrameBorrowed) -> Self
Converts to this type from the input type.
Source§impl FromBytes for FrameBorrowed
impl FromBytes for FrameBorrowed
Source§fn mut_from_prefix(bytes: &mut [u8]) -> Option<&mut Self>
fn mut_from_prefix(bytes: &mut [u8]) -> Option<&mut Self>
Source§fn mut_from_suffix(bytes: &mut [u8]) -> Option<&mut Self>
fn mut_from_suffix(bytes: &mut [u8]) -> Option<&mut Self>
Source§fn slice_from_prefix(bytes: &[u8], count: usize) -> Option<(&[Self], &[u8])>where
Self: Sized,
fn slice_from_prefix(bytes: &[u8], count: usize) -> Option<(&[Self], &[u8])>where
Self: Sized,
Interprets the prefix of the given
bytes as a &[Self] with length
equal to count without copying. Read moreSource§fn slice_from_suffix(bytes: &[u8], count: usize) -> Option<(&[u8], &[Self])>where
Self: Sized,
fn slice_from_suffix(bytes: &[u8], count: usize) -> Option<(&[u8], &[Self])>where
Self: Sized,
Interprets the suffix of the given
bytes as a &[Self] with length
equal to count without copying. Read moreSource§fn mut_slice_from(bytes: &mut [u8]) -> Option<&mut [Self]>
fn mut_slice_from(bytes: &mut [u8]) -> Option<&mut [Self]>
Source§fn mut_slice_from_prefix(
bytes: &mut [u8],
count: usize,
) -> Option<(&mut [Self], &mut [u8])>
fn mut_slice_from_prefix( bytes: &mut [u8], count: usize, ) -> Option<(&mut [Self], &mut [u8])>
Interprets the prefix of the given
bytes as a &mut [Self] with length
equal to count without copying. Read moreSource§fn mut_slice_from_suffix(
bytes: &mut [u8],
count: usize,
) -> Option<(&mut [u8], &mut [Self])>
fn mut_slice_from_suffix( bytes: &mut [u8], count: usize, ) -> Option<(&mut [u8], &mut [Self])>
Interprets the suffix of the given
bytes as a &mut [Self] with length
equal to count without copying. Read moreSource§impl FromZeroes for FrameBorrowed
impl FromZeroes for FrameBorrowed
impl Copy for FrameBorrowed
Auto Trait Implementations§
impl Freeze for FrameBorrowed
impl RefUnwindSafe for FrameBorrowed
impl Send for FrameBorrowed
impl Sync for FrameBorrowed
impl Unpin for FrameBorrowed
impl UnwindSafe for FrameBorrowed
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§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request