pub struct InboxHookAdapter { /* private fields */ }Expand description
Queues a letter for a hook that is installed in the open session.
Implementations§
Source§impl InboxHookAdapter
impl InboxHookAdapter
Sourcepub fn new(
kind: SessionKind,
flavor: HookFlavor,
inbox_dir: Option<PathBuf>,
) -> Self
pub fn new( kind: SessionKind, flavor: HookFlavor, inbox_dir: Option<PathBuf>, ) -> Self
Adapter for flavor on kind, draining inbox_dir.
Sourcepub fn flavor(&self) -> HookFlavor
pub fn flavor(&self) -> HookFlavor
The hook flavor.
Trait Implementations§
Source§impl WakeAdapter for InboxHookAdapter
impl WakeAdapter for InboxHookAdapter
Source§fn kind(&self) -> SessionKind
fn kind(&self) -> SessionKind
Session kind this adapter wakes.
Source§fn probe(&self, _session: &ProviderSession) -> Result<(), WakeError>
fn probe(&self, _session: &ProviderSession) -> Result<(), WakeError>
Cheap readiness check (socket exists, server configured, routine
key present). Called before register and on every full drive.
Source§fn wake(
&mut self,
session: &ProviderSession,
letter: &WakeLetter<'_>,
) -> Result<WakeOutcome, WakeError>
fn wake( &mut self, session: &ProviderSession, letter: &WakeLetter<'_>, ) -> Result<WakeOutcome, WakeError>
Puts one letter in front of the session.
Auto Trait Implementations§
impl Freeze for InboxHookAdapter
impl RefUnwindSafe for InboxHookAdapter
impl Send for InboxHookAdapter
impl Sync for InboxHookAdapter
impl Unpin for InboxHookAdapter
impl UnsafeUnpin for InboxHookAdapter
impl UnwindSafe for InboxHookAdapter
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