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
sourceimpl<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
sourceimpl<SP: Clone> Clone for ShMemService<SP> where
SP: ShMemProvider,
impl<SP: Clone> Clone for ShMemService<SP> where
SP: ShMemProvider,
sourcefn clone(&self) -> ShMemService<SP>
fn clone(&self) -> ShMemService<SP>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl<SP: Debug> Debug for ShMemService<SP> where
SP: ShMemProvider,
impl<SP: Debug> Debug for ShMemService<SP> where
SP: ShMemProvider,
Auto 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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<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. Read more
sourcefn 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.