pub struct DefaultHook { /* private fields */ }Implementations§
Source§impl DefaultHook
impl DefaultHook
pub fn new(manager: DefaultHookManager, s: Session) -> Self
Trait Implementations§
Source§impl Clone for DefaultHook
impl Clone for DefaultHook
Source§fn clone(&self) -> DefaultHook
fn clone(&self) -> DefaultHook
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 moreSource§impl Hook for DefaultHook
impl Hook for DefaultHook
Source§fn session_created<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn session_created<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
session created
Source§fn client_connected<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn client_connected<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
After the mqtt:: connectack message is sent, the connection is created successfully
Source§fn client_disconnected<'life0, 'async_trait>(
&'life0 self,
r: Reason,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn client_disconnected<'life0, 'async_trait>(
&'life0 self,
r: Reason,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Disconnect message received
Source§fn session_terminated<'life0, 'async_trait>(
&'life0 self,
r: Reason,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn session_terminated<'life0, 'async_trait>(
&'life0 self,
r: Reason,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Session terminated
Source§fn client_subscribe_check_acl<'life0, 'life1, 'async_trait>(
&'life0 self,
sub: &'life1 Subscribe,
) -> Pin<Box<dyn Future<Output = Option<SubscribeAclResult>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn client_subscribe_check_acl<'life0, 'life1, 'async_trait>(
&'life0 self,
sub: &'life1 Subscribe,
) -> Pin<Box<dyn Future<Output = Option<SubscribeAclResult>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
subscribe check acl
Source§fn message_publish_check_acl<'life0, 'life1, 'async_trait>(
&'life0 self,
publish: &'life1 Publish,
) -> Pin<Box<dyn Future<Output = PublishAclResult> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn message_publish_check_acl<'life0, 'life1, 'async_trait>(
&'life0 self,
publish: &'life1 Publish,
) -> Pin<Box<dyn Future<Output = PublishAclResult> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
publish check acl
Source§fn client_subscribe<'life0, 'life1, 'async_trait>(
&'life0 self,
sub: &'life1 Subscribe,
) -> Pin<Box<dyn Future<Output = Option<TopicFilter>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn client_subscribe<'life0, 'life1, 'async_trait>(
&'life0 self,
sub: &'life1 Subscribe,
) -> Pin<Box<dyn Future<Output = Option<TopicFilter>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Subscribe message received
Source§fn session_subscribed<'life0, 'async_trait>(
&'life0 self,
subscribe: Subscribe,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn session_subscribed<'life0, 'async_trait>(
&'life0 self,
subscribe: Subscribe,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Subscription succeeded
Source§fn client_unsubscribe<'life0, 'life1, 'async_trait>(
&'life0 self,
unsub: &'life1 Unsubscribe,
) -> Pin<Box<dyn Future<Output = Option<TopicFilter>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn client_unsubscribe<'life0, 'life1, 'async_trait>(
&'life0 self,
unsub: &'life1 Unsubscribe,
) -> Pin<Box<dyn Future<Output = Option<TopicFilter>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Unsubscribe message received
Source§fn session_unsubscribed<'life0, 'async_trait>(
&'life0 self,
unsubscribe: Unsubscribe,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn session_unsubscribed<'life0, 'async_trait>(
&'life0 self,
unsubscribe: Unsubscribe,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Unsubscribe succeeded
Source§fn message_publish<'life0, 'life1, 'async_trait>(
&'life0 self,
from: From,
publish: &'life1 Publish,
) -> Pin<Box<dyn Future<Output = Option<Publish>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn message_publish<'life0, 'life1, 'async_trait>(
&'life0 self,
from: From,
publish: &'life1 Publish,
) -> Pin<Box<dyn Future<Output = Option<Publish>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Publish message received
Source§fn message_delivered<'life0, 'life1, 'async_trait>(
&'life0 self,
from: From,
publish: &'life1 Publish,
) -> Pin<Box<dyn Future<Output = Option<Publish>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn message_delivered<'life0, 'life1, 'async_trait>(
&'life0 self,
from: From,
publish: &'life1 Publish,
) -> Pin<Box<dyn Future<Output = Option<Publish>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Message delivered
Source§fn message_acked<'life0, 'life1, 'async_trait>(
&'life0 self,
from: From,
publish: &'life1 Publish,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn message_acked<'life0, 'life1, 'async_trait>(
&'life0 self,
from: From,
publish: &'life1 Publish,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Message acked
Source§fn offline_message<'life0, 'life1, 'async_trait>(
&'life0 self,
from: From,
publish: &'life1 Publish,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn offline_message<'life0, 'life1, 'async_trait>(
&'life0 self,
from: From,
publish: &'life1 Publish,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Offline publish message
Source§fn offline_inflight_messages<'life0, 'async_trait>(
&'life0 self,
inflight_messages: Vec<OutInflightMessage>,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn offline_inflight_messages<'life0, 'async_trait>(
&'life0 self,
inflight_messages: Vec<OutInflightMessage>,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Offline inflight messages
Source§fn message_expiry_check<'life0, 'life1, 'async_trait>(
&'life0 self,
from: From,
publish: &'life1 Publish,
) -> Pin<Box<dyn Future<Output = MessageExpiryCheckResult> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn message_expiry_check<'life0, 'life1, 'async_trait>(
&'life0 self,
from: From,
publish: &'life1 Publish,
) -> Pin<Box<dyn Future<Output = MessageExpiryCheckResult> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Message expiry check
Auto Trait Implementations§
impl Freeze for DefaultHook
impl !RefUnwindSafe for DefaultHook
impl Send for DefaultHook
impl Sync for DefaultHook
impl Unpin for DefaultHook
impl UnsafeUnpin for DefaultHook
impl !UnwindSafe for DefaultHook
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> HashExt for Twhere
T: ?Sized,
impl<T> HashExt for Twhere
T: ?Sized,
fn hash_value(self, h: u64) -> HashWrapper<Self>where
Self: Sized,
fn hash_empty(self) -> EmptyHashWrapper<Self>where
Self: Sized,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request