pub enum ServiceInboxSpec {
Backend,
Caller(&'static CallerInbox),
}Expand description
Which inbox a service server receives through.
Backend is what every user service passes and what the
transport has always done. Caller is a builtin family
bringing storage it sized itself, and is accepted only where
crate::Session::SUPPORTS_CALLER_INBOX is true.
Variants§
Backend
The backend’s own table, at the backend’s geometry.
Caller(&'static CallerInbox)
The caller’s ring, over storage it owns for the life of the program.
Implementations§
Source§impl ServiceInboxSpec
impl ServiceInboxSpec
Sourcepub const fn caller(&self) -> Option<&'static CallerInbox>
pub const fn caller(&self) -> Option<&'static CallerInbox>
The caller’s ring, if this spec names one.
Trait Implementations§
Source§impl Clone for ServiceInboxSpec
impl Clone for ServiceInboxSpec
Source§fn clone(&self) -> ServiceInboxSpec
fn clone(&self) -> ServiceInboxSpec
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ServiceInboxSpec
Source§impl Default for ServiceInboxSpec
impl Default for ServiceInboxSpec
Source§fn default() -> ServiceInboxSpec
fn default() -> ServiceInboxSpec
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ServiceInboxSpec
impl RefUnwindSafe for ServiceInboxSpec
impl Send for ServiceInboxSpec
impl Sync for ServiceInboxSpec
impl Unpin for ServiceInboxSpec
impl UnsafeUnpin for ServiceInboxSpec
impl UnwindSafe for ServiceInboxSpec
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