pub enum ServedShMemRequest {
NewMap(usize),
ExistingMap(ShMemDescription),
Deregister(i32),
Hello(),
PreFork(),
PostForkChildHello(i32),
Exit,
}
Expand description
A request sent to the ShMem
server to receive a fd to a shared map
Variants§
NewMap(usize)
Register a new map with a given size.
ExistingMap(ShMemDescription)
Another client already has a map with this description mapped.
Deregister(i32)
A client tells us it unregisters the previously allocated map
Hello()
A message that tells us hello, and optionally which other client we were created from, we return a client id.
PreFork()
A client tells us that it’s about to fork. Already clone all of the maps now so that they will be available by the time the child sends a ServedShMemRequest::PostForkChildHello
request.
PostForkChildHello(i32)
The client’s child re-registers with us after it forked.
Exit
The ShMem Service should exit. This is sually sent internally on drop
, but feel free to do whatever with it?
Trait Implementations§
source§impl Clone for ServedShMemRequest
impl Clone for ServedShMemRequest
source§fn clone(&self) -> ServedShMemRequest
fn clone(&self) -> ServedShMemRequest
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 ServedShMemRequest
impl Debug for ServedShMemRequest
source§impl<'de> Deserialize<'de> for ServedShMemRequest
impl<'de> Deserialize<'de> for ServedShMemRequest
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Serialize for ServedShMemRequest
impl Serialize for ServedShMemRequest
impl Copy for ServedShMemRequest
Auto Trait Implementations§
impl RefUnwindSafe for ServedShMemRequest
impl Send for ServedShMemRequest
impl Sync for ServedShMemRequest
impl Unpin for ServedShMemRequest
impl UnwindSafe for ServedShMemRequest
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.