pub enum ProviderMessage {
ClientConnected(WithChannels<ClientConnected, ProviderProto>),
ClientConnectedNotify(WithChannels<Notify<ClientConnected>, ProviderProto>),
ConnectionClosed(WithChannels<ConnectionClosed, ProviderProto>),
GetRequestReceived(WithChannels<RequestReceived<GetRequest>, ProviderProto>),
GetRequestReceivedNotify(WithChannels<Notify<RequestReceived<GetRequest>>, ProviderProto>),
GetManyRequestReceived(WithChannels<RequestReceived<GetManyRequest>, ProviderProto>),
GetManyRequestReceivedNotify(WithChannels<Notify<RequestReceived<GetManyRequest>>, ProviderProto>),
PushRequestReceived(WithChannels<RequestReceived<PushRequest>, ProviderProto>),
PushRequestReceivedNotify(WithChannels<Notify<RequestReceived<PushRequest>>, ProviderProto>),
ObserveRequestReceived(WithChannels<RequestReceived<ObserveRequest>, ProviderProto>),
ObserveRequestReceivedNotify(WithChannels<Notify<RequestReceived<ObserveRequest>>, ProviderProto>),
Throttle(WithChannels<Throttle, ProviderProto>),
}Expand description
Message enum for ProviderProto
Variants§
ClientConnected(WithChannels<ClientConnected, ProviderProto>)
ClientConnectedNotify(WithChannels<Notify<ClientConnected>, ProviderProto>)
ConnectionClosed(WithChannels<ConnectionClosed, ProviderProto>)
GetRequestReceived(WithChannels<RequestReceived<GetRequest>, ProviderProto>)
GetRequestReceivedNotify(WithChannels<Notify<RequestReceived<GetRequest>>, ProviderProto>)
GetManyRequestReceived(WithChannels<RequestReceived<GetManyRequest>, ProviderProto>)
GetManyRequestReceivedNotify(WithChannels<Notify<RequestReceived<GetManyRequest>>, ProviderProto>)
PushRequestReceived(WithChannels<RequestReceived<PushRequest>, ProviderProto>)
PushRequestReceivedNotify(WithChannels<Notify<RequestReceived<PushRequest>>, ProviderProto>)
ObserveRequestReceived(WithChannels<RequestReceived<ObserveRequest>, ProviderProto>)
ObserveRequestReceivedNotify(WithChannels<Notify<RequestReceived<ObserveRequest>>, ProviderProto>)
Throttle(WithChannels<Throttle, ProviderProto>)
Implementations§
Source§impl ProviderMessage
impl ProviderMessage
Sourcepub fn parent_span(&self) -> Span
pub fn parent_span(&self) -> Span
Get the parent span of the message
Trait Implementations§
Source§impl Debug for ProviderMessage
impl Debug for ProviderMessage
Source§impl From<WithChannels<ClientConnected, ProviderProto>> for ProviderMessage
impl From<WithChannels<ClientConnected, ProviderProto>> for ProviderMessage
Source§fn from(value: WithChannels<ClientConnected, ProviderProto>) -> Self
fn from(value: WithChannels<ClientConnected, ProviderProto>) -> Self
Converts to this type from the input type.
Source§impl From<WithChannels<ConnectionClosed, ProviderProto>> for ProviderMessage
impl From<WithChannels<ConnectionClosed, ProviderProto>> for ProviderMessage
Source§fn from(value: WithChannels<ConnectionClosed, ProviderProto>) -> Self
fn from(value: WithChannels<ConnectionClosed, ProviderProto>) -> Self
Converts to this type from the input type.
Source§impl From<WithChannels<Notify<ClientConnected>, ProviderProto>> for ProviderMessage
impl From<WithChannels<Notify<ClientConnected>, ProviderProto>> for ProviderMessage
Source§fn from(value: WithChannels<Notify<ClientConnected>, ProviderProto>) -> Self
fn from(value: WithChannels<Notify<ClientConnected>, ProviderProto>) -> Self
Converts to this type from the input type.
Source§impl From<WithChannels<Notify<RequestReceived<GetManyRequest>>, ProviderProto>> for ProviderMessage
impl From<WithChannels<Notify<RequestReceived<GetManyRequest>>, ProviderProto>> for ProviderMessage
Source§fn from(
value: WithChannels<Notify<RequestReceived<GetManyRequest>>, ProviderProto>,
) -> Self
fn from( value: WithChannels<Notify<RequestReceived<GetManyRequest>>, ProviderProto>, ) -> Self
Converts to this type from the input type.
Source§impl From<WithChannels<Notify<RequestReceived<GetRequest>>, ProviderProto>> for ProviderMessage
impl From<WithChannels<Notify<RequestReceived<GetRequest>>, ProviderProto>> for ProviderMessage
Source§fn from(
value: WithChannels<Notify<RequestReceived<GetRequest>>, ProviderProto>,
) -> Self
fn from( value: WithChannels<Notify<RequestReceived<GetRequest>>, ProviderProto>, ) -> Self
Converts to this type from the input type.
Source§impl From<WithChannels<Notify<RequestReceived<ObserveRequest>>, ProviderProto>> for ProviderMessage
impl From<WithChannels<Notify<RequestReceived<ObserveRequest>>, ProviderProto>> for ProviderMessage
Source§fn from(
value: WithChannels<Notify<RequestReceived<ObserveRequest>>, ProviderProto>,
) -> Self
fn from( value: WithChannels<Notify<RequestReceived<ObserveRequest>>, ProviderProto>, ) -> Self
Converts to this type from the input type.
Source§impl From<WithChannels<Notify<RequestReceived<PushRequest>>, ProviderProto>> for ProviderMessage
impl From<WithChannels<Notify<RequestReceived<PushRequest>>, ProviderProto>> for ProviderMessage
Source§fn from(
value: WithChannels<Notify<RequestReceived<PushRequest>>, ProviderProto>,
) -> Self
fn from( value: WithChannels<Notify<RequestReceived<PushRequest>>, ProviderProto>, ) -> Self
Converts to this type from the input type.
Source§impl From<WithChannels<RequestReceived<GetManyRequest>, ProviderProto>> for ProviderMessage
impl From<WithChannels<RequestReceived<GetManyRequest>, ProviderProto>> for ProviderMessage
Source§fn from(
value: WithChannels<RequestReceived<GetManyRequest>, ProviderProto>,
) -> Self
fn from( value: WithChannels<RequestReceived<GetManyRequest>, ProviderProto>, ) -> Self
Converts to this type from the input type.
Source§impl From<WithChannels<RequestReceived<GetRequest>, ProviderProto>> for ProviderMessage
impl From<WithChannels<RequestReceived<GetRequest>, ProviderProto>> for ProviderMessage
Source§fn from(value: WithChannels<RequestReceived<GetRequest>, ProviderProto>) -> Self
fn from(value: WithChannels<RequestReceived<GetRequest>, ProviderProto>) -> Self
Converts to this type from the input type.
Source§impl From<WithChannels<RequestReceived<ObserveRequest>, ProviderProto>> for ProviderMessage
impl From<WithChannels<RequestReceived<ObserveRequest>, ProviderProto>> for ProviderMessage
Source§fn from(
value: WithChannels<RequestReceived<ObserveRequest>, ProviderProto>,
) -> Self
fn from( value: WithChannels<RequestReceived<ObserveRequest>, ProviderProto>, ) -> Self
Converts to this type from the input type.
Source§impl From<WithChannels<RequestReceived<PushRequest>, ProviderProto>> for ProviderMessage
impl From<WithChannels<RequestReceived<PushRequest>, ProviderProto>> for ProviderMessage
Source§fn from(
value: WithChannels<RequestReceived<PushRequest>, ProviderProto>,
) -> Self
fn from( value: WithChannels<RequestReceived<PushRequest>, ProviderProto>, ) -> Self
Converts to this type from the input type.
Source§impl From<WithChannels<Throttle, ProviderProto>> for ProviderMessage
impl From<WithChannels<Throttle, ProviderProto>> for ProviderMessage
Source§fn from(value: WithChannels<Throttle, ProviderProto>) -> Self
fn from(value: WithChannels<Throttle, ProviderProto>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ProviderMessage
impl !RefUnwindSafe for ProviderMessage
impl Send for ProviderMessage
impl Sync for ProviderMessage
impl Unpin for ProviderMessage
impl UnsafeUnpin for ProviderMessage
impl !UnwindSafe for ProviderMessage
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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 more