Enum libafl_bolts::os::unix_shmem_server::ShMemService
source · pub enum ShMemService<SP>where
SP: ShMemProvider,{
Started {
bg_thread: Arc<Mutex<ShMemServiceThread>>,
phantom: PhantomData<SP>,
},
Failed {
err_msg: String,
phantom: PhantomData<SP>,
},
}
Expand description
The ShMemService
is a service handing out ShMem
pages via unix domain sockets.
It is mainly used and needed on Android.
Variants§
Started
Fields
§
bg_thread: Arc<Mutex<ShMemServiceThread>>
The background thread
§
phantom: PhantomData<SP>
The pantom data
A started service
Failed
A failed service
Implementations§
source§impl<SP> ShMemService<SP>where
SP: ShMemProvider,
impl<SP> ShMemService<SP>where
SP: ShMemProvider,
sourcepub fn start() -> Self
pub fn start() -> Self
Create a new ShMemService
, then listen and service incoming connections in a new thread.
Returns ShMemService::Failed
on error.
Trait Implementations§
source§impl<SP> Clone for ShMemService<SP>where
SP: ShMemProvider + Clone,
impl<SP> Clone for ShMemService<SP>where
SP: ShMemProvider + Clone,
source§fn clone(&self) -> ShMemService<SP>
fn clone(&self) -> ShMemService<SP>
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 moreAuto Trait Implementations§
impl<SP> RefUnwindSafe for ShMemService<SP>where
SP: RefUnwindSafe,
impl<SP> Send for ShMemService<SP>where
SP: Send,
impl<SP> Sync for ShMemService<SP>where
SP: Sync,
impl<SP> Unpin for ShMemService<SP>where
SP: Unpin,
impl<SP> UnwindSafe for ShMemService<SP>where
SP: 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
source§impl<Tail, T> Prepend<T> for Tail
impl<Tail, T> Prepend<T> for Tail
§type PreprendResult = Tail
type PreprendResult = Tail
The Resulting
TupleList
, of an Prepend::prepend()
call,
including the prepended entry.source§fn prepend(self, value: T) -> (T, <Tail as Prepend<T>>::PreprendResult)
fn prepend(self, value: T) -> (T, <Tail as Prepend<T>>::PreprendResult)
Prepend a value to this tuple, returning a new tuple with prepended value.