pub enum Backing<'a> {
Slice(&'a [u8]),
Owned(Vec<u8>),
Mmap(Mmap),
File {
file: Mutex<File>,
len: u64,
},
}Variants§
Implementations§
Auto Trait Implementations§
impl<'a> !Freeze for Backing<'a>
impl<'a> Forget for Backing<'a>
impl<'a> Move for Backing<'a>
impl<'a> RefUnwindSafe for Backing<'a>
impl<'a> Send for Backing<'a>
impl<'a> Sync for Backing<'a>
impl<'a> Unpin for Backing<'a>
impl<'a> UnsafeUnpin for Backing<'a>where
&'a [u8]: UnsafeUnpin,
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
*mut c_void: UnsafeUnpin,
Align4<u32>: UnsafeUnpin,
Align1<u8>: UnsafeUnpin,
I32NotAllOnes: UnsafeUnpin,
impl<'a> UnwindSafe for Backing<'a>where
&'a [u8]: UnwindSafe,
RawVecInner: UnwindSafe,
*mut c_void: UnwindSafe,
Mutex<File>: UnwindSafe,
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