pub struct RequestReceived<R> {
pub connection_id: u64,
pub request_id: u64,
pub request: R,
}Expand description
A new get request was received from the provider.
Fields§
§connection_id: u64The connection id. Multiple requests can be sent over the same connection.
request_id: u64The request id. There is a new id for each request.
request: RThe request
Trait Implementations§
Source§impl Channels<ProviderProto> for RequestReceived<GetManyRequest>
impl Channels<ProviderProto> for RequestReceived<GetManyRequest>
Source§impl Channels<ProviderProto> for RequestReceived<GetRequest>
impl Channels<ProviderProto> for RequestReceived<GetRequest>
Source§impl Channels<ProviderProto> for RequestReceived<ObserveRequest>
impl Channels<ProviderProto> for RequestReceived<ObserveRequest>
Source§impl Channels<ProviderProto> for RequestReceived<PushRequest>
impl Channels<ProviderProto> for RequestReceived<PushRequest>
Source§impl<R: Debug> Debug for RequestReceived<R>
impl<R: Debug> Debug for RequestReceived<R>
Source§impl<'de, R> Deserialize<'de> for RequestReceived<R>where
R: Deserialize<'de>,
impl<'de, R> Deserialize<'de> for RequestReceived<R>where
R: 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<RequestReceived<GetManyRequest>> for ProviderProto
impl From<RequestReceived<GetManyRequest>> for ProviderProto
Source§fn from(value: RequestReceived<GetManyRequest>) -> Self
fn from(value: RequestReceived<GetManyRequest>) -> Self
Converts to this type from the input type.
Source§impl From<RequestReceived<GetRequest>> for ProviderProto
impl From<RequestReceived<GetRequest>> for ProviderProto
Source§fn from(value: RequestReceived<GetRequest>) -> Self
fn from(value: RequestReceived<GetRequest>) -> Self
Converts to this type from the input type.
Source§impl From<RequestReceived<ObserveRequest>> for ProviderProto
impl From<RequestReceived<ObserveRequest>> for ProviderProto
Source§fn from(value: RequestReceived<ObserveRequest>) -> Self
fn from(value: RequestReceived<ObserveRequest>) -> Self
Converts to this type from the input type.
Source§impl From<RequestReceived<PushRequest>> for ProviderProto
impl From<RequestReceived<PushRequest>> for ProviderProto
Source§fn from(value: RequestReceived<PushRequest>) -> Self
fn from(value: RequestReceived<PushRequest>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<R> Freeze for RequestReceived<R>where
R: Freeze,
impl<R> RefUnwindSafe for RequestReceived<R>where
R: RefUnwindSafe,
impl<R> Send for RequestReceived<R>where
R: Send,
impl<R> Sync for RequestReceived<R>where
R: Sync,
impl<R> Unpin for RequestReceived<R>where
R: Unpin,
impl<R> UnsafeUnpin for RequestReceived<R>where
R: UnsafeUnpin,
impl<R> UnwindSafe for RequestReceived<R>where
R: 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
§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