pub struct ProtocolRegistrations<'a> { /* private fields */ }Implementations§
Source§impl ProtocolRegistrations<'_>
impl ProtocolRegistrations<'_>
pub fn session( self, provider: Arc<dyn ProtocolSessionPlugin>, ) -> Result<(), PluginError>
Sourcepub fn protocol_driver(
self,
provider: Arc<dyn ProtocolDriverPlugin>,
) -> Result<(), PluginError>
pub fn protocol_driver( self, provider: Arc<dyn ProtocolDriverPlugin>, ) -> Result<(), PluginError>
Claim the session-wide singleton protocol-driver slot. The
plugin provides a ProtocolDriverHandle via build_preamble.
The active plugin stack must install exactly one protocol driver.
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for ProtocolRegistrations<'a>
impl<'a> !UnwindSafe for ProtocolRegistrations<'a>
impl<'a> Freeze for ProtocolRegistrations<'a>
impl<'a> Send for ProtocolRegistrations<'a>
impl<'a> Sync for ProtocolRegistrations<'a>
impl<'a> Unpin for ProtocolRegistrations<'a>
impl<'a> UnsafeUnpin for ProtocolRegistrations<'a>
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