pub struct Notify<T>(/* private fields */);
Expand description
Newtype wrapper that wraps an event so that it is a distinct type for the notify variant.
Trait Implementations§
Source§impl Channels<ProviderProto> for Notify<ClientConnected>
impl Channels<ProviderProto> for Notify<ClientConnected>
Source§impl Channels<ProviderProto> for Notify<RequestReceived<GetManyRequest>>
impl Channels<ProviderProto> for Notify<RequestReceived<GetManyRequest>>
Source§impl Channels<ProviderProto> for Notify<RequestReceived<GetRequest>>
impl Channels<ProviderProto> for Notify<RequestReceived<GetRequest>>
Source§impl Channels<ProviderProto> for Notify<RequestReceived<ObserveRequest>>
impl Channels<ProviderProto> for Notify<RequestReceived<ObserveRequest>>
Source§impl Channels<ProviderProto> for Notify<RequestReceived<PushRequest>>
impl Channels<ProviderProto> for Notify<RequestReceived<PushRequest>>
Source§impl<'de, T> Deserialize<'de> for Notify<T>where
T: Deserialize<'de>,
impl<'de, T> Deserialize<'de> for Notify<T>where
T: Deserialize<'de>,
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 From<Notify<ClientConnected>> for ProviderProto
impl From<Notify<ClientConnected>> for ProviderProto
Source§fn from(value: Notify<ClientConnected>) -> Self
fn from(value: Notify<ClientConnected>) -> Self
Converts to this type from the input type.
Source§impl From<Notify<RequestReceived<GetManyRequest>>> for ProviderProto
impl From<Notify<RequestReceived<GetManyRequest>>> for ProviderProto
Source§fn from(value: Notify<RequestReceived<GetManyRequest>>) -> Self
fn from(value: Notify<RequestReceived<GetManyRequest>>) -> Self
Converts to this type from the input type.
Source§impl From<Notify<RequestReceived<GetRequest>>> for ProviderProto
impl From<Notify<RequestReceived<GetRequest>>> for ProviderProto
Source§fn from(value: Notify<RequestReceived<GetRequest>>) -> Self
fn from(value: Notify<RequestReceived<GetRequest>>) -> Self
Converts to this type from the input type.
Source§impl From<Notify<RequestReceived<ObserveRequest>>> for ProviderProto
impl From<Notify<RequestReceived<ObserveRequest>>> for ProviderProto
Source§fn from(value: Notify<RequestReceived<ObserveRequest>>) -> Self
fn from(value: Notify<RequestReceived<ObserveRequest>>) -> Self
Converts to this type from the input type.
Source§impl From<Notify<RequestReceived<PushRequest>>> for ProviderProto
impl From<Notify<RequestReceived<PushRequest>>> for ProviderProto
Source§fn from(value: Notify<RequestReceived<PushRequest>>) -> Self
fn from(value: Notify<RequestReceived<PushRequest>>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<T> Freeze for Notify<T>where
T: Freeze,
impl<T> RefUnwindSafe for Notify<T>where
T: RefUnwindSafe,
impl<T> Send for Notify<T>where
T: Send,
impl<T> Sync for Notify<T>where
T: Sync,
impl<T> Unpin for Notify<T>where
T: Unpin,
impl<T> UnwindSafe for Notify<T>where
T: UnwindSafe,
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